XOR Cipher — Free Online Tool

Encrypt and decrypt text with XOR bitwise operation. XOR Cipher is a free online tool from the ToolsRift Hash & Crypto Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading XOR Cipher

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

← View all Hash & Crypto Tools