Decimal to Binary Converter
Convert decimal (base-10) numbers into binary (base-2) instantly with our free online converter. View real-time calculations, interactive step-by-step division-by-2 remainders, and complete multi-base outputs (Hex & Octal) with 100% client-side privacy.
| Step | Division Operation | Quotient | Remainder (Bit) |
|---|---|---|---|
| #1 | 156 ÷ 2 | 78 | 0 (LSB) |
| #2 | 78 ÷ 2 | 39 | 0 |
| #3 | 39 ÷ 2 | 19 | 1 |
| #4 | 19 ÷ 2 | 9 | 1 |
| #5 | 9 ÷ 2 | 4 | 1 |
| #6 | 4 ÷ 2 | 2 | 0 |
| #7 | 2 ÷ 2 | 1 | 0 |
| #8 | 1 ÷ 2 | 0 | 1 (MSB) |
How to Convert Decimal (Base-10) to Binary (Base-2)
The decimal numeral system (base-10) is the universal numbering system used in everyday life, relying on ten distinct digits: 0 through 9. In contrast, digital computer circuits operate using the binary system (base-2), representing all data using only two states: 0 (off) and 1 (on).
Method 1: The Successive Division by 2 Algorithm
The most common mathematical method to convert a decimal number to binary is successive division by 2 with remainders:
- Divide the decimal number by 2.
- Write down the whole quotient and record the remainder (
0if even,1if odd). - Take the quotient and divide by 2 again, recording the new remainder.
- Repeat this process until the quotient becomes
0. - Read remainders from bottom to top (most significant bit to least significant bit).
Worked Example: Convert Decimal 156 to Binary
Division Steps:
156 ÷ 2 = 78 Remainder 0 (LSB - Rightmost bit)
78 ÷ 2 = 39 Remainder 0
39 ÷ 2 = 19 Remainder 1
19 ÷ 2 = 9 Remainder 1
9 ÷ 2 = 4 Remainder 1
4 ÷ 2 = 2 Remainder 0
2 ÷ 2 = 1 Remainder 0
1 ÷ 2 = 0 Remainder 1 (MSB - Leftmost bit)
Read remainders from bottom to top:
Result: 156 (Decimal) = 10011100 (Binary)Decimal to Binary Conversion Reference Table (1 to 20)
Quick lookup table for fundamental decimal numbers and their binary, hexadecimal, and octal equivalents:
| Decimal (Base-10) | Binary (Base-2) | Hexadecimal | Octal |
|---|---|---|---|
| 0 | 0 | 0x0 | 0o0 |
| 1 | 1 | 0x1 | 0o1 |
| 2 | 10 | 0x2 | 0o2 |
| 3 | 11 | 0x3 | 0o3 |
| 4 | 100 | 0x4 | 0o4 |
| 5 | 101 | 0x5 | 0o5 |
| 8 | 1000 | 0x8 | 0o10 |
| 10 | 1010 | 0xA | 0o12 |
| 15 | 1111 | 0xF | 0o17 |
| 16 | 10000 | 0x10 | 0o20 |
| 32 | 100000 | 0x20 | 0o40 |
| 64 | 1000000 | 0x40 | 0o100 |
| 100 | 1100100 | 0x64 | 0o144 |
| 128 | 10000000 | 0x80 | 0o200 |
| 255 | 11111111 | 0xFF | 0o377 |
| 256 | 100000000 | 0x100 | 0o400 |
| 1024 | 10000000000 | 0x400 | 0o2000 |
Practical Applications in Computing
- Bitmasking & Permissions: Unix file permissions (such as
chmod 755) use binary bitmasks to control read, write, and execute flags. - Memory Addressing & Data Structures: Array indexing and hardware offsets are calculated in base-10 and converted to binary/hex by compilers.
- Reversing Conversions: Translate binary back to base-10 with our Binary to Decimal Converter, or convert numbers to base-16 with the Binary to Hex Converter.
Frequently Asked Questions
Common questions and answers about the Decimal to Binary Converter.
How do you convert decimal to binary manually?
Use successive division by 2. Divide the decimal number by 2 and write down the remainder (0 for even, 1 for odd). Repeat dividing the quotient by 2 until you reach 0. Read all remainders from bottom to top to get the binary number.
What is 255 in binary?
255 in decimal equals 11111111 in binary (an 8-bit byte with all 8 bits active: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255).
How do you read remainders when dividing by 2?
Remainders are read in reverse order from bottom to top. The first remainder produced is the least significant bit (LSB / far right), and the final remainder is the most significant bit (MSB / far left).
Can this calculator convert large decimal numbers?
Yes! The tool uses JavaScript BigInt, allowing you to convert arbitrarily large decimal numbers with exact mathematical precision.
Does this tool generate Hexadecimal and Octal values?
Yes! Whenever you enter a decimal number, the tool automatically displays its Hexadecimal (Base-16) and Octal (Base-8) equivalents in real time.
Is this decimal to binary converter free and private?
Yes, it is 100% free with no registration required. All calculations execute locally inside your web browser, ensuring complete privacy.