💻 Decimal to Binary Converter

Convert Decimal (decimal) to Binary (binary) instantly. Decimal to binary conversion.

1 unit =
From
To
Formulae.g. 255 = 11111111
UnitNameValue
binaryBinary (Base 2)
hexHexadecimal (Base 16)
octalOctal (Base 8)

Quick Answer

Example: 10 (Decimal) = 1010 (Binary)

Method: Repeatedly divide by 2 and record remainders. E.g. 10÷2=5r0, 5÷2=2r1, 2÷2=1r0, 1÷2=0r1 → read remainders upward: 1010₂.

Decimal is base-10; Binary is base-2. Use the converter above for any value instantly.

Worked Examples

Basic 4-bit binary
1010 = 10102
Decimal 10 → Binary 1010
Maximum 8-bit value (all 1s)
25510 = 111111112
Decimal 255 → Binary 11111111
Power of 2 — 64 = 2⁶
6410 = 10000002
Decimal 64 → Binary 1000000
RGB color channel value 180
18010 = 101101002
Decimal 180 → Binary 10110100

Decimal to Binary Reference Table

Common values from 0 to 1,048,576 — powers of 2 and standard computing values

Decimal (base 10)Binary (base 2)Notes
00Zero
11One
210Two
311
4100Four
5101
6110
7111
81000Eight
91001
101010Ten
111011
121100
131101
141110
151111Max nibble (4-bit)
1610000One hex digit
321000002⁵
6410000002⁶
128100000002⁷
25511111111Max byte
2561000000002⁸
51210000000002⁹
1024100000000001 KiB
20481000000000002 KiB
409610000000000004 KiB
32768100000000000000032 KiB
655351111111111111111Max 16-bit unsigned
65536100000000000000002¹⁶
10485761000000000000000000001 MiB (2²⁰)

How to Convert

Divide by 2 repeatedly

Divide by 2, note the remainder (0 or 1). Read remainders bottom-to-top for the binary result.

Subtract largest power

Find the largest power of 2 ≤ your number. Set that bit, subtract, repeat.

Even/odd check

Even numbers end in 0, odd numbers end in 1 in binary.

Who Uses This Converter?

Software Developer

Converts between binary, hex, and decimal daily for debugging, bitmasking, and memory address analysis.

Computer Science Student

Learns number base conversions as a fundamental concept in computer architecture and digital logic courses.

Network Engineer

Works with IP addresses, subnet masks, and MAC addresses in binary, decimal, and hex representations.

Embedded Systems Engineer

Programs microcontrollers using binary bit patterns and hex register values for hardware configuration.

Digital Electronics Designer

Designs logic circuits using binary truth tables and checks hex values on oscilloscopes and analyzers.

Cybersecurity Analyst

Reads hex dumps, analyzes binary data, and decodes encoded strings during reverse engineering and forensics.

Frequently Asked Questions

About Decimal and Binary Number Systems

Decimal (Base 10)

The decimal (base-10) number system uses ten digits (0–9) and is the universal numeral system for human mathematics, commerce, and everyday life. It is almost certainly based on the ten fingers of the human hand — 'digit' comes from the Latin digitus meaning finger.

The decimal system with positional notation and zero was developed in India (5th–7th century CE) and transmitted to Europe via Arabic mathematicians — which is why it is also called the Hindu-Arabic numeral system. It replaced Roman numerals in European commerce by the 16th century.

Interesting fact: Not all cultures chose base-10. Babylonians used base-60 (preserved in our 60 seconds, 60 minutes, 360 degrees). The Mayans used base-20. The Yuki people of California used base-8, counting the spaces between fingers rather than the fingers themselves.

Binary (Base 2)

The binary (base-2) number system uses only two digits: 0 and 1. Every number is represented as a sum of powers of 2. It is the fundamental language of all digital computers, since electronic circuits naturally represent two states — on/off, high/low voltage, magnetized/demagnetized.

Binary was formalized by Gottfried Wilhelm Leibniz in 1703, inspired by the ancient Chinese I Ching hexagrams. The modern use of binary in computing traces to Claude Shannon's 1937 master's thesis, which showed that Boolean algebra could be implemented with electrical circuits — the foundation of all digital logic.

Interesting fact: A single binary digit is a 'bit'; 8 bits = 1 byte. A standard 64-bit computer processor works with numbers up to 2⁶⁴ − 1 ≈ 18.4 quintillion simultaneously. The DNA genetic code, though not binary, encodes information in base-4 (ACGT) — life's own digital system.

About Decimal to Binary Conversion

Decimal to binary conversion underpins all computer data encoding. Divide by 2 repeatedly — 10→1010₂, 255→11111111₂. Powers of 2 give round binary numbers: 64=1000000₂, 128=10000000₂, 256=100000000₂.

Use the converter above for any value. Results are exact — numeral base conversions involve no rounding or approximation.