Text Encrypt / Decrypt
Encrypt and decrypt text with a key, entirely in your browser.
What is Text Encrypt / Decrypt
Text encryption converts readable text into an unreadable form using a key. This tool uses a lightweight reversible XOR + Base64 scheme, so the same key restores the original text.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
What this actually computes, stated plainly
The text is converted to UTF-8 bytes and XORed with the key bytes, repeating the key as needed; the result is Base64-encoded. Decryption reverses it. It is a stream cipher in shape, but with the key used directly and reused, so it is obfuscation rather than encryption.
That distinction matters because XOR with a repeated key is breakable. If any part of the plaintext is known or guessable — a header, a common word, a fixed prefix — the corresponding key bytes fall out immediately, and from a short key the rest of the message follows. Reusing the same key on two messages makes it worse.
When it is the right tool anyway
Hiding a value from a casual reader: a spoiler in a shared document, a puzzle answer, a joke in a chat, a field that should not be readable at a glance. For those, a short shared key and a reversible transform is exactly what is wanted, and a real encryption library would be overkill.
It is the wrong tool for passwords, API keys, personal data, or anything that would be costly if read. Those need AES-GCM through Web Crypto, with a key derived from a passphrase by PBKDF2 or Argon2 and a random IV per message. The difference is that AES-GCM is authenticated: tampering is detected rather than silently producing garbage.
Why a wrong key sometimes "works"
Decryption XORs back and then decodes as strict UTF-8. A wrong key usually produces invalid sequences and this page reports a failure — but about one guess in several dozen can produce bytes that happen to be valid UTF-8, yielding mojibake instead of an error. If the output looks like text but is nonsense, the key was wrong, not the message.
The ciphertext is Base64, so any transport that mangles Base64 — a URL query string treating + as a space, a chat app wrapping long lines — will corrupt it before decryption is even attempted. That failure is indistinguishable from a wrong key, so check the ciphertext length against the original before assuming the key is at fault.
How to use
- 1.Enter text and a key
- 2.Choose encrypt or decrypt
- 3.Copy the result
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Nothing is stored, which also means a closed tab cannot be recovered | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
How strong is it?
It is a lightweight XOR + Base64 obfuscation, not suitable for long-term storage of sensitive data.
What if I lose the key?
The text cannot be recovered. Keep your key somewhere safe.
Is data uploaded?
No. Both the key and the text stay in your browser.
What this kind of conversion cannot keep
Text tools never leave the page: the string you paste is transformed in memory and written back to the result box. There is no request, no log and no retention, which also means there is no way to recover a value you closed the tab on.
More in Text
On this page
- What is Text Encrypt / Decrypt
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →