Binary, Hex, Decimal and Octal Converter
For developers and students working with bit flags, colour codes, memory addresses or permissions. Enter a value and its base and see it in six bases instantly.
Close the gaps with real-world projects
Build industry projects on ByteLabs and add verified proof of your skills to your public profile.
How to use the Number Base Converter
- Type the value into the Value box.
- Set From base to the base of that value (2 to 36), for example 16 for hex.
- Read Binary, Octal, Decimal, Hex, Base32 and Base36 as you type.
An example, step by step (example only)
You enter
Value: 255, From base: 10
The tool shows
Binary: 11111111 Octal: 377 Decimal: 255 Hex: FF Base32: 7v Base36: 73
Questions about the Number Base Converter
How do I convert hex to binary?
Enter the hex value without 0x, set From base to 16 and read the Binary row. For example FF gives 11111111.
Does the converter handle negative numbers or fractions?
A leading minus sign works, but fractions do not: everything after a decimal point is ignored because the value is parsed as an integer.
Why does a very large number lose accuracy?
Values are held as standard JavaScript numbers, which are exact only up to 9,007,199,254,740,991. Beyond that, the last digits can be rounded.
Is the Number Base Converter free and private?
Yes. It is free, needs no sign-up and runs entirely in your browser, so what you type is not uploaded. You only sign in if you want to email a result to yourself or save it to your CareerByteCode profile.