hex2dec.com

Hex Calculator

Perform arithmetic and bitwise operations on hexadecimal, decimal, and binary numbers. Supports addition, subtraction, multiplication, division, AND, OR, XOR, NOT, and bit shifts.

Input base:

Hex Calculation Examples

OperationExpressionHex ResultDecimal
AdditionFF + 10x100256
Subtraction100 − 1A0xE6230
MultiplicationA × B0x6E110
DivisionFF ÷ 100xF15
Bitwise ANDFF AND 0F0x0F15
Bitwise ORF0 OR 0F0xFF255
Bitwise XORAA XOR FF0x5585
Left Shift01 << 80x100256

Frequently Asked Questions

How do I add hexadecimal numbers?

Hex addition works like decimal addition, but you carry when the sum exceeds 15 (F). For example, FF + 1 = 100 in hex. Our calculator handles this automatically.

Can I multiply hex numbers?

Yes! Select the × operator, enter two hex values, and the calculator shows the product in hex, decimal, and binary.

What is hex AND/OR/XOR?

These are bitwise operations commonly used in programming. AND returns 1 where both bits are 1. OR returns 1 where either bit is 1. XOR returns 1 where bits differ. Example: 0xFF AND 0x0F = 0x0F.

What does bit shift (<< / >>) do?

Left shift (<<) multiplies by 2^n. Right shift (>>) divides by 2^n. Example: 0x01 << 4 = 0x10 (which is 16 in decimal).