Decimal to Binary Converter
Convert any decimal number (base 10) into binary (base 2) instantly with step-by-step division-by-2 remainders plus hex and octal equivalents.
Common Decimal to Binary Conversions
Quick reference table for frequently used base-10 numbers and their binary representations.
| Decimal (Base 10) | Binary (Base 2) | 8-Bit Binary | Hex |
|---|---|---|---|
| 0 | 0 | 00000000 | 0 |
| 1 | 1 | 00000001 | 1 |
| 8 | 1000 | 00001000 | 8 |
| 10 | 1010 | 00001010 | A |
| 15 | 1111 | 00001111 | F |
| 16 | 10000 | 00010000 | 10 |
| 45 | 101101 | 00101101 | 2D |
| 128 | 10000000 | 10000000 | 80 |
| 255 | 11111111 | 11111111 | FF |
| 1024 | 10000000000 | — | 400 |
Complete Guide: How to Convert Decimal to Binary
Converting a decimal number (Base 10) into a binary number (Base 2) translates everyday human numbers into the two-digit language (0 and 1) used by computers, microcontrollers, and digital logic circuits.
Repeated Division-by-2 Method
The most reliable manual method for converting whole decimal numbers to binary is repeated division by 2:
- Step 1: Divide the decimal number by
2and note both the integer quotient and the remainder (0or1). - Step 2: Take the new quotient and divide it by
2again, recording the remainder. - Step 3: Repeat until the quotient becomes
0. - Step 4: Read the remainders from bottom to top (from last remainder to first) to form the binary number.
Worked Example: Converting Decimal 45 to Binary
Divide 45 repeatedly by 2:
45 ÷ 2 = 22 remainder 1 → 22 ÷ 2 = 11 remainder 0 → 11 ÷ 2 = 5 remainder 1 → 5 ÷ 2 = 2 remainder 1 → 2 ÷ 2 = 1 remainder 0 → 1 ÷ 2 = 0 remainder 1. Reading remainders from bottom to top gives 101101.
Sum-of-Powers-of-2 Shortcut
For smaller numbers, you can also pick the largest power of 2 (1, 2, 4, 8, 16, 32, 64, 128, 256...) that fits into your decimal number, subtract it, and continue. For example, 45 = 32 + 8 + 4 + 1, which places 1s at positions 5, 3, 2, and 0, producing 101101.
Practical Applications in Programming & Exams
Decimal-to-binary conversion is essential in bitwise masking, flag configuration, memory sizing, embedded systems, and computer awareness sections of technical and competitive exams.
Decimal to Binary Frequently Asked Questions (FAQs)
What is 10 in binary?
What is 255 in binary?
Why do we read remainders from bottom to top?
2⁰ (Least Significant Bit). Reading bottom to top orders bits from MSB to LSB.What is 0 in binary?
How many bits are needed to represent 100 in binary?
100 is 1100100 in binary, which requires 7 bits (since 64 ≤ 100 < 128).Can I enter spaces or commas in the decimal input?
1,024) are cleaned automatically before conversion.