AES Encrypt & Decrypt
Encrypt or decrypt text using AES-256 with a password. 100% client-side — your data never leaves your browser.
About AES Encrypt & Decrypt
AES (Advanced Encryption Standard) is a symmetric encryption algorithm adopted by NIST in 2001. It is used everywhere: TLS/HTTPS, file encryption, VPNs, database encryption, and messaging apps. AES-256 is the strongest common variant (256-bit key). Because AES requires a fixed-size binary key, when you encrypt with a password, the password must be transformed into a key using a Key Derivation Function (KDF) — usually PBKDF2 or scrypt with a random salt. This tool uses AES-256 with PBKDF2 to derive the key from your password, and a random salt + IV for each encryption. The result is a compact, base64- or hex-encoded ciphertext that includes everything needed for decryption (given the password).
How It Works
- Encrypt mode: enter your plaintext, enter a strong password, choose a mode, and click Encrypt.
- The tool derives an AES-256 key from the password using PBKDF2 (with a random salt).
- The ciphertext (with salt + IV) is encoded as base64 or hex.
- Decrypt mode: paste the encoded ciphertext and the same password to get the original text.
✨ Key Features
- ✓AES-256 encryption (strongest common variant)
- ✓PBKDF2 key derivation (100,000 iterations)
- ✓Random salt (16 bytes) per encryption
- ✓Random IV (16 bytes for CBC/CTR, 12 bytes for GCM) per encryption
- ✓GCM mode (authenticated encryption — recommended)
- ✓CBC mode (widely compatible)
- ✓CTR mode (stream cipher)
- ✓Base64 and hex output formats
- ✓Password strength indicator
- ✓100% client-side — your data never leaves your browser
🎯 Common Use Cases
- →Encrypting sensitive text before sharing over insecure channels
- →Learning how AES encryption works
- →Testing AES encryption/decryption in your app
- →Storing small encrypted secrets locally
- →Encrypting configuration values
- →Generating AES test vectors
- →Comparing AES modes (GCM vs CBC vs CTR)
- →Quick one-off encryption of a message
💡 Advanced Tips & Pro Insights
- ▸Use GCM mode (recommended). It is an "authenticated encryption" mode — it detects tampering and prevents a whole class of attacks. CBC and CTR do not authenticate (they are vulnerable to padding-oracle and bit-flipping attacks if used without a MAC).
- ▸NEVER reuse an IV with the same key. This tool generates a random IV for each encryption automatically.
- ▸Use a strong password. AES-256 is unbreakable, but PBKDF2 of a weak password is brute-forceable. Combine with a long passphrase (4+ random words).
- ▸The output ciphertext contains: salt + IV + ciphertext (with authentication tag for GCM). Everything needed to decrypt — given the password.
- ▸For long-term storage, consider a dedicated tool (age, GPG, 1Password). This browser tool is for learning and quick tasks.
- ▸Do not use ECB mode — it reveals patterns in the plaintext. This tool does not offer ECB.