126+ free tools that run in your browser — no uploads, no sign-up

XOR Encrypt & Decrypt

Encrypt and decrypt text with a repeating-key XOR cipher.

XOR is one of the simplest ciphers: each byte of the message is combined with a byte of the key, and applying the same key again restores the original.

About XOR Encrypt & Decrypt

Apply a repeating-key XOR cipher to text and get hex or Base64 output, then run it back through the same key to decrypt. XOR is a simple, symmetric obfuscation technique common in CTF challenges and malware analysis education, but it is not secure encryption on its own.

XOR is one of the simplest ciphers: each byte of the message is combined with a byte of the key, and applying the same key again restores the original. It's a staple of programming exercises and CTF puzzles, and it appears inside many more advanced algorithms. This tool applies a repeating-key XOR to text and outputs hex or Base64.

How to use XOR Encrypt & Decrypt

  1. Choose Encrypt or Decrypt.
  2. Enter a key and select hex or Base64 output.
  3. Paste your text (or the encoded ciphertext when decrypting).
  4. Copy the result.

Key features

  • Repeating-key XOR on UTF-8 text.
  • Hex and Base64 formats.
  • Symmetric — the same key encrypts and decrypts.
  • Runs locally in the browser.

Common use cases

  • Solving CTF and cryptography puzzle challenges.
  • Demonstrating symmetric encryption concepts in teaching.
  • Light obfuscation of a string in a test fixture.

Frequently asked questions

Related tools

More Security tools