Decimal to Binary Converter

Convert decimal to binary with the divide-by-2 working shown – whole numbers and fractions.

How it works – step by step

Binary to decimal table (0–1024)
DecimalBinaryHex
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F
160001 000010
170001 000111
180001 001012
190001 001113
200001 010014
210001 010115
220001 011016
230001 011117
240001 100018
250001 100119
260001 10101A
270001 10111B
280001 11001C
290001 11011D
300001 11101E
310001 11111F
320010 000020
500011 001032
640100 000040
1000110 010064
1270111 11117F
1281000 000080
2001100 1000C8
2551111 1111FF
2560001 0000 0000100
5120010 0000 0000200
10000011 1110 10003E8
10240100 0000 0000400

How to use the Decimal to Binary Converter

  1. Type a decimal number – a whole number or one with a decimal point.
  2. Read the binary result, grouped in fours so it is easy to check, and copy it.
  3. Follow the divide by 2 table (and the multiply by 2 table for fractions) to see how it was worked out.
  4. Use the swap button to convert binary back to decimal.

About this tool

Convert decimal to binary and see the working, step by step. Type any number – 45, 255, 2026 or 0.625 – and the binary result appears instantly, with a table showing every division so you understand the answer rather than just copying it.

For whole numbers the converter uses the divide by 2 method: divide the number by 2, write down the remainder (0 or 1), divide the quotient by 2 again and repeat until you reach 0. Read the remainders from the bottom up and you have the binary number. For example, 13 ÷ 2 = 6 r 1, 6 ÷ 2 = 3 r 0, 3 ÷ 2 = 1 r 1, 1 ÷ 2 = 0 r 1, so 13 is 1101.

Decimal fractions use the opposite method: multiply the part after the point by 2, and the whole number you get (0 or 1) is the next bit. That is how you turn a fraction to binary – 0.625 becomes 0.101. Some fractions, like 0.1, never end in binary, so the converter rounds them and tells you. It also handles negative numbers and values far beyond a normal calculator, and shows the hexadecimal result alongside.

Frequently asked questions

Divide by 2 and note the remainder, then keep dividing the quotient by 2 until it is 0. The remainders read from bottom to top are the binary number. 10 gives remainders 0, 1, 0, 1 → 1010.

Find the largest power of 2 that fits (1, 2, 4, 8, 16, 32, 64, 128…), write a 1 for it, subtract, and repeat. 100 = 64 + 32 + 4 = 1100100.

100 in decimal is 1100100 in binary. 255 is 11111111, 256 is 100000000 and 1000 is 1111101000.

Multiply the fraction by 2; the whole-number part is the next bit. Keep the new fraction and repeat. 0.375 → 0.75 (0) → 1.5 (1) → 1.0 (1), so 0.375 = 0.011.

Like 1/3 in decimal, 0.1 repeats forever in binary (0.000110011…). The converter shows 20 bits after the point and marks the result as rounded.