Number base converter

Convert integers between binary, octal, decimal, and hexadecimal.

The number stays in this browser. Integers of any length are exact — no floating-point rounding. Up to 10,000 characters. Prefixes 0x, 0b, 0o and _ or space separators are accepted.

How to use

  1. Enter an integer.
  2. Pick the input base or leave it on auto.
  3. Copy the base you need.

What it supports

Auto mode reads 0x, 0b, and 0o prefixes, otherwise decimal. Accepts signs and _ or space separators. Uses BigInt, so integers of any length stay exact. Up to 10,000 characters.

Related tools