EditSafely

XOR Hex Numbers

Quickly calculate bitwise XOR of a bunch of hex numbers. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

How to use XOR Hex Numbers

  1. 1. Paste the hex numbers. Enter two or more hexadecimal values separated by spaces, such as ff and 0f, that you want combined with a bitwise XOR.
  2. 2. Review how the operation works. Each bit of the result is 1 wherever the corresponding input bits differ, and 0 wherever they match, applied across every value you provided.
  3. 3. Copy the XOR result. Copy the resulting hex value into a checksum calculation, a simple XOR cipher, or a bitmask difference check in your code or notes.

When to use XOR Hex Numbers

XOR Hex Numbers computes the bitwise exclusive OR across two or more hex values. It is a common building block for checksums, simple encryption schemes and spotting exactly which bits differ between two values.

  • Verifying a simple XOR checksum. A protocol or file format defines a checksum as the XOR of a sequence of bytes, and you want to compute it manually to validate an implementation.
  • Decoding a basic XOR cipher. You are working through a puzzle or malware sample that uses a single-byte XOR key, and combining ciphertext bytes with a candidate key reveals the plaintext.
  • Spotting differing bits between two register values. You want to know exactly which bits changed between two hex values captured at different times, and XOR highlights only the positions that flipped.

Examples

XOR two hex numbers

Input

ff 0f

Output

f0

XOR a value with itself

Input

a a

Output

0

About the XOR Hex Numbers tool

XOR Hex Numbers runs as plain JavaScript in your browser tab, with no server behind it. Quickly calculate bitwise XOR of a bunch of hex numbers. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's Hex Tools section, 108 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

There is nothing to configure. Provide the input and the result appears on its own. 2 worked examples further down the page show exactly what the tool produces for real inputs.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Is XOR Hex Numbers free to use?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All Hex Tools