Hex to Decimal Converter
Need to convert hex to decimal fast? Enter a base-16 number using digits 0–9 and letters A–F to instantly translate hexadecimal to decimal. It's the easiest way to switch from base-16 to base-10.
Why Number Base Conversion Matters
This conversion bridges the format developers see (hex color codes, memory addresses, error codes) with the number system everyone actually thinks in — a hex value like #A3 or a hexadecimal error code needs to become a familiar decimal number to make practical sense of it, whether that's checking a CSS color's intensity or understanding an error code's actual numeric meaning. Web development relies on this constantly, since translating a hex color code's components into decimal RGB values is a routine part of matching a specific color across different tools and formats. It's one of the more frequently needed number base conversions specifically because hex output is so common in everyday technical tools, but decimal remains the format people reason about intuitively.
Quick Reference
Hex to Decimal Chart
Use this hexadecimal to decimal table as a quick reference for common values, including letters A-F and numbers like 0xFF.
| Hexadecimal | Calculation | Decimal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 9 | 9 | 9 |
| A | 10 | 10 |
| F | 15 | 15 |
| 10 | 1×16¹ + 0×16⁰ | 16 |
| 1A | 1×16¹ + 10×16⁰ | 26 |
| 1F | 1×16¹ + 15×16⁰ | 31 |
| 20 | 2×16¹ + 0×16⁰ | 32 |
| 2A | 2×16¹ + 10×16⁰ | 42 |
| 3F | 3×16¹ + 15×16⁰ | 63 |
| 7F | 7×16¹ + 15×16⁰ | 127 |
| 80 | 8×16¹ + 0×16⁰ | 128 |
| FF | 15×16¹ + 15×16⁰ | 255 |
| 100 | 1×16² | 256 |
Step-by-Step
How to Convert Hex to Decimal
Figuring out how to calculate hexadecimal to decimal by hand is easy once you understand the base-16 system.
The Method
Hexadecimal uses a base-16 system with digits 0–9 and letters A–F. Decimal (also called denary) is our standard base-10 system. To convert hex to denary manually, you multiply each hex digit by its corresponding power of 16.
Starting from the right side, the positions are 16⁰, 16¹, 16², and so on.
How to Turn HEX into DEC
Write the hex value
Start with the hexadecimal value you want to convert. For example, let's use 1A.
Assign powers of 16
Reading from right to left, assign the powers of 16. The "A" is at 16⁰ (which equals 1), and the "1" is at 16¹ (which equals 16).
Multiply and add
Multiply the values: (1 × 16) + (10 × 1). Add them together to get 26. So, 1A in hex equals 26 in decimal.
Hexadecimal vs Decimal
Converting Hex to Denary (Base 16 to Base 10)
Programmers constantly translate hexadecimal to decimal because base-16 is a compact way to write complex binary data. Whether you are dealing with memory addresses, MAC addresses, or web colors, you will frequently need a reliable hex 2 decimal converter.
In computer science education (especially in the UK), the base-10 system is often called "denary." Converting hexadecimal to denary is the exact same mathematical process as converting hex to decimal.
Using our hex to dec converter eliminates the manual math, instantly flipping letters like FFFF back into readable everyday numbers.
Worked Examples
Sample Hex to Decimal Conversions
Here is how to convert hexadecimal to decimal for some of the most common hex codes.
A in decimal
The letter A simply represents 10. So A₁₆ = 10₁₀.
0x10 to decimal
(1 × 16¹) + (0 × 16⁰) = 16 + 0. So 0x10 translates to 16.
1A in decimal
(1 × 16¹) + (10 × 16⁰) = 16 + 10. The result is 26.
0xFF to decimal
F is 15. So, (15 × 16¹) + (15 × 16⁰) = 240 + 15. This makes 0xFF equal to exactly 255 in decimal.
100 in decimal
(1 × 16²) = 256. A hex value of 100 equals 256 in base-10.
FFFF in decimal
(15 × 16³) + (15 × 16²) + (15 × 16¹) + (15 × 16⁰) = 61440 + 3840 + 240 + 15. FFFF translates to exactly 65,535 in decimal.
FAQ
Frequently Asked Questions
Everything you need to know about using a hex decimal converter.