Hex Calculator

Perform arithmetic and bitwise operations on hexadecimal numbers. Instant results in hex, decimal, octal, and binary.
Client-Side Only Instant Results

Quick Base Converter

Enter a value in any field — the others update automatically.

Frequently Asked Questions

How do I add hexadecimal numbers?
Enter two hex values and select "Add". The tool computes the sum and shows results in hex, decimal, octal, and binary. For example, FF + 01 = 100 (hex) = 256 (decimal). Works with values up to 64-bit.
What operations does the hex calculator support?
Addition, subtraction, multiplication, division, modulo, AND, OR, XOR, NOT, and bit shifts (left/right). All operations work on unsigned integers. Results are shown in hexadecimal, decimal, octal, and binary simultaneously.
Can I use the 0x prefix in inputs?
Yes. Enter hex values with or without the 0x prefix. "FF", "0xFF", and "0xff" are all valid and treated the same. The calculator auto-strips prefixes before computing.
What is the maximum value I can calculate?
The calculator supports values up to 2^53 - 1 (JavaScript safe integer limit), which is 0x1FFFFFFFFFFFFF or 9,007,199,254,740,991 in decimal. For most practical hex calculations, this is more than sufficient.
How do I convert between hex, decimal, and binary?
Simply enter a value in any field (hex, decimal, or binary) and the other representations update automatically. For example, entering "255" in the decimal field shows "FF" in hex and "11111111" in binary.