How do I encrypt text with a password?
A text encryption tool scrambles a message with a passphrase so that only someone with the passphrase can read it. This text encryption tool uses AES-256-GCM and PBKDF2, and your text and passphrase never leave your browser.
Encrypted output is safe to paste into email, chat or a note, because it is unreadable without the passphrase. The tool derives a key from your passphrase with PBKDF2-SHA-256 and 600,000 iterations, then encrypts with AES-256-GCM, which also detects tampering. Each message gets a fresh random salt and nonce.
To read it, paste the encrypted text and the same passphrase. A wrong passphrase or any change to the message makes decryption fail instead of returning garbage. All of this uses the browser WebCrypto API and nothing is uploaded.
Security rests on the passphrase: use a long one and share it by a different channel than the message. The tool hides the contents, not the fact that you sent something, and it cannot protect a device that is already compromised.
Page updated .
How to use the Text Encryption
- Type or paste the text and enter a passphrase.
- Click encrypt and copy the output.
- To read it later, paste the output, enter the same passphrase and decrypt.
Examples
Text: meet at noon; passphrase: five random words
A long base64-style string different on every run
The same string and a typo
Fails with an error; no partial output
Tips
- Use a passphrase of five or more random words, and never reuse your account passwords.
- Send the passphrase by a different channel, for example by phone.
- Keep the encrypted text exactly as produced; adding or removing characters breaks it.
Specs & limits
- Cipher
- AES-256-GCM
- Key derivation
- PBKDF2-SHA-256, 600,000 iterations
- Salt and nonce
- Random per message
- Integrity
- Authenticated: tampering is detected
- Processing
- WebCrypto in your browser
Troubleshooting
›Decryption error
Cause: Wrong passphrase or modified text.
Fix: Check the passphrase and paste the exact output.
›Output looks cut off
Cause: The message was truncated by an app.
Fix: Resend as a file or code block.
›Slow on a weak device
Cause: The key derivation is intentionally slow.
Fix: Wait a moment.
Frequently asked questions
›What encryption does it use?
AES-256-GCM, with a key derived using PBKDF2-SHA-256 at 600,000 iterations.
›What happens if I forget the passphrase?
The text cannot be recovered. There is no reset.
›Is the passphrase or text uploaded?
No. Everything runs in your browser.
›Why does decryption fail?
The passphrase is wrong, or the encrypted text was changed or cut.
›Is this the same as end-to-end encrypted chat?
No. It encrypts one message with a shared passphrase. You must exchange the passphrase safely.
›Can it encrypt files?
No, this tool is for text.