Number Base Converter

Convert integers without precision loss.

View result ↓
01  InputUpdates as you type
02  ResultOn your device
Enter a value to see the result.

On your device

How to use

Enter an integer, select base 2, 10, 16 or 36 for input and output. Base 36 uses digits 0–9 and letters A–Z.

Good to know

Uses BigInt for exact integer arithmetic. Up to 4,096 input characters, optional + or − sign, no fractions or 0x/0b prefixes. Output letters are uppercase.

Worked examples

Input

255 (10) → 16

Expected result

FF

Input

11111111 (2) → 10

Expected result

255

Input

ZZ (36) → 10

Expected result

1295