Encrypt Online
Theme

AES-GCM Encrypt

Encrypt with explicit key, IV, AAD, tag length, ciphertext, and auth tag bytes

Safety note: Keep the AES key secret. The IV is not secret, but it must be unique for each encryption with the same key and must stay paired with the ciphertext.
Encrypt with AES-GCMCreate ciphertext, auth tag, and combined output with explicit interoperability settings
Generate fresh values or paste known bytes to compare another implementation.
Masked by default; never put a real key in a URL.
An IV can be public; uniqueness under the key is what matters.
Interoperability settings tag length and optional AAD

AAD is authenticated but not encrypted. Decryption needs the exact same AAD bytes, encoding, and tag length.

What AES-GCM Needs

AES-GCM authenticates the ciphertext and any optional AAD. Decryption needs the exact key, IV, ciphertext, tag, AAD, and tag length. The page keeps each byte-oriented setting visible so you can reproduce another implementation without guessing its payload format.

Run the AES-GCM Workflow
  1. Choose the encodings and payload layout used by the other implementation.
  2. Enter UTF-8 plaintext, then encrypt to get separate and combined outputs.
  3. Open Interoperability settings only when you need a non-default tag length or AAD.
  4. Store the IV and tag with the ciphertext; store the key separately.
Why AES-GCM Tag Verification Fails

A tag failure does not reveal which input is wrong. Check the byte encoding, IV, ciphertext/tag split, AAD, and tag length before assuming the key is wrong. In a combined payload, this tool treats the final selected tag-length bytes as the tag. A successful decrypt authenticates the complete set of inputs.