JSON & data

Number Base Converter

Binary, octal, decimal and hex with BigInt precision.

Runs locally Free No signup

A working example is preloaded — edit it or clear it.

Number base converterBigInt
Binary
Octal
Decimal
Hexadecimal

What this tool does

Developers move between binary, octal, decimal and hex all day: flags, permissions, colors, memory. This converter uses BigInt, so 64-bit values do not lose precision, and it accepts 0x, 0b and 0o prefixes. The bit length tells you how wide a field the value needs.

How to use it

  1. Paste the number.
  2. Leave the base on auto or choose one.
  3. Copy any format from the result rows.

Questions

Are negative numbers supported?

Yes. The sign is preserved in every base; two's complement is not implied.

Why BigInt instead of Number?

JavaScript Number loses integer precision above 2^53. BigInt keeps arbitrary-size integers exact.

What does bit length mean?

The minimum number of binary digits needed for the absolute value. A value needing 9 bits does not fit in an unsigned byte.

← Back to all tools
Type to filter, ↑↓ to move, ↵ to open, esc to close.esc