XOR Text Cipher & Decrypter

XOR Text Cipher & Decrypter

Local Processing

Perform bitwise XOR encryption and decryption on text using a repeating secret key with text-to-hex and hex-to-text modes.

How It Works & Processing Standards

Perform bitwise XOR encryption and decryption on text using a repeating secret key with text-to-hex and hex-to-text modes.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Maximum input length: 2,000,000 characters

XOR with the same key twice returns the original value. The text’s UTF-8 bytes are XORed with the repeating key; the result may not be printable, so it is shown as hex.

Repeating-key XOR is easy to break; do not use it to protect secrets. Use the AES-GCM tool for encryption.

What You Can Do

Text → hex
XOR text with the key and write the bytes as hex.
Hex → text
XOR hex with the same key to recover the text.

How to Use XOR Text Cipher & Decrypter

  1. 1
    Choose a directionText → hex or hex → text.
  2. 2
    Enter text and keyType the text (or hex) and the key.
  3. 3
    CopyCopy the result.

Examples

Text → hex (key k)
Input: Hi
Result: 2302
Hex → text (key k)
Input: 2302
Result: Hi

Common Use Cases

  • Solving XOR challenges in CTFs or security training
  • Reading settings a legacy app hid with XOR

Frequently Asked Questions (FAQ)

Why does H XOR k give 23?

H is 0x48 and k is 0x6b; 0x48 XOR 0x6b = 0x23. i (0x69) XOR k (0x6b) = 0x02, so the result is 2302.

Have feedback or ideas for this tool? Suggest & Inquire →