Base-N Number Converter

Convert a number between any bases from 2 to 36.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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:

BaseResult
Base 2 (binary)11111111
Base 8 (octal)377
Base 10255
Base 16 (hex)ff
Base 3673

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.

Ad placeholder (rectangle)