Number Base Converter
Convert between binary, octal, decimal, hexadecimal and any base.
Designed to run in your browser. See the privacy policy.
About Number Base Converter
This number base converter changes whole numbers between binary, octal, decimal and hexadecimal, and also between any two bases from 2 to 36. It is useful for reading memory addresses, bit masks, file permissions, colour codes and anything else that programmers write in a base other than ten.
Numbers are handled as arbitrary-precision integers, so very long binary or hexadecimal strings convert exactly instead of being rounded the way ordinary floating-point numbers would be. As soon as you enter a valid value you also get a table showing it in all four common bases, with 0b, 0o and 0x prefixes and a copy button on each row. Everything is calculated in your browser.
How to use
- Choose the input base in From base (base 2, 8, 10 or 16) and type your number in Value.
- Choose the output base in To base and read the converted result; click copy to take it.
- Check the all common bases table to see binary, octal, decimal and hexadecimal side by side.
- For another base, use the arbitrary base (2 – 36) panel: set From base and To base, then type a Value.