XOR Cipher: Encrypt and Decrypt Text (Hex)
Encrypt and decrypt a text with a XOR and a key (hex output), in your browser.
XOR is reversible with the same key. Educational — do not use for serious encryption (prefer AES).
🔒 100% client-side — no data sent
Encrypt or decrypt text with the XOR operation and a key of your choice, with readable hexadecimal output. The tool applies the same process both ways, the same key encrypts and decrypts. Everything runs 100% in your browser: neither your text nor your key is transmitted.
What is it for?
- ▸ Obfuscate a config string or token in a personal project
- ▸ Learn how XOR encryption works by testing it hands-on
- ▸ Solve a CTF or cryptography challenge based on XOR
- ▸ Verify an XOR implementation by comparing the hex output
FAQ
How do I decrypt XOR-encrypted text?
Paste the hexadecimal output and enter exactly the same key used for encryption. Because XOR is symmetric, reapplying the key restores the original text.
Is XOR encryption secure?
XOR with a short, reused key is not safe for sensitive data and is easily broken. It suits obfuscation, learning, or challenges, not protecting real secrets.
Why is the output in hexadecimal?
XOR can produce non-printable bytes; hexadecimal represents each byte in a readable, copyable form without loss. This ensures a reliable round-trip between encryption and decryption.