Base-N number converter
Convert any whole number written in bases 2 through 36 and read it instantly in binary, octal, decimal, hexadecimal and base-36. Handy for developers working with hex colours, octal permissions, binary flags or compact base-36 IDs.
How it works
The tool parses your input one character at a time. Each digit uses the alphabet
0-9a-z, where a = 10 up to z = 35, and must be valid for the base you
selected. It accumulates the value with the standard positional rule:
value = value × base + digit
building an arbitrary-precision integer (BigInt). To display the result it repeatedly divides by each target base and collects the remainders, so even very large numbers convert exactly with no overflow.
Example
Enter 255 as a base-10 number:
| Base | Result |
|---|---|
| Base 2 (binary) | 11111111 |
| Base 8 (octal) | 377 |
| Base 10 | 255 |
| Base 16 (hex) | ff |
| Base 36 | 73 |
Type ff with input base 16 and you get 255 back in decimal. All conversion
runs locally in your browser — nothing is sent to a server.