Encrypt text with military-grade AES-256 using just a passphrase — or decrypt it back. PBKDF2 key derivation, random salt and IV, all on your device.
Free AES Text Encrypt & Decrypt
Encrypt text with a passphrase using AES-256-GCM — or decrypt it back. Everything runs in your browser; your passphrase never leaves the device.
Use a passphrase only you know. Lose it, and nobody — not even this page — can recover your text.
Format: Base64 of (salt 16 bytes + IV 12 bytes + ciphertext). A fresh random salt and IV are generated for every encryption.
Encryption happens on your device with the Web Crypto API. Nothing is uploaded anywhere.
No account, no email, no waiting — encrypt instantly.
No limits on text length or number of encryptions.
How to use the AES Encrypt & Decrypt tool
- 1Enter your text and passphrase
On the Encrypt tab, paste or type the text you want to protect and choose a strong passphrase.
- 2Encrypt and copy
Hit Encrypt text. Your AES-256-GCM ciphertext appears as Base64 — copy it or download it as a .txt file.
- 3Decrypt it back anytime
On the Decrypt tab, paste the ciphertext and the same passphrase to recover the original text.
Features
Military-grade authenticated encryption via your browser’s native Web Crypto API.
Your passphrase is stretched with 250,000 PBKDF2-SHA-256 iterations plus a random salt.
Each encryption uses a new random salt and IV, so identical text never produces identical output.
GCM authentication detects a wrong passphrase or tampered ciphertext and tells you plainly.
Send results to your clipboard in one click or download the ciphertext as a .txt file.
All crypto runs locally — the page needs no server round trips once it’s open.
Frequently asked questions
Does my passphrase or text leave my device?
What happens if I forget my passphrase?
Why does the same text encrypt differently each time?
What does “wrong passphrase” mean during decryption?
What format is the encrypted output?
Is this suitable for real secrets?
Is this tool free?
Related tools
Password Generator
Create strong random passwords instantly.
🧮SHA256 Hash Generator
Generate SHA-256 hashes of any text.
🔤Base64 Encoder / Decoder
Encode and decode Base64 text in seconds.
🛡️Password Strength Checker
Test how strong your passphrase really is.
🧹Metadata Remover
Strip hidden EXIF data from photos before sharing.
