Convert numbers between binary, octal, decimal and hexadecimal.
Converted locally in your browser.
Understanding your result
Only digits valid for the chosen base are accepted (for example, 2 is not valid binary).
Formula and method
The value is parsed from its input base into an integer, then formatted into base 2, 8, 10 and 16.
Worked example
The hex value FF equals 255 in decimal, 11111111 in binary and 377 in octal.
How to use this tool
- Enter the value.
- Choose the input base.
- Read all four representations.
Common mistakes to avoid
- Entering hex letters while the input base is set to decimal.
About the Number Base Converter
Convert a number from one base to binary, octal, decimal and hexadecimal all at once.
Explore all Developer Tools tools
Frequently asked questions
Does it handle large numbers?
It handles standard integers reliably; extremely large values may lose precision.