XOR Encryption Online on Android runs in the mobile browser, applying a repeating-key XOR transform to UTF-8 bytes and showing the resulting reversible bytes in both hexadecimal and Base64.
Open XOR Encryption Online in Chrome or another Android browser and choose Encrypt or Decrypt. The page processes the message, key and output in the browser without uploading them, so no separate Android app is required for this workflow.

What the Android browser actually processes
Repeating-key XOR combines each UTF-8 plaintext byte with the corresponding byte of a UTF-8 key. When the plaintext continues beyond the key, the key starts again from its first byte. Applying the same XOR operation with the same key reverses the byte transform, after which the recovered bytes must pass strict UTF-8 decoding.
Browser TextEncoder provides the UTF-8 bytes, while bitwise XOR defines the exclusive-OR operation applied to each pair of bytes.
In Encrypt mode, the tool presents the resulting bytes in lowercase hexadecimal and standard padded Base64. Switching between these outputs does not change the ciphertext; it only changes the representation used to carry those same bytes.
Encrypt and decrypt on Android
- Open the linked XOR tool in the browser on your Android phone and select Encrypt.
- Paste your plaintext into the plaintext field and enter the repeating key in the key field. Preserve capitalization, spaces and line breaks because the tool operates on the exact UTF-8 characters you supply.
- Run the local XOR transform. Encryption displays both lowercase hexadecimal and standard padded Base64, so copy one representation in full for your recipient.
- Send the copied ciphertext through your chosen channel and explicitly state whether it is Hex or Base64. Give the recipient the identical key text, including its case and spaces, through a separate reliable channel.
- On the recipient’s device, open the same tool, select Decrypt, choose the matching Hex or Base64 format, paste the ciphertext, and enter the identical key.
- Run the decryption and inspect the result. A wrong key commonly produces invalid UTF-8 and a visible error, but some incorrect byte sequences still form valid characters, so confirm meaningful plaintext independently.
This workflow is appropriate for a harmless puzzle, an educational demonstration, an interoperability check or a capture-the-flag exercise. It is not designed to protect confidential or tamper-sensitive information.
Choose hex or Base64 for transport
Both output formats represent the same XOR ciphertext. Choose the one required by the receiving system rather than combining pieces from the two displays.
| Representation | Encryption output | Strict decryption requirement | Practical choice |
|---|---|---|---|
| Hex | Lowercase hexadecimal with two digits per byte | Complete byte pairs containing only hexadecimal digits; whitespace is ignored | Byte-level inspection or a receiver configured to expect hexadecimal |
| Base64 | Standard alphabet with correct padding | Standard Base64 characters and required padding | Shorter transport through text fields and other text-based channels |
Decrypt mode parses the selected representation strictly and does not guess an intended format. Malformed Base64, incorrect padding, an incomplete hexadecimal pair or a non-hexadecimal character causes a parsing error rather than silent cleanup.
Whitespace inside encoded ciphertext is ignored, so line wrapping can be harmless. Nevertheless, confirm that the app or channel used to send the message did not trim or rewrite any other ciphertext characters.
Match the UTF-8 byte convention
The key field accepts text, not hexadecimal byte notation. If the intended key is the word key, enter those letters. If you enter 6B6579 instead, the tool uses those six visible characters as the text key rather than interpreting them as hexadecimal bytes. A command-line program configured to accept a hexadecimal key can therefore produce different ciphertext even when the visible entries appear similar.
- Unicode is byte-based: Plaintext and key are encoded as UTF-8 before XOR. Emoji and many non-Latin scripts occupy several bytes, so they consume several key-byte positions. The operation does not use JavaScript UTF-16 code units or user-perceived grapheme clusters.
- Key repetition follows bytes: A multi-byte character in the key occupies multiple positions. Once the final key byte is used, the transform returns to the first key byte.
- Whitespace has defined roles: Whitespace inside plaintext is significant. Whitespace inside encoded ciphertext is ignored, but the tool performs no other cleanup or format guessing.
- Inputs have fixed limits: Input and key data are each limited to 100,000 bytes to keep conversion, rendering and copying responsive. An empty input or empty key is rejected.
Diagnose a failed round trip
When the recovered result is missing or incorrect, check the representation, key and transport in that order.
- Representation mismatch: Select the exact format that was sent. Treating Base64 as Hex or selecting the wrong mode can either change the parsed bytes or produce a parsing error.
- Malformed ciphertext: Hex must contain complete byte pairs and only hexadecimal digits, although whitespace is allowed. Base64 must use the standard alphabet with correct padding.
- Key mismatch: Compare the key character by character, including capitalization and leading or trailing spaces. Also confirm that one side has not entered the hexadecimal spelling of a key while the other enters literal text.
- Transport changes: Confirm that the sending or receiving app did not trim or rewrite the encoded text. Whitespace is the only cleanup applied to encoded ciphertext.
- Valid-looking but incorrect text: Fatal UTF-8 validation catches many wrong-key results, but it cannot detect every incorrect byte sequence that happens to be valid text. Compare the meaningful plaintext through an independent channel.
Use XOR only where reversibility is enough
Repeating-key XOR is reversible obfuscation, not modern encryption. The page’s browser-side processing means the message, key and output are not uploaded, but local execution does not repair the cipher’s weaknesses.
- Repeated keys expose patterns, known plaintext can reveal key bytes, and short keys are especially weak.
- There is no checksum or authentication tag, so an attacker can alter the ciphertext without the tool detecting the change.
- The transform has no salt, nonce, password stretching or key-management system.
For a focused explanation of these failure modes, read the repeating-key XOR security reality check. Do not use this page for passwords, personal records, payment details, private keys or any information where confidentiality or integrity matters. Use a reviewed authenticated-encryption system for sensitive data.
For an Android exchange, the dependable routine is straightforward: use the browser workflow, exchange the exact key text, identify the selected representation and confirm the recovered meaning independently. Repeating-key XOR fits low-risk educational and puzzle tasks, but its familiar encryption label should not be mistaken for cryptographic protection.
Related reading: Is AES Encryption Online Safe? What the Browser Protects.