AES Encrypt / Decrypt.
Encrypt and decrypt text with AES-GCM, AES-CBC or AES-CTR using a passphrase or a raw key, in your browser.
Runs in your browserAbout AES Encrypt / Decrypt
AES Encrypt / Decrypt turns text into ciphertext and back with the Advanced Encryption Standard, using your browser's built-in WebCrypto implementation. Choose AES-GCM for new work: it is authenticated, so a wrong passphrase or a modified message fails loudly instead of returning garbage. AES-CBC and AES-CTR are there for compatibility with older systems. In passphrase mode the key is derived with PBKDF2-SHA256, 600,000 iterations by default as OWASP recommends, and a random 16-byte salt. The output is one Base64 (or hex) string laid out as salt, then IV, then ciphertext, so the same passphrase and settings are all you need to decrypt it later. In raw-key mode you paste a 128-bit or 256-bit key as hex, which is how you interoperate with code that already has a key, for example openssl enc -aes-256-cbc -K … -iv …; supply the IV as well and it is not embedded. A typical example is encrypting a short note with a passphrase you share over a different channel. Common mistakes are reusing an IV with the same key (catastrophic for GCM and CTR), decrypting with a different algorithm or iteration count than the one used to encrypt, and confusing a passphrase with a hex key. The parameters panel lists the salt, IV and layout used. The tool is marked sensitive, so the input is never written to the page address or history, and nothing leaves your browser.
How to Use
- Choose encrypt or decrypt and paste the text or ciphertext.
- Enter a passphrase (or switch to raw-key and paste a hex key) and pick the algorithm.
- Copy the result; decrypt later with the same passphrase and settings.
Frequently Asked Questions
Which mode should I use?
AES-GCM. It detects tampering and wrong keys. CBC and CTR provide no integrity on their own and are offered for compatibility.
Is this compatible with openssl enc?
In raw-key mode with a custom IV, AES-CBC matches openssl enc -aes-256-cbc -K <key> -iv <iv> (PKCS#7 padding). Passphrase mode uses its own salt|IV|ciphertext layout with PBKDF2-SHA256.
What happens if I forget the passphrase?
The data cannot be recovered. There is no backdoor and nothing is stored anywhere.
Is my text or passphrase sent to a server?
No. Encryption runs in your browser with WebCrypto, the page makes no network requests, and sensitive inputs are kept out of the URL.
Related Tools
Encrypt with RSA-OAEP, decrypt, sign and verify with PKCS#1 v1.5 or PSS using PEM keys, in your browser.
Generate MD5, SHA-256, SHA-512, and other hashes.
Generate secure, random passwords with entropy info.
Hash and verify passwords with bcrypt or Argon2.
Encode and decode Base64 strings.
Share a password or key through a link that works only once.