Decimal to Binary Converter

Decimal to Binary Converter

Quick Examples

Advanced: Convert Any Base (2-36)

Understanding Decimal and Binary

Decimal is the base-10 number system used in everyday counting, built from the digits 0–9. It's the format humans read and reason about naturally, which is why programmers convert binary, octal, and hexadecimal values back to decimal whenever they need a human-readable number.

Binary is the base-2 number system used natively by computers: every value is stored as a sequence of bits, each either 0 or 1. Digital logic gates, boolean operations, and low-level memory all operate directly in binary — it's the only number system a CPU actually understands.

How to Convert Decimal to Binary (Step by Step)

To convert decimal to binary, repeatedly divide the number by 2 and record the remainder at each step; reading the remainders from last to first gives the binary value. For example, 10 ÷ 2 = 5 r0, 5 ÷ 2 = 2 r1, 2 ÷ 2 = 1 r0, 1 ÷ 2 = 0 r1 — read bottom-up, that's 1010. The same process converts 202 to 11001010.

Frequently Asked Questions

Find answers to common questions

To convert decimal to binary, repeatedly divide the number by 2 and record the remainder at each step; reading the remainders from last to first gives the binary value. For example, 10 ÷ 2 = 5 r0, 5 ÷ 2 = 2 r1, 2 ÷ 2 = 1 r0, 1 ÷ 2 = 0 r1 — read bottom-up, that's 1010. The same process converts 202 to 11001010.
You need enough bits so that 2^n is greater than the number. For example, decimal 202 needs 8 bits, since 2^7 = 128 isn't enough but 2^8 = 256 covers it.
No — this converter uses arbitrary-precision (BigInt) math internally, so it produces exact results even for very long binary strings or huge decimal, octal, and hexadecimal values, unlike calculators limited to 32-bit or 64-bit integers.

Free online decimal to binary converter. Convert decimal numbers to binary instantly, with support for arbitrarily large values.

UtilityConversionCalculator