Number Base Converter

Convert between binary, octal, decimal, hex and any base up to 36.

🔒 Runs entirely in your browser. Nothing you enter is uploaded or stored.

What is the Number Base Converter?

Computers store everything in binary (base 2). Programmers write the same values more compactly in hexadecimal (base 16), as in colors, memory addresses and byte dumps, or in octal (base 8), as in Unix file permissions like 755. This number base converter converts any whole number between these systems instantly.

It uses JavaScript BigInt, so there is no 53-bit precision limit. 64-bit IDs, 256-bit hashes and numbers with hundreds of digits convert exactly. Negative numbers and common prefixes (0x, 0b, 0o) are supported, and you can convert to or from any base from 2 to 36. Long results are grouped in blocks to make them easier to read.

How to use the Number Base Converter

  1. Enter a number. Prefixes such as 0x and separators such as spaces or underscores are fine.
  2. Choose the base it is written in. Pick Other… for bases like 3, 32 or 36.
  3. Read the decimal, hex, binary and octal values, and copy any of them.

Frequently asked questions

How do I convert binary to decimal by hand?

Multiply each bit by 2 raised to its position, counting from 0 on the right, and add the results. For example 1011 = 8 + 0 + 2 + 1 = 11.

Why is hexadecimal used so much?

One hex digit is exactly 4 bits, so a byte is always two hex digits (00–FF). That makes hex a compact, readable way to write binary data.

Does it support fractions?

No, this converter handles whole numbers (integers) of any size. Fractions often cannot be represented exactly in another base.