Number Base Converter

Convert numbers between binary, octal, decimal, hex and any base from 2 to 36 — even very large numbers.

Runs instantly in your browser — results update as you type.

What is a number base?

A number base (radix) is how many different digits a number system uses: binary uses 2 (0–1), octal 8, decimal 10 and hexadecimal 16 (0–9 and A–F). The same value can be written in any base.

Examples

DecimalBinaryOctalHex
10101012A
25511111111377FF
40961000000000000100001000

Features

  • Input in base 2, 8, 10, 16, 32 or 36; prefixes like 0x, 0b and 0o are accepted.
  • Arbitrary precision with BigInt — no rounding errors, even for 100-digit numbers.
  • An extra target base of your choice (2–36).
  • Bit and byte length of the number.

Frequently asked questions

Does it support negative numbers?

Yes, a leading minus sign is kept in every base.

Does it support fractions?

No, it converts whole numbers (integers).

Why is hex used in programming?

One hex digit is exactly four bits, so bytes (two hex digits) are easy to read.