XOR Encrypt & Decrypt
XOR data against a key of any length. Because XOR is symmetric, running it twice with the same key gives you back the original.
A single byte, or a repeating multi-byte key
Intended for your own single-player save files. Editing saves in multiplayer or online games breaks their terms of service and can get your account banned. Always keep a backup of the original file before you change anything.
XOR is symmetric, so running it twice with the same key returns the original. It is obfuscation rather than encryption — a single-byte key has only 256 possibilities, and even a long key falls to the recovery tool given enough data.
How to use
- 1Paste or drop the data you want to XOR.
- 2Enter the key as text, hex or Base64 — a single byte or a longer repeating key both work.
- 3Read the result. XOR is symmetric, so running it again with the same key restores the original.
Frequently Asked Questions
Why do so many games use XOR?
Because it is trivial to implement, costs almost nothing at runtime, and stops casual players from editing a save in Notepad. It is obfuscation, not security — nobody serious mistakes it for encryption.
How do I find the key?
Use the XOR Key Recovery tool. If you know the file should start with a particular string, the key falls straight out. For single-byte keys there are only 256 possibilities, so brute force is instant.
Why is my result still unreadable?
Either the key is wrong, or the data was compressed before being XORed. Try decompressing the result with the Gzip tool — the layering order is usually compress first, then XOR.
Does the key encoding matter?
Very much. The key ff in hex is one byte with value 255, while ff as text is two bytes, 0x66 0x66. Use the toggle to match how the key was actually specified.