Code · Made a little simpler

XOR Cipher Tool

Apply XOR to local UTF-8, hexadecimal or Base64 data. Inspect the first 16 byte calculations, reverse with the same key and download the result.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

XOR Cipher Tool: how to use it

  1. Choose the format for your supplied data and key. Enter both values or select Load example.
  2. Select Apply XOR and read the hexadecimal and binary values in the byte table.
  3. Choose an output format, copy the representation or download the raw bytes. Use the same key for a second pass.

Limits and notes

Accepts up to 256 KiB each of decoded input and key. An output must be valid UTF-8 to display as text. Use hexadecimal, Base64 or the raw download for arbitrary bytes. Processing takes place in your browser.

How your privacy works →

XOR Cipher Tool: common questions

How does the key repeat?

Each input byte is paired with the next key byte. For a two-byte key, positions 1, 3 and 5 use key byte 1, and positions 2, 4 and 6 use key byte 2.

Why does the raw download work when UTF-8 display fails?

A byte sequence can contain values UTF-8 cannot interpret as text. Hexadecimal and Base64 represent every byte, and the binary download writes those bytes directly.

What is a useful example for the byte table?

With UTF-8 input OK! and hexadecimal key 1F 03, the result is 50483E. The third row uses key byte 1 again.

Guides