Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16).
Your everyday toolkit
ConvertersNumber Base Converter
Convert nonnegative integers exactly between decimal, binary, hexadecimal and octal, including values larger than JavaScript’s safe integer range.
Conversions
0b111111110o3772550xFFUsing Number Base Converter well
Convert a nonnegative integer exactly among binary, octal, decimal and hexadecimal.
Example to try
Enter decimal 255 to obtain FF in hexadecimal and 11111111 in binary. Try a value larger than JavaScript's safe integer range to preserve all integer digits.
What to check before relying on the result
Only bases 2, 8, 10 and 16 are supported. Digits must match the selected base. Fractions, negative numbers and exponential notation are rejected rather than partially parsed.
How to use Number Base Converter
View largerReal workspace previewA preview of the actual tool workspace
YOU’RE EXPLORING
Enter a number
A few steps.
A whole new result.
Frequently Asked Questions
The useful details, before you get started.
This tool accepts nonnegative integers in bases 2, 8, 10 and 16. Negative numbers and fractions are not supported.
Choose any question to see the details.
