AES text encryption and decryption
Protect a message, a note or a set of credentials with a password before you send or store it. The text is encrypted in your browser with AES-256 in GCM mode, using a key derived from your password with PBKDF2-SHA-256 and 600,000 iterations, the level OWASP recommends. Every encryption uses a fresh random salt and IV, and GCM detects a wrong password or any change to the encrypted text, so you get an error instead of garbage. Share the password through a different channel from the encrypted text.
Mode
Use a long passphrase and share it separately from the encrypted text. It cannot be recovered.
How to use the AES Text Encryption
- 1
Choose Encrypt
Paste the text you want to protect.
- 2
Enter a strong password
Long passphrases are best; it cannot be recovered.
- 3
Copy the result
Send or store the encrypted text.
- 4
Decrypt
Switch to Decrypt, paste the encrypted text and enter the same password.
How the encryption works
The output is base64 and contains a version byte, the iteration count, the 16-byte salt, the 12-byte IV and the ciphertext with its 16-byte authentication tag. Only this tool’s format can be decrypted here.
- key = PBKDF2-HMAC-SHA-256(password, salt, 600,000) → 256 bits
- ciphertext = AES-256-GCM(key, IV, text)
When to use it
- Send a password or recovery code to a colleague safely.
- Store private notes in a cloud document.
- Share sensitive details by email or chat with the password sent separately.
Limits
- Security depends on the password: a short or common password can be guessed offline.
- Only text, not files; and only text encrypted by this tool can be decrypted.
Privacy
Encryption and decryption run in your browser with the Web Crypto API. Your text and password are never sent anywhere.
Frequently asked questions
Is AES-256-GCM secure?
Yes. It is the standard authenticated encryption used across the web. With a strong password, the encrypted text cannot practically be read without it.
What if I forget the password?
The text cannot be recovered. There is no back door and nothing is stored.
Why does decryption say wrong password?
Either the password is different or the encrypted text was changed or cut off. GCM checks both.
Why is encryption slow for a moment?
The 600,000 PBKDF2 iterations deliberately slow down password guessing; it takes about a second on a phone.
Is anything uploaded?
No. Everything runs on your device.
Related tools
People also use
- Phishing URL CheckerCheck a suspicious link for phishing tricks such as look-alike brand names and punycode, without opening it.
- SSH Key GeneratorMake an Ed25519 or RSA SSH key pair in OpenSSH format, with its fingerprint, without installing anything.
- 2FA / TOTP Code GeneratorGet 6-digit 2FA codes from a secret or QR code, create test secrets and check codes, all in your browser.
- Bcrypt & Argon2 Hash GeneratorCreate and check bcrypt and Argon2 password hashes, with parameters compared to OWASP guidance.
Last updated November 22, 2026 · How we build and test our tools