Use this free AES text encryption and decryption tool to protect a message with a password. Type or paste your text, enter a password, and the tool returns an encrypted string you can store or share. To read it again, switch to Decrypt, paste the string, and enter the same password. It uses AES-256-GCM, and everything runs in your browser, so nothing is uploaded or stored.
Encryption is only as strong as the password. A long, random password or passphrase protects your text. A short or common one does not, no matter how strong the cipher is.
How to use the text encryption tool
- Encrypt: choose Encrypt, enter your text and a password, then press Encrypt text. The result is a Base64 string.
- Decrypt: choose Decrypt, paste the full encrypted string, enter the same password, then press Decrypt text.
- Show password: reveal the password to check for typing mistakes before you encrypt.
- Copy: copy the result, or copy a details report that never includes your text or password.
How the encryption works
- Cipher: AES-256 in GCM mode, which encrypts the text and also detects any change to it.
- Key from password: your password is stretched into a 256-bit key with PBKDF2 using SHA-256 and 600,000 iterations, which slows down password guessing.
- Random salt and IV: a new random 16-byte salt and 12-byte IV are generated every time, so the same text and password give a different result each time.
- Output format: salt, IV, and ciphertext are joined and encoded as Base64. The salt and IV are not secret, so they are stored with the result.
- Wrong password or edited text: GCM authentication fails, and the tool shows an error instead of garbled output.
What this tool does and does not do
This tool encrypts and decrypts short text with a password. It does not store your text, send it anywhere, recover lost passwords, or encrypt files. It does not hide that a message exists, and it cannot protect a weak password. Anyone with the encrypted string can try to guess the password offline, so use a long random passphrase, such as one from the Passphrase Generator. For files or long-term secrets, use a dedicated tool or password manager.
AES settings used
| Setting | Value | Why it matters |
|---|---|---|
| Algorithm | AES-256-GCM | A widely trusted cipher that also checks the data has not been changed. |
| Key derivation | PBKDF2-SHA-256, 600,000 iterations | Makes each password guess slow, which helps against brute force attacks. |
| Salt | 16 random bytes | Stops attackers from reusing precomputed tables across messages. |
| IV (nonce) | 12 random bytes | Ensures the same key is never used with the same IV twice. |
| Output | Base64 text | Safe to paste into emails, chats, notes, and documents. |
Keep the encrypted string and the password in different places. If both are stored together, the encryption gives no protection.
Worked examples
Sharing a Wi-Fi password
Encrypt the Wi-Fi password with a passphrase, send the encrypted string by email or chat, and give the passphrase to the person through a different channel, such as a phone call.
Storing a private note
Encrypt a note, paste the result into any notes app, and decrypt it only when you need it. The note stays unreadable to anyone who finds the text without the password.
Decrypting a message you received
Choose Decrypt, paste the entire string without extra spaces or missing characters, and enter the password. This tool decrypts only text it encrypted, or text in the same format: salt, IV, and ciphertext in Base64.
Common encryption mistakes
- Using a weak password. Short or common passwords can be guessed offline. Use a long random passphrase.
- Sending the password with the message. Share them through separate channels.
- Losing the password. There is no recovery. Save it in a password manager.
- Copying only part of the result. Decryption needs the complete string, including the start.
- Expecting compatibility everywhere. Other tools use different formats, so their output may not decrypt here.
Frequently asked questions
Is this AES encryption tool free?
Yes. There is no sign-up and no limit on how much text you encrypt or decrypt.
Is my text or password sent or stored?
No. Encryption and decryption run in your browser, and nothing is sent to a server or saved. Your input disappears when you close or refresh the page.
Is AES-256 secure?
AES-256 is a standard used by governments and businesses and has no practical attacks against it. In practice, the weak point is almost always the password, so choose a long random one.
Why does the result change every time?
A new random salt and IV are created for every encryption. This is intentional and does not affect decryption, because both are stored in the result.
Why does decryption fail?
The password is wrong, the text was changed or cut off, or it was not created in this tool's format. Check the password for typos and paste the complete string.
Can I recover a forgotten password?
No. The password is not stored anywhere and cannot be reset or bypassed. Without it, the text cannot be decrypted.