Number converter
Type a number, pick its base, and see it in every base at once.
How base conversion works
value = Σ digit × base^position
Each digit is multiplied by the base raised to its position, counting from 0 on the right. Binary 1101 = 1×8 + 1×4 + 0×2 + 1×1 = 13. Hexadecimal FF = 15×16 + 15 = 255.
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 100 | 1100100 | 144 | 64 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
| 1024 | 10000000000 | 2000 | 400 |
Frequently asked questions
How do I convert binary to decimal?
Multiply each binary digit by 2 raised to its position, counting from 0 on the right, then add the results. For example, 1101 = 8 + 4 + 0 + 1 = 13.
What is hexadecimal?
Hexadecimal is base 16. It uses the digits 0 to 9 and the letters A to F, where A is 10 and F is 15.
How large a number can I convert?
Any size. The tool uses arbitrary-precision integers. Roman numerals are shown for 1 to 3,999.