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
- Choose Encrypt or Decrypt.
- Enter a key and select hex or Base64 output.
- Paste your text (or the encoded ciphertext when decrypting).
- 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
Password Generator
Generate strong, random passwords with custom rules.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text.
SHA-256 Hash Generator
Generate the SHA-256 hash of any text instantly.
Bcrypt Generator & Checker
Generate bcrypt hashes and verify text against an existing bcrypt hash.

