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.
How to convert number bases
- Choose the base your number is currently in.
- Choose the base you want to convert to, or pick Custom and enter any base from 2 to 36.
- Type the value and the converted result updates instantly.
- 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.
- Read a binary or hex value as a familiar decimal number.
- Turn a decimal number into hex or binary for code and data sheets.
- See all four common bases side by side for quick comparison.
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.