The Hex Calculator adds, subtracts, multiplies and divides hexadecimal numbers and converts between hexadecimal and decimal.
8AB + B78 = 1423
| Result | 1423 |
| In decimal | 2219 + 2936 = 5155 |
| Decimal value | 3501 |
| Hexadecimal value | AA |
Hexadecimal (hex) is a base-16 system using the digits 0–9 and the letters A–F for 10–15. Each hex digit stands for exactly four binary digits, which is why programmers use hex for memory addresses, colour codes (#FF6B6B), MAC addresses and byte values.
Multiply each digit by a power of 16: DAD = 13 × 256 + 10 × 16 + 13 = 3,501. To convert decimal to hex, divide by 16 repeatedly and read the remainders backwards: 170 = 10 × 16 + 10 = AA.
Add digit by digit, carrying 1 whenever a column reaches 16. Example: 8AB + B78 = 1423 (2,219 + 2,936 = 5,155). Subtraction borrows 16; multiplication and division follow the same rules as decimal with base 16.
Group binary digits in fours from the right and replace each group with a hex digit: 1010 1010 = AA. This makes long binary strings easy to read.
Are letters case-sensitive? No; a–f and A–F mean the same.
What does 0x mean? A common prefix showing a number is hex.
What is FF in decimal? 255.