Converter
Binary, Octal, Decimal, Hex & Every Base In Between
Convert any value between base 2 and base 60
Results are provided for informational purposes only and may contain errors. Please verify important information independently. Use of this tool is at your own risk.
About number bases
A number base (or radix) determines how many unique digits are used to represent values - binary (base 2) uses only 0 and 1; decimal (base 10), the one you use every day, uses 0-9; hexadecimal (base 16) adds the letters A-F for values 10-15. This tool supports every base from 2 to 60: digits 0-9, then A-Z for values 10-35, then a-z for values 36-59. Above base 36, uppercase and lowercase letters are different digits (e.g. in base 40, “A” and “a” are not the same value) - for base 36 and below, case does not matter.
What the Number Base Converter does
The Number Base Converter converts whole numbers between any two bases from 2 to 60: binary, octal, decimal and hexadecimal, plus less common ones such as base 36 for short IDs or base 60 for time-style values.
Digits run 0-9, then A-Z for values 10 to 35, then a-z for 36 to 59. Up to base 36 uppercase and lowercase mean the same digit; above base 36 they are different digits. The result updates as you type, along with a line that restates the conversion.
When to use it
- Reading memory addresses, color values or bit masks written in hexadecimal, or setting individual bits in binary.
- Working out Unix file permissions in octal; the Chmod / Unix Permission Calculator shows the same in a friendlier form.
- Shortening numeric IDs into base 36 strings for URLs or reference codes.
- Checking homework or exam answers for number-system exercises in computer science courses.
Worked example
255 · base 10 → base 16
FF
255 · base 10 → base 2
11111111
777 · base 8 → base 10
511
1000000 · base 10 → base 36
LFLS
-255 · base 10 → base 16
-FF
0.75 · base 10 → base 2
0.11
Common questions about the Number Base Converter
Which bases are supported?
Every base from 2 to 60. The From and To menus list them all, and the input is checked against the digits allowed in the base you choose.
Can I convert negative numbers or fractions?
Yes. A minus sign is kept, so -255 in decimal is -FF in hexadecimal, and fractions work too: 0.75 is 0.11 in binary. Fractions that repeat forever in the target base, such as 0.1 in binary, are cut off after a fixed number of digits.
Is there a size limit?
Very large integers are calculated exactly, without the rounding that ordinary floating-point numbers suffer above 2^53, so long hexadecimal IDs and hashes convert correctly.
Is this tool free?
Yes, it's free to use. No signup, no email required. Get results on this page.
How do I get my result?
Use the tool on this page. Your result appears here; no email delivery is required.