Number Converters · Browser · Free
Base Converter
Type a number in the text field and use the two selects to say which base it is written in and which base to change it into. Either base can be any value from 2 to 36.
How this converter works
The form provides a number input, two base selects, and Convert, Reset, and Swap buttons. Enter a number using the valid digits for its base, choose the source and target bases from 2 to 36, and press Convert. The converted value displays along with a digit count indicating the number of digits in the result.
Digits run 0-9 followed by A-Z (where Z represents 35 in base 36). Use the Swap button to exchange the source and target bases, transfer the converted result back into the input field, and recompute the conversion in reverse.
The place-value formula
A number in any base is read digit by digit from the right. The last digit is worth its own face value, the digit to its left is worth that value multiplied by the base once, the next digit multiplied by the base twice over, and so on. Adding those place values together gives the amount the number stands for, and writing that same amount with the digits of the other base is the conversion.
Letters simply act as extra digits after 9. The table below shows the digits used by some common bases, from Base 2 (binary) with 0-1 up to Base 36 with 0-9 and A-Z.
| Base | Digits used |
|---|---|
| Base 2 (binary) | 0-1 |
| Base 8 (octal) | 0-7 |
| Base 10 (decimal) | 0-9 |
| Base 16 (hexadecimal) | 0-9, A-F |
| Base 36 | 0-9, A-Z |