Number Base Converter (Binary, Octal, Decimal, Hex)
Type a number in any of the four bases and see it converted to the other three instantly, right in your browser.
Type in any field — the other three update instantly.
Numbers of any size convert without losing precision.
Not sure? Turn your internet off and try — it still works.
How it works
A number base defines how many distinct digits exist before counting rolls over into the next place. Decimal (base 10) uses 0-9; binary (base 2) uses only 0 and 1, and is how a computer represents everything internally; octal (base 8) uses 0-7 and still shows up in Unix file permissions; hexadecimal (base 16) uses 0-9 and A-F, and is the compact way to write bytes — every pair of hex digits is exactly one byte, which is why CSS colors and memory addresses use it. The conversion itself is always the same process: read the value in the source base and rewrite it in the target base, without changing the number itself.
Frequently asked questions
Related tools
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes of any text, using the native Web Crypto API.
Development
Base64 Converter
Convert text to Base64 and Base64 back to text, with full Unicode support.
Development
Unix Timestamp Converter
Convert a Unix timestamp to date and time, and a date back to a timestamp — in seconds or milliseconds.
Development
Chmod Calculator (Octal and rwx)
Convert Linux file permissions between octal (755) and rwx.
Development
Hex to Text Converter (UTF-8, ASCII)
Convert text to hexadecimal bytes and back, in the encoding you pick.
Development