Number Base Converter
Convert integers between bases 2 and 36 with full precision, including values too large for floating point.
Bases above 10 use letters: a = 10, b = 11, … z = 35. A leading minus sign is allowed.
Result
ff
The same value in common bases
| Base | Value |
|---|---|
| 2 | 11111111 |
| 8 | 377 |
| 10 | 255 |
| 16 | ff |
How to use
- Type the integer to convert (negatives are allowed).
- Choose the source and target bases, from 2 to 36.
- The result appears and can be copied; a table also shows the value in bases 2, 8, 10 and 16.
Notes
Conversion uses BigInt, so integers too large for exact floating-point representation (beyond 2^53) convert without losing digits. Fractions are not supported. Bases above 10 use letters a = 10 through z = 35, and entering a digit that is invalid in the chosen base produces an error.
FAQ
- Can I include a 0x prefix for hexadecimal?
- No. Enter just the digits without the prefix (for example: ff).
- Can it convert decimals or fractions?
- This tool is for integers only; input containing a decimal point is rejected.