Decimal to Binary Converter – Step-by-Step Division & Table | BinaryCalc

Home / Decimal to Binary Converter

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.

Binary Result (Base 2)
101101
Hexadecimal (Base 16)
2D
Octal (Base 8)
55
Step-by-Step Division by 2: Enter a decimal number to see quotient and remainder steps.

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
00000000000
11000000011
81000000010008
10101000001010A
15111100001111F
16100000001000010
45101101001011012D
128100000001000000080
2551111111111111111FF
102410000000000—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 2 and note both the integer quotient and the remainder (0 or 1).
  • Step 2: Take the new quotient and divide it by 2 again, 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?
Decimal 10 in binary is 1010 (8 + 2 = 10).
What is 255 in binary?
Decimal 255 in binary is 11111111 (an 8-bit number with all bits set to 1).
Why do we read remainders from bottom to top?
The final remainder comes from the highest power of 2 (Most Significant Bit), while the first remainder comes from 2⁰ (Least Significant Bit). Reading bottom to top orders bits from MSB to LSB.
What is 0 in binary?
Decimal 0 is 0 in binary.
How many bits are needed to represent 100 in binary?
Decimal 100 is 1100100 in binary, which requires 7 bits (since 64 ≤ 100 < 128).
Can I enter spaces or commas in the decimal input?
Yes, spaces, commas, and underscores (such as 1,024) are cleaned automatically before conversion.
Does this tool also show Hex and Octal?
Yes, alongside the binary result, you immediately see the hexadecimal (Base 16) and octal (Base 8) values with one-click copy buttons.

More Tools on BinaryCalc