How to convert numbers between bases 2 and 36
- Enter a signed whole number in Integer. Leave out base prefixes such as 0x.
- Choose Input base and Output base. The input base defaults to decimal.
- Read Converted integer and Common bases. Select Copy result on the value you need.
Convert binary to decimal, hex to decimal and any radix (2–36)
Use this number base converter and radix converter for binary to decimal, decimal to binary, hex to decimal, decimal to hex, binary to hex or any custom base between 2 and 36. Enter the raw digits without 0x, 0b or 0o prefixes and select the input base. For example, FF in base 16 (hexadecimal) equals 255 in base 10 (decimal), 377 in base 8 (octal) and 11111111 in base 2 (binary). Negative integers keep their leading minus sign (-FF → -255).
Common number bases reference table
Every conversion displays your chosen output base alongside all four common programming bases calculated with exact BigInt precision (up to 1,024 input digits, well beyond JavaScript’s 53-bit 9,007,199,254,740,991 safe integer limit):
| Base (Radix) | Name | Allowed digits | Example (255 in base 10) |
|---|---|---|---|
| Base 2 | Binary | 0–1 |
11111111 |
| Base 8 | Octal | 0–7 |
377 |
| Base 10 | Decimal | 0–9 |
255 |
| Base 16 | Hexadecimal | 0–9, a–f |
ff |
| Base 36 | Alphanumeric | 0–9, a–z |
73 |
Combine radix conversion with timestamps, math and Base64
If a log or packet dump records a Unix timestamp in hexadecimal, convert hex to decimal with this hexadecimal converter first, then paste the decimal integer into the epoch converter. For floating-point expressions, powers and logarithms, open the scientific calculator. To encode or decode UTF-8 text rather than integer values, use the Base64 decoder.
Frequently asked questions
What digits are allowed?
Use 0 through 9 and then letters A through Z for higher bases. Each digit must be smaller than the input base.
Can I convert a negative integer?
Yes. Add a leading minus sign. For example, -FF in base 16 is -255 in base 10.
Will a large integer lose precision?
No. Integer conversion uses BigInt and accepts up to 1,024 digits in the chosen input base.
Can I paste a 0x, 0b or 0o prefix?
Leave off the prefix and select the input base directly.
Can I convert a fraction or text?
Enter a whole number for this tool. Use Base64 Decoder for text encoding.
Last updated November 11, 2026