Loading…

How to use XOR Cipher

Enter your text and a key, and the XOR result is produced instantly. Run the output back through with the same key to decrypt it.

Frequently asked questions

How does an XOR cipher work?

Each byte of the text is XORed with a byte of the repeating key. Applying the same key again reverses the operation.

Is XOR encryption secure?

With a short reused key, no — it is easily broken. Only a truly random key as long as the message (a one-time pad) is secure.

Why is XOR reversible?

Because a XOR b XOR b equals a, so encrypting and decrypting use the exact same step with the same key.

More Hash & Crypto Tools

Number Base Converter
Convert numbers between binary, octal, decimal, hex
Text to Color Hash
Visualize text as a deterministic color hash
PBKDF2 Key Derivation
Derive a key from a password with PBKDF2-HMAC (SHA-256/384/512), salt and iterations
SHA-3 / Keccak Hash
Generate SHA3-256/384/512 and Keccak-256 digests (used by Ethereum)
Hash Identifier
Identify the likely hash type of a digest from its length and format
Hash Generator (All)
Generate MD5, SHA-1, SHA-256, SHA-512 hashes at once
MD5 Hash Generator
Generate MD5 checksums for text strings
SHA-1 Hash Generator
Generate SHA-1 hash digests from any text input
SHA-256 Hash Generator
Generate secure SHA-256 hash digests from text
SHA-512 Hash Generator
Generate SHA-512 cryptographic hash digests
SHA-384 Hash Generator
Generate SHA-384 hash digests from any text
HMAC Generator
Generate HMAC-SHA256 signatures with a secret key

← View all Hash & Crypto ToolsBrowse all 1,100+ tools →