AES Encryption
Encrypt and decrypt text with AES-256-GCM in your browser. Passphrase-derived keys, authenticated encryption, base64 output, nothing leaves your machine.
AES-256-GCMPBKDF2Web CryptoClient-side
Mode
How to use
- Choose mode. Encrypt to protect text or Decrypt to recover it.
- Enter input and passphrase. For decryption, paste the base64 ciphertext and the same passphrase.
- Click Encrypt or Decrypt. Output appears in the right panel, copy it anywhere.
Common use cases
- Sharing a secret value over an insecure channel
- Encrypting notes, configs, or recovery codes before storage
- Sending a one-off encrypted snippet without setting up keys
- Verifying that a piece of ciphertext decrypts cleanly
Frequently asked questions
- What encryption algorithm does this use?
- AES-256-GCM (Advanced Encryption Standard, 256-bit key, Galois/Counter Mode). GCM provides authenticated encryption: changes to the ciphertext or use of the wrong passphrase produce a clean decryption error rather than garbage output.
- How is the passphrase turned into a key?
- Via PBKDF2 with SHA-256 and 200,000 iterations, plus a per-encryption random 16-byte salt. The salt is prepended to the ciphertext so decryption can reproduce the same key.
- Why does the same input produce different ciphertext each time?
- Each encryption generates a fresh 12-byte initialization vector (IV) and 16-byte salt, both prepended to the output. This is required for GCM security; reusing an IV with the same key catastrophically breaks AES-GCM.
- How strong is the passphrase I should use?
- Long enough that it cannot be brute-forced even with PBKDF2 stretching. A random 4-word passphrase (\u224850 bits of entropy) or a 16-character random string from the Password Generator is the practical floor. Short or common passphrases can be cracked offline regardless of the cipher.
- Is this safe for HIPAA, GDPR, or other regulated data?
- AES-256-GCM is a NIST-approved cipher used in compliant systems, but compliance also depends on key management, access controls, audit logging, and the legal classification of the data. Use this tool for ad-hoc encryption, not as a substitute for a compliant secrets-management platform.
- Does my plaintext or passphrase leave the browser?
- No. Everything runs in the browser using the Web Crypto API; nothing is logged, transmitted, or stored.
- Can I share encrypted text with someone else?
- Yes. Send them the base64 ciphertext and tell them the passphrase out of band (in person, by phone, or via a separate secure channel). They paste both into the Decrypt tab to recover the original.
Related tools
How to use
- Choose mode. Encrypt to protect text or Decrypt to recover it.
- Enter input and passphrase. For decryption, paste the base64 ciphertext and the same passphrase.
- Click Encrypt or Decrypt. Output appears in the right panel, copy it anywhere.
Common use cases
- Sharing a secret value over an insecure channel
- Encrypting notes, configs, or recovery codes before storage
- Sending a one-off encrypted snippet without setting up keys
- Verifying that a piece of ciphertext decrypts cleanly
Frequently asked questions
- What encryption algorithm does this use?
- AES-256-GCM (Advanced Encryption Standard, 256-bit key, Galois/Counter Mode). GCM provides authenticated encryption: changes to the ciphertext or use of the wrong passphrase produce a clean decryption error rather than garbage output.
- How is the passphrase turned into a key?
- Via PBKDF2 with SHA-256 and 200,000 iterations, plus a per-encryption random 16-byte salt. The salt is prepended to the ciphertext so decryption can reproduce the same key.
- Why does the same input produce different ciphertext each time?
- Each encryption generates a fresh 12-byte initialization vector (IV) and 16-byte salt, both prepended to the output. This is required for GCM security; reusing an IV with the same key catastrophically breaks AES-GCM.
- How strong is the passphrase I should use?
- Long enough that it cannot be brute-forced even with PBKDF2 stretching. A random 4-word passphrase (\u224850 bits of entropy) or a 16-character random string from the Password Generator is the practical floor. Short or common passphrases can be cracked offline regardless of the cipher.
- Is this safe for HIPAA, GDPR, or other regulated data?
- AES-256-GCM is a NIST-approved cipher used in compliant systems, but compliance also depends on key management, access controls, audit logging, and the legal classification of the data. Use this tool for ad-hoc encryption, not as a substitute for a compliant secrets-management platform.
- Does my plaintext or passphrase leave the browser?
- No. Everything runs in the browser using the Web Crypto API; nothing is logged, transmitted, or stored.
- Can I share encrypted text with someone else?
- Yes. Send them the base64 ciphertext and tell them the passphrase out of band (in person, by phone, or via a separate secure channel). They paste both into the Decrypt tab to recover the original.