Hex to Decimal Converter
Convert hexadecimal to decimal instantly with exact base-16 to base-10 conversion. Enter any valid hex integer to get its decimal value, powers-of-16 breakdown, digit counts, verified examples, and reference tables.
What Is a Hex to Decimal Converter?
A hex to decimal converter changes an integer from the hexadecimal number system (base 16) into the equivalent decimal number system (base 10).
Hexadecimal uses sixteen digit values. The symbols 0 through 9 keep their familiar values, while A, B, C, D, E, and F represent decimal values 10, 11, 12, 13, 14, and 15.
Every position in a hexadecimal number is weighted by a power of 16. Starting from the rightmost digit, the place values are 16⁰, 16¹, 16², 16³, and so on.
Hexadecimal — Base 16
Uses digits 0–9 and A–F with place values based on powers of sixteen.
Decimal — Base 10
Uses digits 0–9 and is the standard everyday number system.
How to Use the Hex to Decimal Converter
Type a value such as FF. Lowercase letters are accepted,
and you may also enter a common prefix such as 0xFF.
BinaryCon evaluates the base-16 value with exact integer arithmetic.
The result card displays the complete base-10 integer without scientific notation.
For shorter values, the calculator shows each hexadecimal digit multiplied by its positional power of 16.
Use the decimal value for programming, debugging, electronics, calculations, coursework, or another BinaryCon converter.
Hex to Decimal Formula
If a hexadecimal number contains digits
dₙ dₙ₋₁ ... d₁ d₀, its decimal value is calculated as:
Before using the formula, hexadecimal letters are interpreted as numerical values A=10, B=11, C=12, D=13, E=14, and F=15.
Hexadecimal Digit Values
| Hex Digit | Decimal Value | Binary |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| 2 | 2 | 0010 |
| 3 | 3 | 0011 |
| 4 | 4 | 0100 |
| 5 | 5 | 0101 |
| 6 | 6 | 0110 |
| 7 | 7 | 0111 |
| 8 | 8 | 1000 |
| 9 | 9 | 1001 |
| A | 10 | 1010 |
| B | 11 | 1011 |
| C | 12 | 1100 |
| D | 13 | 1101 |
| E | 14 | 1110 |
| F | 15 | 1111 |
Worked Example: Convert Hex FF to Decimal
Hexadecimal FF contains two F digits, each with value 15.
F × 16⁰ Replace F with 15: 15 × 16 + 15 × 1 Evaluate: 240 + 15 = 255 Therefore: FF₁₆ = 255₁₀
Example: Convert Hex 2D to Decimal
Example: Convert Hex 1A3 to Decimal
Hex to Decimal Conversion Table
| Hex | Decimal | Hex | Decimal |
|---|---|---|---|
0 | 0 | 8 | 8 |
1 | 1 | 9 | 9 |
2 | 2 | A | 10 |
3 | 3 | B | 11 |
4 | 4 | C | 12 |
5 | 5 | D | 13 |
6 | 6 | E | 14 |
7 | 7 | F | 15 |
10 | 16 | 1F | 31 |
20 | 32 | 2D | 45 |
40 | 64 | 7F | 127 |
80 | 128 | FF | 255 |
100 | 256 | 1FF | 511 |
FFF | 4095 | FFFF | 65535 |
Important Powers of 16
| Power | Decimal Value | Hex Benchmark |
|---|---|---|
| 16⁰ | 1 | 1 |
| 16¹ | 16 | 10 |
| 16² | 256 | 100 |
| 16³ | 4,096 | 1000 |
| 16⁴ | 65,536 | 10000 |
| 16⁵ | 1,048,576 | 100000 |
| 16⁶ | 16,777,216 | 1000000 |
| 16⁸ | 4,294,967,296 | 100000000 |
Why Hex 10 Equals Decimal 16
The characters 10 do not have the same numeric value in every
number system. Their meaning depends on the base.
Decimal 10 itself is written as hexadecimal A.
What Does the 0x Prefix Mean?
In many programming languages and technical tools, a prefix such as
0x identifies a number as hexadecimal.
The prefix is notation, not part of the numeric digits. BinaryCon accepts
the common 0x prefix and removes it before conversion.
Uppercase and Lowercase Hex Values
Hexadecimal letters are normally case-insensitive. That means
FF, ff, and Ff all represent
the same numeric value.
BinaryCon normalizes entered letters to uppercase for consistent display.
Why Hex Is Closely Related to Binary
Hexadecimal is popular in computing partly because one hex digit represents exactly four binary bits.
FF₁₆ = 11111111₂
Since 16 = 2⁴, long binary values can be compressed into hexadecimal without losing their exact bit structure.
Hexadecimal and Byte Values
Two hexadecimal digits can represent every possible 8-bit unsigned byte value. The range runs from:
FF₁₆ = 255₁₀
This is why pairs of hex digits appear frequently in byte dumps, network packets, RGB color channels, memory displays, and binary file formats.
Where Hex to Decimal Conversion Is Useful
Programming
Convert constants, masks, register values, flags, IDs, or hexadecimal literals into ordinary decimal integers.
Debugging
Memory addresses, byte values, debugger output, and hex dumps may need decimal interpretation for analysis.
Digital electronics
Hexadecimal register or bus values can be translated into decimal for measurement, documentation, and calculations.
Computer science education
Hex-to-decimal problems reinforce positional notation, powers of sixteen, binary relationships, and number-system fundamentals.
Common Hex to Decimal Conversion Mistakes
In hexadecimal, A through F have numeric values 10 through 15.
Hexadecimal place values are powers of 16, not powers of 10.
The rightmost digit always has weight 16⁰ = 1.
Hex FF is positional: 15×16 + 15 = 255, not a concatenation of decimal values.
Related BinaryCon Tools
Reverse this conversion or continue working with hexadecimal, binary, octal, ASCII, and decimal values.
Hex to Decimal Converter FAQs
How do you convert hexadecimal to decimal?
Multiply each hexadecimal digit by the corresponding power of 16 and add the results. Start with 16⁰ at the rightmost digit. Interpret A through F as decimal values 10 through 15.
What is hex A in decimal?
Hexadecimal A represents decimal 10.
What is hex F in decimal?
Hexadecimal F represents decimal 15, the largest value represented by a single hexadecimal digit.
What is hex 10 in decimal?
Hex 10 equals decimal 16 because it means
1×16¹ + 0×16⁰.
What is hex 2D in decimal?
Hexadecimal 2D equals decimal 45.
D is 13, so 2×16 + 13 = 45.
What is hex FF in decimal?
Hexadecimal FF equals decimal 255: 15×16 + 15 = 255.
What is hex 1A3 in decimal?
Hexadecimal 1A3 equals decimal 419: 1×256 + 10×16 + 3 = 419.
What does 0xFF mean?
The prefix 0x indicates hexadecimal notation in many
programming languages. 0xFF means hex FF, which equals
decimal 255.
Can hex letters be lowercase?
Yes. Hexadecimal is normally case-insensitive, so A–F and a–f represent the same digit values. BinaryCon accepts both.
Why does FF equal 255?
The left F occupies the 16¹ position and the right F occupies the 16⁰ position. Therefore FF = 15×16 + 15×1 = 255.
Can this converter handle very large hexadecimal integers?
Yes. It uses JavaScript BigInt instead of ordinary floating-point Number values, allowing large valid hexadecimal integers to be converted exactly without the normal safe-integer precision limitation.
Does a leading zero change a hexadecimal integer?
No. Leading zeros do not change an unsigned integer’s value. For example,
FF, 0FF, and 000FF all represent
decimal 255.
Is hexadecimal-to-decimal conversion exact?
Yes for integers. Every hexadecimal digit has an exact numeric value and every position has an exact power-of-16 weight, so no rounding is needed.
Does this tool support hexadecimal fractions?
This calculator is designed for whole-number hexadecimal integers. Fractional hexadecimal values use negative powers of 16 to the right of the radix point and require separate fractional processing.
Convert Hex to Decimal Instantly
Use BinaryCon for exact hexadecimal-to-decimal conversion, powers-of-16 breakdowns, large integer support, verified examples, reference tables, and free number-system tools without registration.