Browser-local conversion

Decimal to Binary Converter

Convert a plain decimal integer to an exact binary number without routing large values through floating-point Number arithmetic.

Enter a value and select Convert.

Method and worked example

The entire base-10 integer is parsed as BigInt and formatted directly in base two. A leading minus sign remains outside the converted magnitude, so negative values use mathematical signed-magnitude notation rather than a bit-width-specific encoding.

Example

45₁₀ becomes 101101₂. The exact value 9007199254740993 becomes 100000000000000000000000000000000000000000000000000001₂ without rounding.

Limits and signed values

Only plain signed base-10 integer syntax is accepted. Values such as 1e6, 12.5, Infinity, NaN, and locale-formatted 1,000 are rejected. Input is limited to 15,000 decimal digits.

Safe, exact local processing

Input is handled as inert data and rendered with safe text nodes. No code is evaluated. Integer tools use arbitrary-precision BigInt instead of floating-point conversion, and the Binary Translator uses the browser’s UTF-8 byte APIs.