Hex Calculator
Perform hexadecimal arithmetic and bitwise operations. Convert between hexadecimal, decimal, binary, and octal number systems.
Results
About the Hex Calculator
The hexadecimal number system (base 16) is commonly used in computing and digital systems because it provides a more human-friendly representation of binary-coded values. This calculator allows you to perform arithmetic operations (addition, subtraction, multiplication, division) and bitwise operations (AND, OR, XOR, shift left, shift right) on hexadecimal values.
How to Use the Hex Calculator
- Enter two hexadecimal values in the input fields (0-9, A-F)
- Select the operation you want to perform
- Click "Calculate" to see the results in hexadecimal, decimal, binary, and octal formats
Hexadecimal Number System
Hexadecimal (or "hex") is a base-16 number system that uses sixteen distinct symbols: 0-9 to represent values zero to nine, and A-F to represent values ten to fifteen. Each hexadecimal digit represents four binary digits (bits), making it a convenient way to express binary numbers in a more compact form.
Bitwise Operations
Bitwise operations work directly on the binary representations of numbers:
- AND (&): Each bit of the result is 1 if both corresponding bits are 1, otherwise 0
- OR (|): Each bit of the result is 1 if either corresponding bit is 1, otherwise 0
- XOR (^): Each bit of the result is 1 if the corresponding bits are different, otherwise 0
- Shift Left (<<): Shifts all bits to the left, filling with 0s from the right
- Shift Right (>>): Shifts all bits to the right, filling with 0s from the left