Number base converter
Convert a number between decimal, binary, octal and hexadecimal.
🔒 Everything runs in your browser. Nothing you choose or type is uploaded. How to verify
How to use it
- Enter the number.
- Pick the base it is written in.
- Read all four bases, which update as you type.
Handy for
Programming homework, color codes and checking bit patterns.
Good to know
Binary uses only 0 and 1, octal uses 0 to 7. If you type a digit that does not exist in the chosen base, the tool tells you.
Privacy: where the work happens
Everything you enter or choose is processed by JavaScript in your browser and never sent anywhere. Only the page code, and any library this tool needs, is downloaded from cdnjs or jsDelivr.
Questions
Which digits does hexadecimal use?
0 to 9 and A to F, where A is 10 and F is 15.
How large a number can it convert?
Whole numbers within normal JavaScript precision, up to about 9 quadrillion.