JSONToonPro
Number converter tool

Decimal to Binary Converter

Convert any decimal number (base 10) to binary (base 2) instantly. Enter a whole number and the binary representation appears in real time. Everything runs in your browser with no server calls.

100% client sideInstant resultNo data sent
Decimal to Binary
Decimal (Base 10)
Binary (Base 2)
Result appears here...

How to Convert Decimal to Binary

Converting decimal to binary by hand is straightforward once you know the routine. The converter above does it instantly, but working through the steps yourself is the fastest way to understand what is actually happening to the digits.

  1. Divide the decimal number by 2 and write down the quotient and the remainder.
  2. Divide the new quotient by 2 again, recording each remainder as you go.
  3. Repeat until the quotient reaches 0.
  4. Read the remainders from the bottom up. That sequence is the binary result.

Worked example: 170

170 ÷ 2 = 85 remainder 0
85 ÷ 2 = 42 remainder 1
42 ÷ 2 = 21 remainder 0
21 ÷ 2 = 10 remainder 1
10 ÷ 2 = 5 remainder 0
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Reading the remainders bottom to top: 10101010

Result: (170)¹⁰ = (10101010)²

The Decimal System

Decimal is the base 10 system that almost every human culture settled on, most likely because we have ten fingers. It uses the digits 0 through 9, and each position is worth ten times the position to its right. The number 2345.67 means 2 thousands, 3 hundreds, 4 tens, 5 ones, 6 tenths, and 7 hundredths. It is the default for everything people read, which is why converting to and from decimal is the most common base conversion a programmer performs.

Decimal uses the digits 0 through 9.

The Binary System

Binary is the base 2 numeral system. It uses only two symbols, 0 and 1, and each digit is called a bit. Every digital circuit ever built relies on it, because a transistor has two reliable states, on and off, which map directly onto 1 and 0. Place values double as you move left: 1, 2, 4, 8, 16, 32 and so on. Eight bits make one byte, which can hold 256 distinct values, enough for every character in the original ASCII set.

Binary uses the digits 0 and 1.

Decimal to Binary Conversion Examples

(64)¹⁰ = (1000000)²
(255)¹⁰ = (11111111)²
(1024)¹⁰ = (10000000000)²

Decimal to Binary Conversion Chart

A full reference table for the values 1 to 256. Use it to check a conversion quickly or to look up a common value without typing anything.

DecimalBinary
100000001
200000010
300000011
400000100
500000101
600000110
700000111
800001000
900001001
1000001010
1100001011
1200001100
1300001101
1400001110
1500001111
1600010000
1700010001
1800010010
1900010011
2000010100
2100010101
2200010110
2300010111
2400011000
2500011001
2600011010
2700011011
2800011100
2900011101
3000011110
3100011111
3200100000
3300100001
3400100010
3500100011
3600100100
3700100101
3800100110
3900100111
4000101000
4100101001
4200101010
4300101011
4400101100
4500101101
4600101110
4700101111
4800110000
4900110001
5000110010
5100110011
5200110100
5300110101
5400110110
5500110111
5600111000
5700111001
5800111010
5900111011
6000111100
6100111101
6200111110
6300111111
6401000000
DecimalBinary
6501000001
6601000010
6701000011
6801000100
6901000101
7001000110
7101000111
7201001000
7301001001
7401001010
7501001011
7601001100
7701001101
7801001110
7901001111
8001010000
8101010001
8201010010
8301010011
8401010100
8501010101
8601010110
8701010111
8801011000
8901011001
9001011010
9101011011
9201011100
9301011101
9401011110
9501011111
9601100000
9701100001
9801100010
9901100011
10001100100
10101100101
10201100110
10301100111
10401101000
10501101001
10601101010
10701101011
10801101100
10901101101
11001101110
11101101111
11201110000
11301110001
11401110010
11501110011
11601110100
11701110101
11801110110
11901110111
12001111000
12101111001
12201111010
12301111011
12401111100
12501111101
12601111110
12701111111
12810000000
DecimalBinary
12910000001
13010000010
13110000011
13210000100
13310000101
13410000110
13510000111
13610001000
13710001001
13810001010
13910001011
14010001100
14110001101
14210001110
14310001111
14410010000
14510010001
14610010010
14710010011
14810010100
14910010101
15010010110
15110010111
15210011000
15310011001
15410011010
15510011011
15610011100
15710011101
15810011110
15910011111
16010100000
16110100001
16210100010
16310100011
16410100100
16510100101
16610100110
16710100111
16810101000
16910101001
17010101010
17110101011
17210101100
17310101101
17410101110
17510101111
17610110000
17710110001
17810110010
17910110011
18010110100
18110110101
18210110110
18310110111
18410111000
18510111001
18610111010
18710111011
18810111100
18910111101
19010111110
19110111111
19211000000
DecimalBinary
19311000001
19411000010
19511000011
19611000100
19711000101
19811000110
19911000111
20011001000
20111001001
20211001010
20311001011
20411001100
20511001101
20611001110
20711001111
20811010000
20911010001
21011010010
21111010011
21211010100
21311010101
21411010110
21511010111
21611011000
21711011001
21811011010
21911011011
22011011100
22111011101
22211011110
22311011111
22411100000
22511100001
22611100010
22711100011
22811100100
22911100101
23011100110
23111100111
23211101000
23311101001
23411101010
23511101011
23611101100
23711101101
23811101110
23911101111
24011110000
24111110001
24211110010
24311110011
24411110100
24511110101
24611110110
24711110111
24811111000
24911111001
25011111010
25111111011
25211111100
25311111101
25411111110
25511111111
256100000000

Need a different pair of bases? Browse every number converter tool including binary, octal, decimal, and hexadecimal in both directions.

Frequently asked questions

4 answers
To convert decimal to binary, repeatedly divide the number by 2 and record the remainders. Read the remainders from bottom to top. For example, 13 ÷ 2 = 6 R1, 6 ÷ 2 = 3 R0, 3 ÷ 2 = 1 R1, 1 ÷ 2 = 0 R1. Reading remainders bottom to top: 1101. So 13 in decimal = 1101 in binary.

More JSON Tools

About Decimal to Binary Conversion

Decimal to binary conversion is a core concept in computer science. Every number your program processes, from array indices to pixel values to network ports, is stored as binary in hardware. Understanding how decimal maps to binary helps with bit manipulation, memory layout, and low-level debugging. This converter accepts any non-negative integer and returns the full binary representation, making it useful for students, hardware engineers, and software developers working close to the metal.