Number base converter
Runs in your browser – nothing is uploaded.
Enter an integer to see it in decimal, hexadecimal, binary and octal at once. In Auto mode the base is detected from prefixes such as 0x, 0b and 0o, or you can choose the base yourself.
Example
From base: Auto
Input
0xffOutput
Decimal: 255
Hex: 0xff
Binary: 0b11111111
Octal: 0o377Frequently asked questions
Is there a size limit?
Results are exact up to 9,007,199,254,740,991 (2^53 − 1). Larger numbers lose precision.
How is a number without a prefix read?
In Auto mode, digits only are read as decimal, and anything that also contains the letters a–f is read as hex.