Number Base Converter: Binary, Decimal, Hex & Base 2–36

Convert exact integers and fractions between binary, octal, decimal, hexadecimal, and every base from 2 to 36 with BigInt, prefixes, precision, and bulk CSV output.

Input

Outputs show up to this many fraction digits; "…" marks a repeating (truncated) fraction.

Conversions

Number base converter features

  • Convert exact integers and fractions across bases 2–36
  • Preserve arbitrarily large integers with BigInt arithmetic
  • Auto-detect 0x, 0b, and 0o prefixes with clear validation errors
  • Use digit separators, precision controls, copy buttons, and base swap
  • Batch-convert newline-separated values and copy the results as CSV

Number base converter FAQ

Which number bases does this converter support?

It converts between every radix from base 2 through base 36, including binary, octal, decimal, and hexadecimal presets.

Can it convert fractions and very large integers?

Yes. Fractions use exact rational arithmetic with a selectable output precision, while integer values use BigInt so digits are not lost above JavaScript's safe-number limit.

What do the 0x, 0b, and 0o prefixes mean?

In Auto-detect mode, 0x marks hexadecimal, 0b marks binary, and 0o marks octal. The selected base is used when no supported prefix is present.

Infinio Tools
© 2026 Infinio Labs