Tested tool guide
Tested browser tools
Checked August 16, 2026
What XOR Cipher Tool does, with a checked example
This tool takes a plaintext (or hex/binary) input and a key, repeats the key to match the input length, and XORs each byte pair, showing the binary of each byte alongside the result as it goes. Because XOR is its own inverse, running the same key over the ciphertext output reproduces the original input. The most common surprise: the result is rarely printable text, since XOR-ing two ASCII bytes usually lands outside the printable range, so the tool shows it as hex or lets you view raw bytes rather than a garbled string.
Worked example
A concrete input and expected output from the current implementation.
Input
text: "AB" (typed as text, not hex; ASCII bytes 0x41 0x42), key: "A"
->
Expected output
hex: 00 03
The key "A" (0x41) repeats for each input byte: 'A' (0x41) XOR 'A' (0x41) = 0x00, and 'B' (0x42) XOR 'A' (0x41) = 0x03.