# Convert Hexadecimal to Decimal

> Convert hexadecimal numbers to decimal online. Free hex to decimal converter with a worked example — base 16 to base 10, one value per line.

When you meet a hex value in a color, a status register, or a memory dump, you often need its plain decimal meaning. This converter turns base-16 numbers into base-10 integers, accepting an optional 0x prefix.

## Example: Hex → Decimal

Input:
```
a
ff
1000
ffff
```

Output:
```
10
255
4096
65535
```

## How to convert Hex to Decimal

1. Take your hex value, e.g. ff.
2. Multiply each digit by 16 raised to its position, right to left.
3. Sum the results — ff becomes 15×16 + 15 = 255.

## FAQ

### Does it accept a 0x prefix?

Yes. A leading 0x is stripped automatically, so both ff and 0xff convert to 255.

### Is hex case-sensitive?

No. Upper- and lowercase letters a–f are treated the same, so FF and ff both equal 255.

## Related converters

- [Decimal → Hex](https://www.devkult.com/convert/decimal-to-hex.md)
- [Binary → Decimal](https://www.devkult.com/convert/binary-to-decimal.md)
- [RGB → HEX](https://www.devkult.com/convert/rgb-to-hex.md)

Open the interactive converter: https://www.devkult.com/convert/hex-to-decimal