Number Base Converter
Enter a whole number, choose the base it is written in and the base you want. Binary, octal, decimal and hexadecimal are covered, and so is every base up to 36.
Use the tool
Loading the tool…
About Number Base Converter
Convert a number from one base to another, such as decimal, binary, octal or hexadecimal. Enter the number, choose the base it is in, and choose the base you want.
Worked example
Enter 255 in decimal and convert to hexadecimal. The result is FF.
Limits
Check the base of the number you enter, because the same digits mean different values in different bases.
How to use Number Base Converter
- Type the number in the Number box.
- Choose the base to convert from and the base to convert to.
- Read the result as it appears and copy it if you need it.
Good to know
- Digits above 9 are written with letters: A or a is 10, B is 11, and so on up to Z, which is 35.
- Only whole numbers are converted. Fractions are not supported.
- A minus sign in front of the number is allowed.
- Results are exact, even for numbers far larger than a normal calculator can hold.
Frequently asked questions
How do I convert binary to decimal?
Choose base 2 as the starting base and base 10 as the target, then type the binary number.
Are lower-case letters accepted for hex?
Yes. a to f and A to F mean the same thing.
Is my number saved?
No. Nothing is stored or sent.