XOR Cipher
Encrypt and decrypt text with a repeating-key XOR cipher.
XOR with a repeating key is a simple, reversible transform shown as hex. It is fine for obfuscation and learning, but not secure; use AES for real secrets.
Browser-side processing
This tool is designed to process your input on your device. Some operations download additional code when first used, so loading the page alone does not guarantee offline availability. Review the tool's disclosures and use your browser's Network tab to distinguish dependency downloads from requests containing input.
About the XOR Cipher
Encrypt text by XOR-ing each byte with a repeating key, shown as hex, and decrypt the hex back to text.
XOR is the building block of many ciphers and a common obfuscation trick in programming.
The same key both encrypts and decrypts.
Key features
- Encrypt to hex and decrypt back
- Repeating-key XOR
- UTF-8 aware
- Copy the result instantly
How to use
- 1Choose encrypt or decrypt.
- 2Enter your text (or hex) and a key.
- 3Copy the result.
Examples
Hi with key Khex bytesEach byte is XOR-ed with the repeating key.
the hex with key KHiThe same key reverses it.
Frequently asked questions
- Is XOR encryption secure?
- A repeating-key XOR is easy to break and is not secure. Use it for obfuscation or learning, and AES for real secrets.
- Why is the output hex?
- XOR can produce non-printable bytes, so the result is shown as hex to keep it readable and safe to copy.
- Is my data uploaded?
- No. Everything runs in your browser.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
