Counting & Number Theory

Exact Integer Base 2–36 Converter

Convert signed integer digit strings between positional bases without floating-point rounding.

How the calculation works

Read each digit with positional recurrence value = value × input base + digit. Preserve the sign separately. Repeated division by the output base produces exact output digits from integer remainders.

Worked example

Example inputs — Integer digits, optional sign, no 0x/0b prefix: FF; Input base: 16; Output base: 2. Expected results — Converted integer digits: 11111111; Decimal representation: 255.

Assumptions and limits

Exact integer arithmetic is used for counts and integer results. Computation limits keep this browser tool responsive. Specify whether objects/groups are distinguishable and whether order matters; different conventions count different outcomes. Bases 2–36, digits 0–9 then A–Z, case-insensitive input, at most 1000 digits excluding sign. No fractional digits, exponent notation, separators, word-width wrapping or two’s-complement interpretation; those are different conventions.

Reference and further reading

Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.

Related calculators

Browse all 1000 calculators →

Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.