How to Convert Hexadecimal to Decimal
Enter an integer using 0 through 9 and A through F. The converter reads it in base 16 and writes the same value in base 10. Copy the output or reverse the direction to verify it. Whitespace grouping does not change the value.
How Hexadecimal and Decimal Represent Values
In hex, each place is a power of 16; in decimal, each place is a power of 10. Starting at the right, multiply each digit by its place value and add the results. Conversion changes notation, not magnitude.
Hexadecimal to Decimal Conversion Examples
For example, 2A in hex equals 42 in decimal, and both equal decimal 42. Work through the positional sum on a small example before converting a long identifier. Leading zeros affect display width but not the integer value.
Common Uses and Edge Cases
The tool accepts signed integers and uses exact integer arithmetic. It does not interpret a negative value as a fixed-width two’s-complement bit pattern. Fractions and scientific notation are not supported. Use the text translators for encoded bytes rather than treating a whole message as one number.
More examples and technical details
How to Convert Hexadecimal to Decimal
Converting hexadecimal to decimal by hand is straightforward once you know the routine. The converter above does it instantly, but working through the steps yourself is the fastest way to understand what is actually happening to the digits.
- Write down the hexadecimal number and number each digit by its position, starting with 0 at the rightmost digit.
- Multiply every digit by 16 raised to the power of its position.
- Add all the products together. The total is the decimal value.
Worked example: 7DE
Result: (7DE)¹⁶ = (2014)¹⁰
The Hexadecimal System
Hexadecimal is the base 16 system. It uses the digits 0 through 9 and then the letters A through F to stand for the values 10 through 15. Its key property is that one hex digit represents exactly four binary digits, a nibble, so a single byte is always two hex characters. That compactness is why hex shows up everywhere in computing: HTML colour codes such as FFFFFF for white and 000000 for black, memory addresses, MAC addresses, hash digests, and byte level debugging output.
Hexadecimal uses the digits 0 through 9 and A through F.
The Decimal System
Decimal is the base 10 system that almost every human culture settled on, most likely because we have ten fingers. It uses the digits 0 through 9, and each position is worth ten times the position to its right. The number 2345.67 means 2 thousands, 3 hundreds, 4 tens, 5 ones, 6 tenths, and 7 hundredths. It is the default for everything people read, which is why converting to and from decimal is the most common base conversion a programmer performs.
Decimal uses the digits 0 through 9.
Hexadecimal to Decimal Conversion Examples
Hexadecimal to Decimal Conversion Chart
A full reference table for the values 1 to 256. Use it to check a conversion quickly or to look up a common value without typing anything.
| Hexadecimal | Decimal |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| A | 10 |
| B | 11 |
| C | 12 |
| D | 13 |
| E | 14 |
| F | 15 |
| 10 | 16 |
| 11 | 17 |
| 12 | 18 |
| 13 | 19 |
| 14 | 20 |
| 15 | 21 |
| 16 | 22 |
| 17 | 23 |
| 18 | 24 |
| 19 | 25 |
| 1A | 26 |
| 1B | 27 |
| 1C | 28 |
| 1D | 29 |
| 1E | 30 |
| 1F | 31 |
| 20 | 32 |
| 21 | 33 |
| 22 | 34 |
| 23 | 35 |
| 24 | 36 |
| 25 | 37 |
| 26 | 38 |
| 27 | 39 |
| 28 | 40 |
| 29 | 41 |
| 2A | 42 |
| 2B | 43 |
| 2C | 44 |
| 2D | 45 |
| 2E | 46 |
| 2F | 47 |
| 30 | 48 |
| 31 | 49 |
| 32 | 50 |
| 33 | 51 |
| 34 | 52 |
| 35 | 53 |
| 36 | 54 |
| 37 | 55 |
| 38 | 56 |
| 39 | 57 |
| 3A | 58 |
| 3B | 59 |
| 3C | 60 |
| 3D | 61 |
| 3E | 62 |
| 3F | 63 |
| 40 | 64 |
| Hexadecimal | Decimal |
|---|---|
| 41 | 65 |
| 42 | 66 |
| 43 | 67 |
| 44 | 68 |
| 45 | 69 |
| 46 | 70 |
| 47 | 71 |
| 48 | 72 |
| 49 | 73 |
| 4A | 74 |
| 4B | 75 |
| 4C | 76 |
| 4D | 77 |
| 4E | 78 |
| 4F | 79 |
| 50 | 80 |
| 51 | 81 |
| 52 | 82 |
| 53 | 83 |
| 54 | 84 |
| 55 | 85 |
| 56 | 86 |
| 57 | 87 |
| 58 | 88 |
| 59 | 89 |
| 5A | 90 |
| 5B | 91 |
| 5C | 92 |
| 5D | 93 |
| 5E | 94 |
| 5F | 95 |
| 60 | 96 |
| 61 | 97 |
| 62 | 98 |
| 63 | 99 |
| 64 | 100 |
| 65 | 101 |
| 66 | 102 |
| 67 | 103 |
| 68 | 104 |
| 69 | 105 |
| 6A | 106 |
| 6B | 107 |
| 6C | 108 |
| 6D | 109 |
| 6E | 110 |
| 6F | 111 |
| 70 | 112 |
| 71 | 113 |
| 72 | 114 |
| 73 | 115 |
| 74 | 116 |
| 75 | 117 |
| 76 | 118 |
| 77 | 119 |
| 78 | 120 |
| 79 | 121 |
| 7A | 122 |
| 7B | 123 |
| 7C | 124 |
| 7D | 125 |
| 7E | 126 |
| 7F | 127 |
| 80 | 128 |
| Hexadecimal | Decimal |
|---|---|
| 81 | 129 |
| 82 | 130 |
| 83 | 131 |
| 84 | 132 |
| 85 | 133 |
| 86 | 134 |
| 87 | 135 |
| 88 | 136 |
| 89 | 137 |
| 8A | 138 |
| 8B | 139 |
| 8C | 140 |
| 8D | 141 |
| 8E | 142 |
| 8F | 143 |
| 90 | 144 |
| 91 | 145 |
| 92 | 146 |
| 93 | 147 |
| 94 | 148 |
| 95 | 149 |
| 96 | 150 |
| 97 | 151 |
| 98 | 152 |
| 99 | 153 |
| 9A | 154 |
| 9B | 155 |
| 9C | 156 |
| 9D | 157 |
| 9E | 158 |
| 9F | 159 |
| A0 | 160 |
| A1 | 161 |
| A2 | 162 |
| A3 | 163 |
| A4 | 164 |
| A5 | 165 |
| A6 | 166 |
| A7 | 167 |
| A8 | 168 |
| A9 | 169 |
| AA | 170 |
| AB | 171 |
| AC | 172 |
| AD | 173 |
| AE | 174 |
| AF | 175 |
| B0 | 176 |
| B1 | 177 |
| B2 | 178 |
| B3 | 179 |
| B4 | 180 |
| B5 | 181 |
| B6 | 182 |
| B7 | 183 |
| B8 | 184 |
| B9 | 185 |
| BA | 186 |
| BB | 187 |
| BC | 188 |
| BD | 189 |
| BE | 190 |
| BF | 191 |
| C0 | 192 |
| Hexadecimal | Decimal |
|---|---|
| C1 | 193 |
| C2 | 194 |
| C3 | 195 |
| C4 | 196 |
| C5 | 197 |
| C6 | 198 |
| C7 | 199 |
| C8 | 200 |
| C9 | 201 |
| CA | 202 |
| CB | 203 |
| CC | 204 |
| CD | 205 |
| CE | 206 |
| CF | 207 |
| D0 | 208 |
| D1 | 209 |
| D2 | 210 |
| D3 | 211 |
| D4 | 212 |
| D5 | 213 |
| D6 | 214 |
| D7 | 215 |
| D8 | 216 |
| D9 | 217 |
| DA | 218 |
| DB | 219 |
| DC | 220 |
| DD | 221 |
| DE | 222 |
| DF | 223 |
| E0 | 224 |
| E1 | 225 |
| E2 | 226 |
| E3 | 227 |
| E4 | 228 |
| E5 | 229 |
| E6 | 230 |
| E7 | 231 |
| E8 | 232 |
| E9 | 233 |
| EA | 234 |
| EB | 235 |
| EC | 236 |
| ED | 237 |
| EE | 238 |
| EF | 239 |
| F0 | 240 |
| F1 | 241 |
| F2 | 242 |
| F3 | 243 |
| F4 | 244 |
| F5 | 245 |
| F6 | 246 |
| F7 | 247 |
| F8 | 248 |
| F9 | 249 |
| FA | 250 |
| FB | 251 |
| FC | 252 |
| FD | 253 |
| FE | 254 |
| FF | 255 |
| 100 | 256 |
Need a different pair of bases? Browse every number converter tool including binary, octal, decimal, and hexadecimal in both directions.
Frequently asked questions
How do I convert hexadecimal to decimal?
Read the input as base 16 and express its value in base 10; enter it here for an automatic result.
Can this converter handle negative or large values?
Yes. Signed and large integers use exact BigInt arithmetic, subject to practical browser resource limits. Fractions are not supported.
How can I verify the decimal result?
Convert decimal back to hex and compare the numeric value; leading zeros may be normalized.
Is the conversion processed in my browser?
Yes. No number is sent to a conversion server.