You can encrypt text with a password on this page, turning a readable message into a block of characters that means nothing without that password. Type or paste your message, choose a strong password and press Run. The tool scrambles it using AES-256, and you can then copy the result into an email or a note. To read it again, switch to Decrypt, and paste it in with the same password. Everything is done in your browser, so your message and your password aren't sent to our server at any point. Use it to encrypt text you'd like to store or share privately.
How to encrypt text
- Choose Encrypt.
- Enter your message.
- Enter a long password of at least 8 characters.
- Press Run, and copy the result.
- Share the password separately from the message.
How to decrypt text
- Choose Decrypt.
- Paste all of the encrypted text.
- Enter the same password.
- Press Run to read the original message.
How it works
| Step | What happens |
|---|---|
| Key creation | PBKDF2 with SHA-256 turns your password into a 256-bit key, using 600,000 rounds and a random salt |
| Encryption | AES in GCM mode encrypts your text, using a random 96-bit initialization vector |
| Packaging | The salt, the vector and the encrypted data are combined and written as base64 text |
The encryption runs through the Web Crypto API that's built into modern browsers, and the salt and vector travel with the message. They don't have to be secret. As MDN explains, the vector only has to be unique, so it's fine to send it in the clear next to the encrypted message.
A worked example
Suppose that you want to send the message "Meet me at the north gate at noon" to a friend. You enter it, choose a long password that the two of you agreed on in person, and press Run. You get a long string of letters, numbers and symbols, which you can paste into an email. Your friend pastes it here, picks Decrypt, and enters the password to read the message. If you encrypt the same message again, the result will look entirely different, because a new random salt and vector are used each time.
What is AES?
The Advanced Encryption Standard, or AES, is a specification for the encryption of electronic data that was established by the US National Institute of Standards and Technology. It was adopted in 2001, and it's based on the Rijndael cipher, developed by the Belgian cryptographers Joan Daemen and Vincent Rijmen. AES has a block size of 128 bits and comes in three key lengths. This tool uses the longest key length, 256 bits.
Why GCM mode?
GCM doesn't only hide your message. It also detects tampering. If anyone changes even one character of the encrypted text, decryption fails instead of giving you a corrupted message. That's why the tool reports a wrong password or changed text together, as the two cases can't be told apart. It protects you from acting on a message that someone has altered along the way.
Why your password matters
Encryption is only as strong as the password behind it. PBKDF2 deliberately slows down each guess, and OWASP recommends a work factor of 600,000 or more when using PBKDF2 with HMAC-SHA-256. Even so, a short or common password can still be guessed. A long phrase made up of several unrelated words is both strong and easy to remember. Use a different password for each thing that you protect, and never reuse the one for your email or bank.
Sharing safely
- Use a separate channel. If you email the message, give the password by phone or in person.
- Copy everything. A missing character will stop decryption.
- Keep the password somewhere safe. A password manager is a good choice.
- Check your device. Encryption can't protect you from malware that reads what you type.
What this tool can't do
There's no back door and no reset option. If you lose your password, the text is gone for good. This page is suited to everyday privacy, such as notes and short messages, and it isn't a replacement for an audited system when legal or professional duties apply to the data. Text encrypted here can only be decrypted here, or by software that follows the same format.
Good uses for encrypted text
This kind of tool works well for small pieces of sensitive information, such as a note to yourself or details that you need to send over an ordinary email. Keep in mind that the size of the encrypted text gives a rough idea of how long the original message was.
Common mistakes
- Sending the password with the message. Anyone who sees both can read it.
- Choosing a weak password. Length matters most.
- Confusing encoding with encryption. Base64 alone doesn't hide anything.
Related security tools
Create a strong key with the password generator, verify a file with the SHA-256 hash generator, and learn about encoding with the Base64 encoder and decoder.
What next
Use this often? Add Encrypt Text to your Home screen.
Frequently asked questions
How do I encrypt text with a password?
Choose Encrypt, enter your message and a long password, press Run and copy the result.
Can I recover a lost password?
No. Nobody can recover the text without the password.
Is my text uploaded?
No. The encryption runs entirely in your browser.
What encryption does this use?
AES-256 in GCM mode, with a key made from your password by PBKDF2.
Why does decryption fail?
The password may be wrong, or the encrypted text may be incomplete or changed.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.