Tested tool guide
Tested browser tools
Checked August 16, 2026
What XOR Cipher Tool does, with a checked example
This tool XORs input against a key you supply as text or hex, byte by byte, repeating a short key across a longer message the way a stream cipher does. You choose whether input and key are plain text or hex, and whether output comes back as hex or raw bytes. Its key-analysis mode works the other direction: given only ciphertext, it tries candidate single-byte keys and ranks the results by how closely the recovered text resembles readable content. The most common mistake is treating a matched key as proof the plaintext is correct - a wrong key can still produce readable-looking fragments by chance, especially on short ciphertexts.
Worked example
A concrete input and expected output from the current implementation.
Input
Plaintext: HELLO, Key (hex, single-byte): 2A, mode: encrypt, output as hex
->
Expected output
626f666665
Each ASCII byte of HELLO (48 45 4C 4C 4F) is XORed with the repeated key byte 2A, giving 62 6F 66 66 65; XORing that hex with the same key returns HELLO.