Perform mathematical calculations with hexadecimal numbers. Enter hex values (with or without 0x prefix) and select an operation to calculate. The result will be displayed in both hexadecimal and decimal formats.
Invalid hexadecimal number
Invalid hexadecimal number
Result (Hexadecimal)
0x0
Decimal Equivalent
0
How to Use the Hex Calculator
Enter your first hexadecimal number in the first input field (with or without 0x prefix)
Select the mathematical operation you want to perform
Enter your second hexadecimal number in the second input field
Click "Calculate" to see the result in both hexadecimal and decimal formats
Valid hex digits are 0-9 and A-F (case insensitive)
Supported Operations
Addition: Add two hexadecimal numbers together
Subtraction: Subtract the second number from the first
Multiplication: Multiply two hexadecimal numbers
Division: Divide the first number by the second (integer division)
Modulo: Get the remainder after division
Bitwise AND: Perform bitwise AND operation
Bitwise OR: Perform bitwise OR operation
Bitwise XOR: Perform bitwise exclusive OR operation
About Hexadecimal Numbers
Hexadecimal (hex) is a base-16 number system commonly used in computing and programming. It uses sixteen distinct symbols: 0-9 for values zero to nine, and A-F (or a-f) for values ten to fifteen. Hexadecimal is particularly useful for representing binary data in a more compact and human-readable format.