Decimal to Binary Converter — Free Online Base 10 to Base 2

Convert decimal (base 10) numbers to binary (base 2) instantly — supports batch conversion and swap direction.

100% Client-Side — Your data never leaves your browser

Tip: Enter multiple values (one per line) for batch conversion.

Result appears here

Frequently Asked Questions

Decimal to Binary Conversion Explained

Converting decimal to binary is an essential skill for developers, network engineers, and anyone working at the systems level. Binary representation reveals the actual bit-level structure of data, which matters when you're writing bitmasks, configuring permissions, designing network subnets, or understanding CPU operations.

The division-by-2 algorithm gives you the exact binary representation: keep dividing by 2 and collect remainders until you reach 0. Read remainders from bottom to top. For 42: 42→21r0, 21→10r1, 10→5r0, 5→2r1, 2→1r0, 1→0r1 → 101010. This tool uses number.toString(2).

In network engineering, decimal-to-binary is critical for subnetting. When you compute whether two IP addresses are on the same subnet, you AND their binary representations with the subnet mask. In security, bitmask flags (rwx permissions, capability flags, ACL bits) are most clearly understood in binary.

Related Tools