Hex to Decimal Converter
Convert hexadecimal to decimal online with each digit's place value shown. Reads 0x prefixes, fractions and signed two's complement values such as FF9C = -100.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the Hex to Decimal Converter
The Hex to Decimal Converter turns hexadecimal values such as FF, 0x1A3F or #FF9C into decimal and shows each digit's place value, from 16⁰ = 1 upwards. Turn on signed mode to read a hex dump or register value as a two's complement integer, so FF9C becomes −100.
Conversion happens in your browser, so your files and records stay private.
How to use the Hex to Decimal Converter
- Type or paste a hex number. Prefixes such as 0x, # and a trailing h are accepted, and case does not matter.
- Turn on "Signed (two's complement)" if the value is a signed integer from memory or a register.
- Read the decimal value and the table of digits multiplied by powers of 16.
- Paste several values, one per line, to convert a whole column at once.
Hex digits and their 4-bit patterns
One hex digit always stands for exactly four bits, which is why the conversion works digit by digit.
| Hex | Binary | Decimal |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 2 | 0010 | 2 |
| 3 | 0011 | 3 |
| 4 | 0100 | 4 |
| 5 | 0101 | 5 |
| 6 | 0110 | 6 |
| 7 | 0111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| A | 1010 | 10 |
| B | 1011 | 11 |
| C | 1100 | 12 |
| D | 1101 | 13 |
| E | 1110 | 14 |
| F | 1111 | 15 |
Powers of 16
| Position | Power | Decimal value |
|---|---|---|
| 0 | 16^0 | 1 |
| 1 | 16^1 | 16 |
| 2 | 16^2 | 256 |
| 3 | 16^3 | 4,096 |
| 4 | 16^4 | 65,536 |
| 5 | 16^5 | 1,048,576 |
| 6 | 16^6 | 16,777,216 |
| 7 | 16^7 | 268,435,456 |
| 8 | 16^8 | 4,294,967,296 |
Examples
Input
FF
Result
255
Input
0x7FFFFFFF
Result
2147483647
The largest signed 32-bit integer (INT_MAX).
Input
FF9C (Signed on)
Result
-100
Input
1A3F
Result
6719
Common mistakes
- Confusing hex and decimal digits. 10 in hex is sixteen, not ten. When a value has no letters, check whether it is really hexadecimal before converting.
- Byte order in memory dumps. Little-endian machines store the lowest byte first, so the bytes 9C FF in a dump are the value FF9C. Reverse the bytes before converting.
Works well with the Hex to Decimal Converter
- Decimal to Hex Converter: go the other way.
- Hex to Binary Converter: see the individual bits of a hex value.
- Color Converter: turn hex colours such as #1E90FF into RGB.
Frequently asked questions
How do you convert hex to decimal?
Multiply each digit by 16 raised to its position, counting from 0 on the right, and add the results. Letters count as A = 10 up to F = 15. For 1A3F: 1×4096 + 10×256 + 3×16 + 15 = 6719.
What is 0xFF in decimal?
255: F × 16 + F = 15 × 16 + 15. It is the largest value of one byte, which is why it appears in colours (#FFFFFF) and masks.
How do I read a negative hex number?
Turn on signed mode. The width is 4 bits per hex digit, so FF9C is read as 16 bits: its top bit is set, so its value is 65,436 − 65,536 = −100. Type all digits, including leading zeros, for the right width.
Can I convert hex fractions?
Yes. Digits after the point are worth 1/16, 1/256 and so on, so 0.8 in hex is 0.5. The decimal result is always exact.
Related tools
JSON to CSV
Convert JSON arrays to CSV online with automatic column detection, nested object flattening and custom delimiters. Open the result in Excel or Sheets.
CSV to JSON
Convert CSV to a JSON array online with header detection, type inference and delimiter auto-detection. Turn spreadsheet exports into data for APIs and code.
JSON to XML
Convert JSON to well-formed XML online with a configurable root element and attribute support. Validate the input and download the XML file.
XML to JSON
Convert XML to JSON online, keeping attributes and turning repeated elements into arrays. Malformed XML is reported with its location.
JSON to YAML
Convert JSON to clean, human-readable YAML online. Turn API responses and package files into config for Kubernetes, Docker Compose or CI pipelines.
YAML to JSON
Convert YAML documents to formatted JSON online with syntax validation. Errors are reported by line, so broken indentation is quick to find and fix.