Hex Converter
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Spaces, underscores and a 0x, 0b or 0o prefix are fine.
Results
That isn't a whole number in the chosen base.
- Binary (base 2)
- Octal (base 8)
- Decimal (base 10)
- Hexadecimal (base 16)
Your input is too long to share as a link, so the page address no longer includes it.
Computers count in binary, programmers write those values in hexadecimal, and people think in decimal. This converter turns a whole number from any of them, or any base up to 36, into all the others.
How to use it
- Type the number.
- Pick the base it’s written in: decimal, hex, binary, octal or another base.
- Read or copy the result in each base.
Example: 255 in decimal is FF in hex, 11111111 in binary, 377 in octal and 73 in base 36.
For text (letters to binary or hex codes), use the Text to Binary converter.
Questions and answers
How do I convert hex to decimal by hand?
Multiply each digit by a power of 16, starting from 1 on the right, and add them up. A to F stand for 10 to 15. For FF: 15 × 16 + 15 × 1 = 255.
Is there a size limit?
Numbers up to 1,000 digits are converted exactly, with no rounding, so large IDs and 64-bit values come out right.
What about negative numbers?
A minus sign is kept in every base (−255 is −FF). The tool doesn’t show two’s complement, which depends on how many bits a value has.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
value | The number to convert. |
from | The base it's written in, 2 to 36 (10 = decimal, 16 = hex). |
to | An extra base to show, 2 to 36. |
group | 1 to group digits, 0 for none. |
Example: https://toolabelle.com/hex-converter/#value=FF&from=16&to=36&group=1