Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and any custom base from 2 to 36, with every common base shown at once.

Input

Result

All Bases

Binary (2)
Octal (8)
Decimal (10)
Hex (16)

How to convert number bases

  1. Choose the base your number is currently in.
  2. Choose the base you want to convert to, or pick Custom and enter any base from 2 to 36.
  3. Type the value and the converted result updates instantly.
  4. See the same number in binary, octal, decimal and hex in the All Bases section.

FAQs

What number bases can I convert between?

Binary (2), octal (8), decimal (10), hexadecimal (16), or any custom base from 2 to 36.

What digits are valid in each base?

A base N number uses the digits 0 through N-1. For bases above 10, letters A-Z stand in for values 10 through 35.

What happens if I type a digit that is invalid for the base?

The tool shows an error naming the base, so you are never given a silently truncated or incorrect result.

Can I enter a hexadecimal value with a 0x prefix?

Yes. For hex input, values such as FF, 0xFF and 0XFF are all accepted and produce the same result.

Related Tools

Why convert number bases?

Binary, octal and hexadecimal show up constantly in programming, networking and low-level work. A converter turns an unfamiliar base into something readable in one step.

Tips and Limits

Bases are limited to the range 2 to 36, and letters A-Z are case-insensitive. Large values may lose precision beyond the safe integer range, and everything runs locally in your browser.