About the AES Encryption & Decryption tool
Sometimes you need to send a password, recovery code or private note over a channel you do not fully trust, or store it somewhere readable by others. Encrypting it with a passphrase you share separately is a simple fix. Many online AES tools, however, use outdated modes such as ECB, weak key derivation, or process your text on their server.
This tool uses AES-256-GCM, an authenticated mode: if a single character of the ciphertext is changed, or the passphrase is wrong, decryption fails instead of producing garbage. In passphrase mode the key is derived with PBKDF2-HMAC-SHA256 and a random 16-byte salt, 600,000 iterations by default as recommended by OWASP. Each encryption also uses a fresh random 12-byte IV, so encrypting the same text twice gives different output.
The result is one Base64 string with a documented, versioned layout containing the iteration count, salt, IV and ciphertext, so you can decrypt it later here or in your own code. A raw key mode accepts your own 128, 192 or 256-bit key in hex or Base64. Everything runs in Web Crypto on your device.
How to use AES Encryption & Decryption
- Choose “Encrypt” or “Decrypt”, then “Passphrase” or “Raw key”.
- Type the text to encrypt, or paste the Base64 string to decrypt.
- Enter the passphrase, or paste a key (click “New key” to create a random one).
- Click “Encrypt” or “Decrypt” and copy or download the result.
- Open “Output format” if you need to decrypt the data in your own program.
Features
AES-256-GCM
Authenticated encryption that detects tampering and wrong passwords instead of returning corrupt text.
PBKDF2 key derivation
Passphrases are stretched with PBKDF2-SHA256 and a random salt; choose 210,000, 600,000 or 1,000,000 iterations.
Raw key mode
Encrypt with your own AES-128, AES-192 or AES-256 key given in hex or Base64.
Versioned, documented format
A version byte, iteration count, salt and IV are stored with the ciphertext, so decryption needs only the passphrase.
Local only
Uses the browser's Web Crypto API; text, passphrases and keys never leave the page.
When to use it
- Send a database password to a colleague by email and share the passphrase by phone.
- Keep encrypted recovery codes in a shared notes app.
- Test AES-GCM decryption code in your application against known output.
- Encrypt a config value before putting it in a ticket or chat.
Frequently asked questions
Can this decrypt text encrypted by other AES tools?
Only if it uses this tool's format. AES tools differ in mode, key derivation, IV handling and encoding, so there is no universal AES text format. The format used here is documented on the page.
What happens if I forget the passphrase?
The data cannot be recovered. There is no backdoor and nothing is stored on a server.
Why is encryption slightly slow?
PBKDF2 deliberately runs hundreds of thousands of hash rounds to make guessing passphrases expensive. It usually takes under a second.
How strong should my passphrase be?
The encryption is only as strong as the passphrase. Use a random passphrase of five or more words or a long random password, not a word or name.
Is anything sent to a server?
No. Encryption and decryption run in your browser's Web Crypto API.