Hex to Decimal Converter
Convert hexadecimal numbers to decimal, from FF to 128-bit values and beyond. Accepts 0x prefixes, upper- and lowercase and negative numbers.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Hex to Decimal Converter
- 1 Type or paste the hexadecimal number, such as FF or 0x1A3F.
- 2 The decimal value appears immediately.
- 3 Copy the result.
About the Hex to Decimal Converter
Hexadecimal is base 16. Besides 0–9 it uses A–F for the values 10 to 15, and every position is worth 16 times the one to its right. FF is 15 × 16 + 15 = 255.
Hex is used for memory addresses, colour codes, error codes, hashes and byte values, because two hex digits are exactly one byte. This converter turns such values into ordinary decimal numbers, exactly, even for 128-bit values like UUIDs or long hashes.
You can type the number with or without 0x and in upper- or lowercase; spaces and underscores are ignored. Decimal to Hex converts back.
Frequently asked questions
What is FF in decimal?
255.
How do I convert hex to decimal by hand?
Multiply each digit by a power of 16 (1, 16, 256, 4096…) from right to left, using A=10 to F=15, and add the results.
Is 0x part of the number?
No, it only marks the number as hexadecimal. It may be included or left out.
Can it convert a hex colour like #FF8800?
It converts the whole number (16746496). For a colour’s red, green and blue values, use the HEX to RGB converter.