Number base converter (binary, octal, decimal, hex)
Enter a number, choose its base and see it in binary, octal, decimal and hex, or in a custom base.
About this tool
Common bases. Binary is base 2, octal base 8, decimal base 10 and hexadecimal base 16. Hex uses the digits 0 to 9 and letters A to F.
Custom bases. Any base from 2 to 36 can be used, with digits 0 to 9 then letters A to Z.
Large numbers. The tool uses exact big-integer maths, so large values do not lose precision.
Whole numbers only. Fractions and negative numbers in two's complement form are not covered.
Frequently asked questions
What does 0x mean?
A prefix such as 0x is used in many programming languages to show a hexadecimal number. You can type the digits without it.
Why do letters appear in hex?
Base 16 needs sixteen digits, so after 9 it uses A to F for the values 10 to 15.
More free tools
Explore more free tools or see our services.