Skip to main content

Popular Conversion

Convert Decimal to Binary

Convert decimal (base 10) integers to binary (base 2) strings with arbitrary precision, same engine as the full numbers converter.

By Jeff Beem

Convert decimal to binary

Enter a non-negative integer using only valid digits for decimal (base 10), or open binary → decimal on its own page.

,

Method: Interpret digits in base 10, expand to one exact integer (decimal internally), then rewrite in base 2 using BigInt, same as the full numbers converter.

What this conversion means in practice

You already have values in Decimal (decimal) and need Binary (binary) for the same material, drawing, or dataset. The factor below is the exact reciprocal of the forward direction; use it when sources quote the “other” unit first.

Decimal is how humans count; binary is how hardware stores bits. Converting decimal integers to binary gives you the exact bit pattern for a value without floating-point surprises.

Use this direction when an API gives a base-10 counter but your bitmask or register map expects a binary string.

Long outputs are normal for large integers; the tool uses BigInt so precision is exact.

Mnemonic: 42₁₀ = 101010₂; 255₁₀ = 11111111₂.

How to convert decimal to binary

Treat your input strictly as a base-10 integer: only digits valid for that base are allowed. The tool converts to an exact integer, then prints it in base 2.

Live example: 102

Unlike unit conversions with a single scale factor, radix conversion rebuilds the digit sequence. The “expand to decimal, then divide out the target base” algorithm matches what you learn in CS, automated here for any size.

Decimal

Definition: Base 10: the everyday positional system using digits 0–9.

History and origin: Linked to counting on ten fingers; dominant globally for human-facing arithmetic.

Current use: General arithmetic, finance, and human-readable magnitudes before re-encoding to other bases.

Binary

Definition: Base 2: positional notation using only the digits 0 and 1. Each place is a power of 2.

History and origin: Used formally since Leibniz; became central with Boolean logic and electronic switching.

Current use: Machine code, buses, flags, and any representation of bits in computing.

Decimal to Binary conversion table

Decimal (base 10)Binary (base 2)
00
11
101010
42101010
25511111111
4095111111111111
655351111111111111111

Decimal to Binary FAQ

Quick answers for Decimal-to-Binary rounding (reverse workflow), precision, and common mistakes.

How do I convert decimal to binary by hand?

Repeatedly divide by 2 and read remainders from bottom to top, or use this page for long values.

Can I paste negative numbers?

This tool targets non-negative integers; signed encodings depend on a fixed bit width (two’s complement).

Why so many digits?

Binary representation grows roughly log₂ of the magnitude; large decimals become long bit strings.

Popular numbers unit conversions