Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, or any base from 2 to 36.
Converts a number between any two bases from 2 (binary) to 36 (using 0-9 then A-Z as digits), not just the common binary/octal/decimal/hex set — useful for debugging a bitmask, reading a color code, or checking a base-36 short-URL ID by hand.
Example: The decimal number 255 converts to FF in base 16 (hexadecimal) — the maximum value a single byte can hold, and the reason 0xFF shows up constantly in color codes and bitwise flags.
How it works
- Enter a value and its current base
- Enter the base to convert it to
- The converted value appears instantly, computed on your device
Frequently asked questions
What are different number bases actually used for?
Binary (base 2) is how computers represent data at the hardware level. Hexadecimal (base 16) is a compact, human-readable way to write binary values — used constantly in color codes (#FF5733), memory addresses, and bitwise flags. Octal (base 8) shows up in Unix file permissions.
How do I convert hexadecimal to decimal?
Set the from-base to 16 and the to-base to 10. Each hex digit (0-9, then A-F for 10-15) is multiplied by 16 raised to its position and summed — this tool does that conversion for you instantly.
Is my numbers uploaded anywhere?
No — Number Base Converter runs entirely in your browser using JavaScript/WebAssembly. Your numbers is never sent to a server.