Encryption & Ciphers100% Client-Side

Apply Repeating-Key XOR to Text

Paste text and enter a hexadecimal key to apply a repeating XOR transformation to its UTF-8 bytes. Each byte is combined with the matching key byte, and the tool returns the result as hexadecimal pairs. After reaching the end of the key, the operation starts again from its first byte. This page is useful for byte-level exercises and for reproducing a known sample from a compatible fixture.

Legacy cipher for compatibility and learning only. It does not authenticate messages. Use AES-GCM for confidential data.

Configuration Options

Enter a repeating key of 1–64 bytes. Enter two hexadecimal digits per byte. Use Load Sample to try a public example.

Input
0 chars•0 lines
Output

Reverse tool

Repeating-Key XOR Text Decoder

Decode hexadecimal XOR output using the same repeating key and read the recovered UTF-8 text. Inspect public fixtures and compatible byte examples.

Open Repeating-Key XOR Text Decoder
Example input
032e272724
Example output
Hello

How to Use the Repeating-Key XOR Text Encoder Online

  1. 1Enter a hexadecimal key between 1 and 64 bytes.
  2. 2Paste the text to transform, including any spacing that should be part of the example.
  3. 3Copy the resulting hex and keep the example key available for decoding.
  4. 4Use XOR Decode with the same key to verify the original text.

Input & Output Examples

Public example key 4b. The one-byte key repeats across the five UTF-8 bytes.

Input Sample
Hello
Expected Output
032e272724

Public example key 0102. The single letter occupies two UTF-8 bytes, and each key byte is used once.

Input Sample
é
Expected Output
c2ab

Practical Developer Workflows

  • Demonstrate how a key repeats when the message contains more bytes than the key.
  • Compare a one-letter plaintext example with a multibyte UTF-8 example.
  • Build a small reversible fixture for a lesson about byte operations.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The tool converts each transformed byte to a pair of hexadecimal digits. A leading zero is included for small values, so copying the entire result preserves the byte boundaries required by the decoder.

Explore Other Tools

12 suggested tools

View all tools