XOR Cipher Decoder
XOR data against a key, or brute-force every single-byte XOR key at once.
Output appears here as you type — decoded on your device.
Input is processed on your device. Nothing you paste is sent anywhere.
What is the XOR Cipher Decoder?
An XOR decoder applies the exclusive-or operation between your data and a repeating key, which reverses XOR encryption because XORing the same value twice returns the original bytes.
XOR is the most common obfuscation in malware, packers and CTF challenges, for one reason: it is symmetric. Encoding and decoding are the same operation, so a single line of code hides strings well enough to defeat a naive `strings` scan while costing nothing.
It is also weak in exactly predictable ways. A single-byte key has 256 possibilities, so brute force is instant — and the giveaway is often visible before you start, because long runs of null bytes XORed with a repeating key print the key itself in the ciphertext. Repeating multi-byte keys fall to the same approach applied per position once the key length is known.
This tool takes hex or text input and either applies a key you supply or, when no key is given, runs the full single-byte search so you can pick the readable result.
XOR Cipher Decoder at a glance
- Operation
- Bitwise XOR — self-inverse (A ⊕ B ⊕ B = A)
- Single-byte keys
- 256 possibilities — brute-forced instantly
- Common tell
- Null-byte runs reveal the repeating key
- Only secure as
- A one-time pad: key as long as the data, never reused
How to use the XOR Cipher Decoder
- 1Paste your data and choose whether it is hex bytes or text.
- 2Enter a key (as text or 0x-prefixed hex), or leave it blank to brute-force all 256 single-byte keys.
- 3Scan the candidates for readable output and copy the result.
When you would reach for it
- Recovering obfuscated strings from a malware sample during analysis.
- Cracking the XOR layer of a CTF challenge.
- Verifying an XOR-based checksum or a simple embedded obfuscation scheme.
XOR Cipher Decoder — frequently asked questions
Last reviewed · questions or corrections: contact@decoder.tools