Hex Calculator
Enter two hex numbers and choose an operation.
Operation
AND, OR and XOR compare the numbers digit by digit.
Digits 0–9 and A–F, with an optional 0x; a leading minus sign is allowed.
Digits 0–9 and A–F, with an optional 0x; a leading minus sign is allowed.
Try
Result
You entered
Decimal
Binary
Show the work
Hex addition with carries
Add the columns from the right. A column whose total reaches 16 writes the total less 16 and carries into the next column on the left, with 10 to 15 written as A to F. The small marks each carry.
Check in decimal
Converting both numbers to decimal, adding, and converting back should give the same result.
Result
So .