Hex to Decimal
Tool processing runs in your browser — your pastes/files are not uploaded to our servers for processing. Ads (if shown) load separately and do not receive your tool inputs.Advertising · Details
Quick answer
To convert hexadecimal to decimal, multiply each hex digit (A=10 … F=15) by powers of 16 and add them up — for example FF = 255. TryDevSnip's converter does it instantly and exactly, even for very large values, all in your browser.
Hex to decimal chart
| Hex | Decimal |
|---|---|
| 1 | 1 |
| 8 | 8 |
| A | 10 |
| F | 15 |
| 10 | 16 |
| 1F | 31 |
| 80 | 128 |
| FF | 255 |
| 100 | 256 |
| FFFF | 65535 |
Reverse or related: decimal to hex · binary to decimal · decimal to binary · all bases
Worked example: 0xFF
Every positional number system works the same way — each digit is multiplied by the base raised to its position, counting from zero on the right. For 0xFF in hexadecimal:
| Digit | Place | Weight | Contribution |
|---|---|---|---|
| F | 161 | 16 | 240 |
| F | 160 | 1 | 15 |
| Total (decimal) | 255 | ||
Written in decimal that is 255.
Quick reference
| Decimal | hexadecimal | decimal |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 4 | 4 | 4 |
| 8 | 8 | 8 |
| 10 | A | 10 |
| 16 | 10 | 16 |
| 32 | 20 | 32 |
| 64 | 40 | 64 |
| 100 | 64 | 100 |
| 128 | 80 | 128 |
| 255 | FF | 255 |
| 256 | 100 | 256 |
Things that trip people up
- Prefixes are notation, not value.
0b1010,0o12,0xAand10can all denote the same quantity. Strip the prefix before parsing, or tell the parser which base you meant. - Leading zeros can change the base. In several languages a leading
0historically meant octal, so010parsed as 8 rather than 10. Passing an explicit radix avoids the whole class of bug. - Hex letters are case-insensitive.
0xffand0xFFare the same number; only presentation differs. - Grouping is for humans. Binary is usually read in nibbles of four (
1111 1111) because each nibble maps to exactly one hex digit — which is why hex is the usual shorthand for binary data.
Frequently asked questions
How do I convert hex to decimal?
Read each hex digit as its value (A=10 … F=15) and multiply by powers of 16, right to left. For example FF = 15×16 + 15 = 255. Or paste it into the converter and read the decimal instantly.
What is FF in decimal?
FF (hexadecimal) is 255 in decimal — the largest value in a single byte (8 bits).
Does hex to decimal work for very large values?
Yes. The converter uses BigInt, so long hex strings (memory addresses, hashes) convert to exact decimals without rounding.
Is my input uploaded?
No. TryDevSnip converts locally in your browser. Nothing you type is uploaded to our servers for processing.