Base Converter
Convert a number between any base from 2 to 36.
This free online base converter (radix converter) takes a number in any base from 2 to 36 and shows it in binary, octal, decimal, hexadecimal, and a custom base of your choice — all at once. Built on arbitrary-precision integers, so there's no precision loss on large values. No signup required, runs entirely in your browser.
Source base
Extra custom base
Shown alongside binary/octal/decimal/hex in the results.
Quick reference
- 255 (base 10)
- → FF (hex), 11111111 (binary)
- FF (base 16)
- → 255 (decimal), 377 (octal)
- 1010 (base 2)
- → 10 (decimal), A (hex)
How to use this base converter
A base converter (or radix converter) translates a number written in one numbering system into another. Enter a number, pick the base it's currently written in (2 to 36), and the result updates instantly — shown in binary, octal, decimal, hexadecimal, and any extra custom base you set, so you can cross-check the conversion however you think about it.
Under the hood, this tool parses the input digit-by-digit into a JavaScript BigInt using a multiply-accumulate loop (BigInt has no built-in arbitrary-radix string parser), then formats that BigInt back out using each target base. That means no floating-point precision loss — you can convert numbers hundreds of digits long and still get an exact result.
What number bases mean
- Binary (base 2) — digits 0-1. The native representation used by computer hardware and low-level bit flags.
- Octal (base 8) — digits 0-7. Used historically in Unix file permissions (e.g.
chmod 755). - Decimal (base 10) — digits 0-9. The everyday counting system.
- Hexadecimal (base 16) — digits 0-9 and a-f. Common in color codes, memory addresses, and byte-level debugging.
- Base 36 — digits 0-9 and a-z, the highest base this tool supports, sometimes used to shorten IDs.
Converting by hand
To convert a number out of a given base, multiply each digit by the base raised to its place-value power and sum the results. For example, hex FF is 15×16 + 15 = 255 in decimal. To convert a decimal number into another base, repeatedly divide by the target base and read the remainders in reverse order.