Decimal to Binary Converter

Convert any decimal (base-10) number to binary (base-2) instantly. Binary is the foundation of all digital computing — understanding how decimal maps to binary is essential for every programmer.

Common Values

InputBinary
11
210
4100
7111
81000
101010
151111
1610000
32100000
42101010
641000000
1001100100
1271111111
12810000000
25511111111
256100000000
5121000000000
10001111101000
102410000000000
655351111111111111111

How It Works

To convert a decimal number to binary, repeatedly divide by 2 and record the remainders. Reading the remainders from bottom to top gives the binary representation. For example, converting 13: 13÷2=6 R1, 6÷2=3 R0, 3÷2=1 R1, 1÷2=0 R1 — reading remainders upward gives 1101. Each binary digit represents a power of 2: the rightmost is 2⁰ (1), next is 2¹ (2), then 2² (4), and so on. Any decimal number can be uniquely expressed as a sum of distinct powers of 2.

Worked Examples

DecimalBinary
00
11
210
7111
81000
101010
151111
1610000
42101010
1271111111

Related Conversions

Frequently Asked Questions