Hex to Decimal Converter
Convert hexadecimal (base-16) to decimal (base-10) and back, instantly. Perfect for programming, color codes, and memory addresses.
How it works
Hex uses 16 digits: 0-9 and A-F. Each position is a power of 16. For example:
0xFF = 15 × 16¹ + 15 × 16⁰ = 240 + 15 = 255
Quick reference (0x00 to 0xFF)
| Hex | Dec | Hex | Dec | Hex | Dec |
|---|---|---|---|---|---|
| 0x00 | 0 | 0x10 | 16 | 0xFF | 255 |
| 0x0A | 10 | 0x1F | 31 | 0x80 | 128 |
| 0x0F | 15 | 0x40 | 64 | 0xA0 | 160 |
| 0x0C | 12 | 0x7F | 127 | 0xE0 | 224 |
Common uses
- Colors: #FF0000 = red, #00FF00 = green, #0000FF = blue
- Memory: addresses like 0x7FFF are common in low-level programming
- Networking: MAC addresses and IPv6 use hex notation
FAQ
What is 0xFFFF in decimal? 65,535 (the maximum 16-bit unsigned value).
How do I convert 0x1A to decimal? 1 × 16¹ + 10 × 16⁰ = 16 + 10 = 26.