Decimal to Binary Converter

๐Ÿ”’ Runs in your browser โ€” nothing is sent to a server

Convert a decimal integer to its binary representation. The number is divided by 2 repeatedly and the remainders, read bottom-up, form the bits โ€” so 10 becomes 1010 and 255 becomes 11111111. Useful when designing bitmasks, configuring hardware registers, studying digital logic gates or just learning how computers store integers. Negative values keep a leading minus sign; for twoโ€™s-complement representation choose a fixed bit width and add the sign bit yourself.

Decimal (10)

Allowed: 0โ€“9

Binary (2)

Allowed: 0 and 1

Decimal (10) โ†’ Binary (2)

Quick reference table

Decimal (10)Binary (2)
11
210
5101
101010
1610000
32100000
641000000
1001100100
12810000000
25511111111
256100000000
102410000000000

Glossary

Decimal (base 10)

The decimal numeral system is the everyday number system used by humans, with digits 0 through 9. Each digit position represents a power of 10 โ€” units, tens, hundreds, thousands. It is sometimes called base-10 or denary. All four bases on this page convert through decimal as a canonical integer value, so a round-trip such as binary โ†’ decimal โ†’ hex always produces the exact same number.

Binary (base 2)

The binary numeral system uses only two digits โ€” 0 and 1 โ€” and is the native number system of every digital computer. Each binary digit (bit) represents a power of 2: the rightmost bit is 2^0 = 1, then 2^1 = 2, 2^2 = 4, 2^3 = 8 and so on. Eight bits form one byte. Binary underlies every memory cell, register and network packet.

Related tools