Math Tools
Hex Calculator
Convert hexadecimal to decimal, decimal to hexadecimal, and perform hexadecimal addition and subtraction.
Hex Calculator
Convert hexadecimal to decimal, decimal to hexadecimal, and perform hex addition and subtraction.
Convert a hexadecimal number into its decimal value.
Result
10
Recommended Tech Tool
Working with programming, electronics, or computer science?
A programmer-friendly calculator or electronics reference tool can be useful when working with hexadecimal, binary, memory addresses, and digital systems.
This section may contain affiliate links.

What this calculator does
This calculator converts between hexadecimal and decimal and can also add or subtract hexadecimal numbers. It is useful when working with base-16 numbers in programming, computer science, digital electronics, color codes, and low-level data formats.
What is a hex calculator?
A hex calculator is a tool used to work with hexadecimal numbers, also called base-16 numbers. It helps you convert hex to decimal, convert decimal to hex, and solve hexadecimal arithmetic problems such as hex addition and hex subtraction.
This is useful in programming, computer science, electronics, low-level system work, memory addressing, debugging, and digital color codes. Instead of converting values by hand, you can enter the numbers and get accurate results instantly.
Hexadecimal vs decimal
Decimal is base 10, which uses the digits 0 through 9. Hexadecimal is base 16, which uses 16 symbols: 0 to 9 and A to F. In hexadecimal, A represents 10, B represents 11, C represents 12, D represents 13, E represents 14, and F represents 15.
Hexadecimal is widely used because it is more compact than binary and easier for humans to read in technical contexts. For example, the decimal value 255 is written as FF in hexadecimal.
Hex to decimal and decimal to hex examples
These examples show common hexadecimal conversions and arithmetic results for the selected calculation type.
| Example | Result |
|---|---|
| A | 10 |
| 1F | 31 |
| FF | 255 |
Hex reference table for 0 to F
This quick hexadecimal table shows the decimal and binary value for each single hex digit. It is one of the most useful references when learning hex to decimal conversion.
| Hex digit | Decimal value | Binary value |
|---|---|---|
| 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 |
Common hex to decimal values
The table below includes common hexadecimal values that often appear in programming, memory work, byte values, and computer science examples.
| Hex | Decimal | Why it matters |
|---|---|---|
| A | 10 | First hex letter |
| 10 | 16 | Base rollover point |
| 1F | 31 | Common small hex value |
| 64 | 100 | Decimal 100 in hex |
| FF | 255 | Maximum one-byte value |
| 100 | 256 | One above FF |
| 3E8 | 1000 | Decimal 1000 in hex |
| FFFF | 65535 | Maximum unsigned 16-bit value |
How to convert hex to decimal
To convert hexadecimal to decimal, read each digit from right to left and multiply it by a power of 16 based on its position. Then add all those values together.
For example, hex 1F means 1 × 16 plus 15, which equals 31 in decimal. Hex FF means 15 × 16 plus 15, which equals 255. This is why the calculator is useful: it avoids manual position-value mistakes and returns the decimal result immediately.
How to convert decimal to hex
To convert decimal to hexadecimal, divide the decimal number by 16 repeatedly and keep the remainders. Then read those remainders from bottom to top.
For example, decimal 31 becomes 1F in hexadecimal, and decimal 255 becomes FF. A calculator makes this much faster, especially when working with larger values or when switching frequently between decimal and hex.
How hex addition and hex subtraction work
Hex addition works like decimal addition, but the base is 16 instead of 10. When a sum reaches 16 or more, you carry to the next place. Hex subtraction works similarly, borrowing when needed across base 16 digits.
For example, A + 3 = D, 1F + 1 = 20, FF + 1 = 100, and 20 - 1 = 1F. These calculations are important in low-level programming, digital systems, memory-related operations, and binary-friendly arithmetic.
Where hexadecimal is used
Hexadecimal is used in programming, machine-level computing, memory addresses, byte values, assembly language, debugging tools, and digital electronics. It is also common in web design through color values such as #FFFFFF, #000000, and #FF0000.
Because one hex digit maps neatly to four binary bits, hexadecimal is a practical and readable shorthand for binary data. That is why hex calculators are useful for both students and professionals working with technical systems.
Hex calculator FAQ and common hexadecimal conversion questions
How do you convert hex to decimal?
Multiply each hexadecimal digit by the correct power of 16 based on its position, then add the results together. For example, 1F equals 31 in decimal.
How do you convert decimal to hex?
Repeatedly divide the decimal number by 16 and record the remainders. Read the remainders from bottom to top to get the hexadecimal value.
What do A to F mean in hexadecimal?
In hexadecimal, A means 10, B means 11, C means 12, D means 13, E means 14, and F means 15.
Why is hexadecimal used instead of binary?
Hexadecimal is shorter and easier to read than long binary strings, while still mapping neatly to binary values.
Can this calculator do hex addition and subtraction?
Yes. This hex calculator can add and subtract hexadecimal values as well as convert between hex and decimal.
Related math calculators
Explore related tools for arithmetic, algebra, geometry, statistics, and sequences.