Skip to main content
RaikTools — Free Online Tools
Binary Converter

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.

Quick Examples:
Base 10
Hex: 0x9COctal: 0o234
8 Bits
Nibbles: 1001 11001 Byte
Live Successive Division by 2 Calculation StepsRead remainders from bottom to top ↑
Successive division by 2 calculation steps
StepDivision OperationQuotientRemainder (Bit)
#1156 ÷ 2780 (LSB)
#278 ÷ 2390
#339 ÷ 2191
#419 ÷ 291
#59 ÷ 241
#64 ÷ 220
#72 ÷ 210
#81 ÷ 201 (MSB)
Result: 10011100 in Binary(8 bits)
Total Bit Length:
8 Bits
Memory Size:
1 Byte
Hexadecimal:
0x9C
Octal (Base-8):
0o234

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:

  1. Divide the decimal number by 2.
  2. Write down the whole quotient and record the remainder (0 if even, 1 if odd).
  3. Take the quotient and divide by 2 again, recording the new remainder.
  4. Repeat this process until the quotient becomes 0.
  5. 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 to binary, hexadecimal, and octal conversion reference table
Decimal (Base-10)Binary (Base-2)HexadecimalOctal
000x00o0
110x10o1
2100x20o2
3110x30o3
41000x40o4
51010x50o5
810000x80o10
1010100xA0o12
1511110xF0o17
16100000x100o20
321000000x200o40
6410000000x400o100
10011001000x640o144
128100000000x800o200
255111111110xFF0o377
2561000000000x1000o400
1024100000000000x4000o2000

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.