AES GCM Encrypt Decrypt
AES GCM Encrypt Decrypt
Encrypt and decrypt text using AES-GCM locally.
Message and Key
AES-GCM Output
About The AES GCM Encrypt Decrypt
AES GCM Encrypt Decrypt encrypts text to Base64 ciphertext or decrypts Base64 ciphertext back to text using AES-GCM. It uses a passphrase-derived key and a 12-byte IV for short local testing workflows.
The cryptographic operation runs locally in your browser with Web Crypto when available. Use it for experiments and fixtures, not as a replacement for audited production key management.
How to Encrypt or Decrypt AES-GCM Online
- Choose encrypt or decrypt mode.
- Enter the passphrase and input text.
- For decryption, paste the matching Base64 IV generated during encryption.
- Run AES-GCM and copy the ciphertext, IV, or plaintext result.
Choosing Options Correctly
Mode:
Use encrypt for plaintext. Use decrypt only when the input is Base64 ciphertext and the IV is the exact Base64 IV from encryption.
IV:
AES-GCM requires a unique IV for each encryption. This tool generates one for encrypt mode and requires it for decrypt mode.
Common Use Cases
- Testing how an app handles AES-GCM ciphertext and IV fields.
- Creating short encrypted fixtures for local development.
- Learning why passphrase, ciphertext, and IV must match exactly.
Quick FAQ
Why did decryption fail?
AES-GCM rejects output if the key, IV, ciphertext, tag, or additional authenticated data does not match exactly.
Can I reuse an IV?
No. Reusing an IV with the same key in AES-GCM can break security. Use a fresh random IV for each encryption.
Is this suitable for production secrets?
Use it for learning, testing, or local checks. Production encryption should use reviewed application code and key management.
What should I save with the ciphertext?
You need the IV, authentication tag, algorithm settings, and any salt or KDF parameters needed to recreate the key.
Related Tools
JWT Decoder
Decode JWT header and payload locally without sending data out.
JWT Encoder
Create signed HS256 JWT tokens locally from JSON payload and secret.
JWT Verifier
Verify JWT signatures for HS, RS, and ES algorithms using secret, PEM key, or JWKS.
JWT Timeline Inspector
Inspect JWT timeline claims like iat, nbf, and exp.