Number Base Converter

By the ToolPocket team · Updated 2026-12-05 · Editorial standards

Programmers move between binary, octal, decimal and hexadecimal all day. A converter that validates the digits as you type catches mistakes before they reach code.

Type a value, choose its base, and read the equivalent in the other three bases. Grouping separators are accepted and ignored.

Runs locally in your browser — nothing is uploaded.

How to use the Number Base Converter

  1. Choose the base of the value you have.
  2. Type the number; spaces and underscores are ignored.
  3. Read the result in the other bases and copy it.

Frequently asked questions

What characters are valid?

Base 2 allows 0–1, base 8 allows 0–7, decimal allows 0–9 and hexadecimal allows 0–9 plus a–f. Letters are case-insensitive in hex.

How large can the numbers be?

Values are converted with BigInt, so they are limited only by available memory rather than 53-bit floating point precision.

Why are separators allowed?

Long binary values are easier to read in groups. Spaces and underscores are ignored before conversion.

Good to know

Hexadecimal is compact binary: each hex digit is exactly four bits. That is why memory addresses, colours and byte dumps use it, and why converting binary to hex is a matter of grouping in fours.

JavaScript numbers are floating point above 2^53, so large identifiers lose precision if you convert with Number. This tool uses BigInt, which keeps arbitrary-length integers exact.