Convert Decimal to Binary

Convert decimal numbers to binary instantly. Step-by-step division method explained. Free online converter.

Input
Number
From Base
2-36
Results
2
Binary
Base 2
0b11111111
8
Octal
Base 8
0o377
10
Decimal
Base 10
255
16
Hexadecimal
Base 16
0xFF
Step-by-Step Conversion
Step 1: Convert Decimal 255 to Binary
255 / 2 = 127 remainder 1
127 / 2 = 63 remainder 1
63 / 2 = 31 remainder 1
31 / 2 = 15 remainder 1
15 / 2 = 7 remainder 1
7 / 2 = 3 remainder 1
3 / 2 = 1 remainder 1
1 / 2 = 0 remainder 1
Result: 11111111

About This Conversion

Converting decimal to binary is the reverse of binary-to-decimal conversion. The most common method is repeated division by 2: divide the decimal number by 2, record the remainder, and repeat with the quotient until it reaches 0. The binary result is the remainders read in reverse order. For example, 13 in binary: 13/2=6 r1, 6/2=3 r0, 3/2=1 r1, 1/2=0 r1 → binary 1101. This conversion is fundamental in programming, digital electronics, and understanding how computers store and process numbers internally.

Frequently Asked Questions

How do I convert decimal to binary?
Repeatedly divide the decimal number by 2 and record each remainder. Read the remainders from bottom to top. Example: 25 → 11001.
What is decimal 255 in binary?
Decimal 255 in binary is 11111111 — eight 1s, representing the maximum value of an unsigned byte.

Related Conversions