Online Tool Store Online Tool Store

Hex Calculator

Perform arithmetic and bitwise operations on hexadecimal values, with results shown in hex, decimal, and binary. Runs entirely in your browser.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

Result

0x0

How it works

  1. Enter two hexadecimal values.
  2. Choose an operation: add, subtract, multiply, divide, or a bitwise AND/OR/XOR.
  3. The result shows in hex, decimal, and binary.

The formula

Each hex value is converted to decimal, the operation is applied, then the result is converted back:

0x1A + 0x2F = 26 + 47 = 73 = 0x49

FAQ

Do I need to type "0x" before my hex values?

No — it's optional. "1A" and "0x1A" both work.

Can the result be negative?

Yes, for subtraction where the second value is larger — the result shows a leading minus sign.

What do AND, OR, and XOR do?

They perform bitwise operations on the two values' binary representations, useful for low-level programming and flag manipulation.

Is my data sent anywhere?

No — every calculation happens locally in your browser.

How we compare

Feature Online Tool Store OS calculator (programmer mode) Manual conversion
No mode switching required
Shows hex, decimal, and binary together
Bitwise operations included

Your OS calculator's programmer mode can do this too, but it's buried behind a mode switch. Hex Calculator is one page, always in the right mode.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.