Hex to Decimal Converter
Read a hexadecimal whole number in decimal and see how the digits add up.
Enter a hexadecimal number to read it in decimal.
Example · FF in decimal
Decimal
255
FF in hexadecimal is 255 in decimal.
Binary
11111111
Octal
377
Conversion steps
15 × 16^1 + 15 × 16^0 = 255
The caret marks a power. For example, 2^3 means 2 × 2 × 2.
Processed on this device — nothing is uploaded
What you can do here
- Binary, decimal, hex and octal
- Exact conversions with BigInt
- Negative whole number support
- Place-value steps for decimal
- Copy each converted value
How do you convert hexadecimal to decimal?
To convert hexadecimal to decimal, give the letters A through F the values 10 through 15. Starting at the right, multiply the first digit by 1, the next by 16, the next by 256, and continue with successive powers of 16. Add the terms to get the decimal number. For example, FF equals 15 × 16 + 15, or 255.
The converter shows the steps and lets you copy the decimal, binary and octal equivalents.
Key facts
- Price
- Free
- Sign-up
- None
- Upload
- None — runs on your device
- Limits
- Up to 256 input digits · Whole numbers, including zero and negatives
- Works with
- Binary, decimal, hexadecimal or octal integers · Optional 0b, 0x or 0o prefix in the matching base
- Output
- Exact equivalents in the three other bases · Decimal place-value steps
- Updated
How do you use the hex to decimal converter?
- Keep Hexadecimal as the input base
The page starts in base 16 with FF.
- Enter a hexadecimal number
Use digits 0–9 or letters A–F. An optional 0x prefix is accepted.
- Read the decimal result
Check the place-value steps to see how each hex digit contributes.
How do hexadecimal place values work?
Each position is worth 16 times as much as the one to its right. The rightmost position has a weight of 1.
| Hexadecimal | Decimal | Place-value sum |
|---|---|---|
| A | 10 | 10 × 1 |
| 1F | 31 | 1 × 16 + 15 |
| FF | 255 | 15 × 16 + 15 |
Frequently asked questions
What is FF in decimal?
FF is 255 in decimal because each F represents 15 and the left F has a place value of 16.
Can I enter lowercase hex or a 0x prefix?
Yes. ff, FF and 0xFF all convert to 255 with Hexadecimal selected.
What are A and F worth in hexadecimal?
A has a value of 10 and F has a value of 15. A digit's position determines which power of 16 multiplies that value.
Popular conversions
Related tools
About this tool
Made by ZirkoMirko. Last updated .
Check it yourself in your browser’s Network panel while using the tool. How we handle your data.