How do you encrypt text with a password?
To encrypt text with a password, type the message, enter a password and click Encrypt: the result is a block of unreadable characters that only the same password can open. This tool uses AES-256-GCM, a strong standard, with a key derived from your password with PBKDF2 and a random salt, all through your browser's built-in Web Crypto. Your text and password are never sent to a server. Switch to Decrypt to read an encrypted message.
How to encrypt and decrypt text
- 1
Choose Encrypt or Decrypt.
- 2
Type or paste your text (or the encrypted message to decrypt).
- 3
Enter the password and click the action button.
- 4
Copy the result and share the encrypted text, and give the password to the recipient through a different channel.
Key features
AES-256-GCM
A modern authenticated encryption standard that detects wrong passwords and changed data.
Strong key derivation
PBKDF2 with SHA-256 and 310,000 iterations plus a random salt makes password guessing much slower.
Everything stays local
Encryption runs in your browser with the Web Crypto API, so your text and password never leave your device.
Works with any text
Messages in any language and emoji are supported, and the output is plain base64 text that can be sent anywhere.
Frequently asked questions
How secure is this text encryption?
It uses AES-256-GCM, which is considered strong. The real limit is your password, so use a long, unique one. A short or common password can be guessed.
Can I recover the text if I forget the password?
No. The password is not stored anywhere and there is no way to reset it, so the text can only be read with the same password.
How do I decrypt a message?
Choose Decrypt, paste the complete encrypted text, enter the password and click Decrypt text. A wrong password or a damaged message gives an error.
Why is the encrypted text different every time?
A new random salt and initialization vector are generated for each encryption. The same text and password will give different output, and both versions decrypt correctly.
Can I decrypt this text with another program?
The format is standard, a version byte, a 16-byte salt, a 12-byte IV and AES-GCM ciphertext in base64, but another program needs to know these details, so decrypt it here.
Does the tool upload my text or password?
No. The encryption is carried out by your browser and nothing is sent over the network.