This number base converter turns a number from one base into another, such as binary, decimal, hexadecimal, octal or any base from 2 to 36. Type into any box and the other bases update instantly. It suits students, programmers, and anyone who needs a quick, free answer, including for very large numbers.
How to use the number base converter
- Find the box for the base you already have: binary, decimal, hexadecimal, octal, or a custom base.
- Type your number into that box.
- Read the results in the other boxes. They update as you type, so there is no convert button to hunt for.
- Change a digit or start over whenever you like. Every box refreshes to match.

This tool pairs well with the Text to Binary Converter. If you do this kind of job often, the Color Converter and the URL Parser can save you time too.
You can work in any direction. Type hex and read decimal, or type decimal and read binary. The tool does not care which box you start in.
What is a number base converter good for?
Different fields write the same value in different bases. A converter saves you from doing the maths by hand each time.
- Homework and exams. Check your working when you convert binary to decimal or decimal to binary.
- Programming. Colour codes, memory addresses and bit flags are often written in hex. A hex to decimal conversion shows the plain value.
- Networking and electronics. Binary makes it easy to see which bits are on or off.
- File permissions. Octal is common here. For example, octal 755 is 493 in decimal and 111101101 in binary.
- Puzzles and curiosity. Base 36 uses digits and letters, and some people use it to build short codes.

Quick examples to test against
Try these values to see how the bases line up.
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 10 | 1010 | 12 | A |
| 31 | 11111 | 37 | 1F |
| 100 | 1100100 | 144 | 64 |
| 255 | 11111111 | 377 | FF |
In base 36, the decimal number 35 is the single character Z. Letters carry on after 9, which is how a single digit can stand for values up to 35.
Which digits can each base use?
| Base | Name | Digits allowed |
|---|---|---|
| 2 | Binary | 0 and 1 |
| 8 | Octal | 0 to 7 |
| 10 | Decimal | 0 to 9 |
| 16 | Hexadecimal | 0 to 9, then A to F |
| 36 | Base 36 | 0 to 9, then A to Z |
Any base from 2 to 36 follows the same pattern. The base tells you how many different digits it has.
Tips for best results
- Check your digits first. A 2 can never appear in a binary number, and a 9 can never appear in octal.
- Leave out extras. Type only the number itself. Spaces, commas and labels such as "hex" are not part of the value.
- Use the right box. Many wrong answers come from typing a hex value into the decimal box. Make sure the box matches your number.
- Keep long binary readable. Group it in fours in your notes, such as 1111 1111. Each group maps to one hex digit, which makes checking easy.
- Do not worry about size. The tool supports very large numbers, so you can paste long values without splitting them.
How do you convert binary to decimal by hand?
Write the place values under each binary digit, starting from the right: 1, 2, 4, 8, 16 and so on. Add up the place values wherever the digit is 1.
Take 1010. The 1s sit under 8 and 2, so the answer is 8 + 2 = 10. You can type 1010 into the binary box to confirm it.
Going the other way, decimal to binary, you divide by 2 again and again and read the remainders from last to first. It works, but it is slow for big numbers. That is where a converter helps most.
Common problems and how to fix them
The result looks wrong
Check that you typed the number in the box for its own base. The same characters mean different things in different bases. The text 10 is ten in decimal, two in binary and sixteen in hex.
I cannot enter a letter
Letters are only valid in bases above 10. Hex uses A to F. Decimal, octal and binary use digits only.
My number has leading zeros
Leading zeros do not change the value. 0011 and 11 are the same number, so the other bases will match either way.
I need a base other than the common four
Use the custom base option and choose any base from 2 to 36. This works like an octal converter or hex converter, but for the base you pick.
