Binary, Hex & Decimal
Convert between binary, octal, decimal, hexadecimal and any base up to 36.
- Binary (2)
- 11111111
- Octal (8)
- 377
- Hexadecimal (16)
- FF
- Base 5
- 2010
- Bits needed
- 8
How the binary, hex & decimal calculation works
Each digit is worth the base raised to its position. Binary uses 0 and 1, octal 0 to 7, decimal 0 to 9 and hexadecimal 0 to 9 plus A to F. The tool converts through exact integers, so long values stay accurate.
How to use this calculator
- Number. Type your answer.
- Written in base. Type a number.
- Also show in base. Type a number.
- Read the result. It updates as you type, with a breakdown. Use Copy result to save it.
Worked example
With Number "FF", Written in base 16, Also show in base 5, the result is Decimal: 255 (FF in base 16). The result also breaks down into: binary (2); octal (8); hexadecimal (16); base 5; bits needed.
Tips and common mistakes
Binary uses base 2, octal base 8, decimal base 10 and hexadecimal base 16.
- Hexadecimal uses the letters A to F for 10 to 15.
- Computers store numbers in binary.
- Check that your digits are valid for the base you chose.
Frequently asked questions
How do I convert binary to decimal?
Add the powers of 2 where there is a 1. 1011 is 8 + 2 + 1 = 11.
Why do programmers use hex?
One hex digit equals four binary digits, so it is a short way to write binary values.
Can I use letters in other bases?
Yes. Bases above 10 use letters: A is 10, B is 11 and so on up to Z, which is 35.
Last reviewed 2026-10-30. Results are estimates for planning only. Read the disclaimer.