Complete Guide to Decimal to Binary Conversion
The decimal (base 10) system — also called denary in British computer science curricula — is the everyday number system using digits 0 through 9. Binary (base 2) is the fundamental number system of all digital computing, using only two digits: 0 and 1. Every number, character, image, and sound in a computer is ultimately encoded as a sequence of binary digits called bits. Understanding decimal to binary conversion is foundational to computer science, programming, and digital electronics.
How to Convert Decimal to Binary (Division by 2 Method)
The standard algorithm to convert any positive decimal (denary) integer to binary is successive integer division by 2:
- Divide the decimal number by 2 using integer division.
- Write down the remainder — it will always be 0 or 1. This becomes a binary digit (bit).
- Replace the number with the integer quotient.
- Repeat steps 1–3 until the quotient is 0.
- Read the remainders from bottom to top (most significant bit to least significant bit).
• 13 ÷ 2 = 6 remainder 1
• 6 ÷ 2 = 3 remainder 0
• 3 ÷ 2 = 1 remainder 1
• 1 ÷ 2 = 0 remainder 1
Reading remainders in reverse order: 1101₂
Verification: 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 8 + 4 + 0 + 1 = 13₁₀ ✓
255 divided successively by 2 yields 8 consecutive remainders of 1.
Result: 11111111₂ — the maximum value of an 8-bit unsigned byte.
Verification: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255₁₀ ✓
How to Convert Binary to Decimal (Powers of 2 Method)
To convert a binary number to decimal, assign a position index to each bit starting from 0 at the rightmost (least significant) bit. Multiply each bit by 2 raised to its position power and sum the results. Only bits with value 1 contribute to the sum.
Example: Convert binary 1101₂ to decimal:
• (1 × 2³) = 1 × 8 = 8
• (1 × 2²) = 1 × 4 = 4
• (0 × 2¹) = 0 × 2 = 0
• (1 × 2⁰) = 1 × 1 = 1
Sum = 8 + 4 + 0 + 1 = 13₁₀
Binary Powers of 2 Reference
Every binary bit position represents a power of 2. Memorizing these values allows quick mental binary decimal conversion:
Binary and Denary — What is the Difference?
Denary is a synonym for decimal (base-10) commonly used in British GCSE and A-Level computer science examinations. A binary and denary converter converts between base 2 and base 10. The terms are interchangeable: "convert binary to denary" means exactly the same as "convert binary to decimal." Our tool works as both a convert binary to denary calculator and a standard decimal to binary calculator.
Binary Grouping: Bits, Nibbles, and Bytes
Long binary strings are hard to read. Computer scientists group binary digits in standard units:
- Bit — a single binary digit: 0 or 1.
- Nibble — 4 bits. Represents one hexadecimal digit (0–F). Example:
1111= 15 = F. - Byte — 8 bits. Represents values 0–255. Example:
11111111= 255 = 0xFF. - Word — 16 bits (two bytes). Represents values 0–65535. Example:
1111111111111111= 65535. - Double Word (DWORD) — 32 bits. Max unsigned value: 4,294,967,295 (2³² − 1).
Our decimal to binary tool provides nibble (4-bit), byte (8-bit), and natural grouping options to format binary output for any use case.
Why Do Computers Use Binary?
Computers use binary (base 2) because their physical hardware — transistors, logic gates, and flip-flops — operate in two stable electrical states: low voltage (0) and high voltage (1). This maps directly to binary digits. Using more than two states would require hardware precision that is impractical at scale. All higher-level number systems (octal, decimal, hexadecimal) used in programming are human-readable abstractions that the processor ultimately converts back to binary machine code.