XOR Cipher
Encrypt or decrypt text with a repeating XOR key and read the result as hex, base64 or escaped text.
XOR cipher
Enter some text and a key, then convert.
Warning: XOR with a short key is not secure.
How to use the XOR Cipher
- Type the text you want to encrypt and choose a key.
- Pick hex, base64 or escaped text as the output format.
- Switch to the decrypt mode and paste the ciphertext to read it back.
Features
- Repeating-key XOR over UTF-8 bytes
- Hex, base64 and escaped text output
- Same key decrypts the ciphertext
- Clear warning about short keys
Advertisement
Frequently Asked Questions
Common questions about the free online xor cipher.
It combines every byte of your message with a byte of the key using exclusive OR. Applying
the same key again restores the original bytes exactly.
No. With a short repeating key the pattern repeats and can be broken by frequency analysis.
Treat it as obfuscation, not as real protection.
Only when the key is truly random, kept secret, and at least as long as the message, and even
then it is used once and never reused.
Hex is easy to read and debug, base64 is the most compact, and escaped text keeps normal
characters readable while escaping the rest.
Switch to the ciphertext to text mode, keep the same key and format, paste the ciphertext,
and the original text appears.
The key is typed as text and used as its UTF-8 bytes. A longer, more random key with
punctuation and digits makes the output harder to break.
No. Everything is computed in your browser, so your text and your key never leave your device
and are never stored.
Yes. The tool is completely free, works on any modern browser, and has no limits, accounts or
sign-ups.
Last updated: October 10, 2026