AES-GCM Decrypt

Decrypt AES-GCM data with your key and IV, and check that it hasn't been modified — the authentication tag is verified.

Leave empty to generate a random one when encrypting.

● 🔒 Your data is processed locally in your browser with the Web Crypto API and is never uploaded to our servers.

What you need to decrypt AES-GCM

InputFormat expected here
Key16, 24 or 32 bytes (AES-128, 192 or 256), written in hex or Base64
IV / nonceUsually 12 bytes, in hex — or tick “IV prepended” if it is stored before the ciphertext
CiphertextHex or Base64, with the 16-byte authentication tag at the end
Additional data (AAD)Only if it was used to encrypt — the exact same text

How to decrypt

  1. Choose Decrypt and the encoding of your ciphertext (Base64 or hex).
  2. Paste the ciphertext, the key and the IV — or tick “IV prepended” if the first 12 bytes of the data are the IV.
  3. Add the additional authenticated data if there is any.
  4. The plaintext appears with “tag verified ✔”: the data is exactly what was encrypted.

Everything runs in your browser with the Web Crypto API; the key and the data never leave your device.

Why does AES-GCM decryption fail?

GCM checks an authentication tag, so any mistake gives the same error — the tool can't tell which part is wrong. Check these, in this order:

  1. Key encoding: a key written in Base64 read as hex (or the opposite) gives the wrong bytes. A 256-bit key is 64 hex characters or 44 Base64 characters.
  2. The tag is missing: some libraries return the tag separately. Append it to the end of the ciphertext before decrypting.
  3. Wrong IV: the IV must be exactly the one used to encrypt. If it was stored before the data, tick “IV prepended”.
  4. AAD mismatch: the additional data must match byte for byte — or be empty on both sides.
  5. Modified or truncated data: a character lost or changed when copying is enough to fail. (Spaces, line breaks and URL-safe Base64 with - and _ are handled automatically.)
  6. Not GCM: data encrypted with AES-CBC, or with a password (like the AES Encrypt tool), needs AES Decrypt instead.

Getting the right format from your code

LibraryWhere the tag is
Web Crypto (browser, Deno)Already at the end of the ciphertext ✔
Python cryptography (AESGCM)Already at the end ✔
Java (Cipher "AES/GCM/NoPadding")Already at the end ✔
Go (cipher.NewGCM → Seal)Already at the end ✔
Node.js (crypto.createCipheriv)Separate: cipher.getAuthTag() — append it to the ciphertext
.NET (AesGcm)Separate tag buffer — append it to the ciphertext

FAQ

Can I decrypt without the key?

No. AES-GCM can't be decrypted without the exact key — that's the point of encryption. There is no “recovery”.

What is the authentication tag?

A 16-byte code computed from the key, IV, AAD and ciphertext. If anything was changed, the tag doesn't match and decryption is refused, so you never get corrupted plaintext.

Does it support 96-bit and other IV lengths?

A 12-byte (96-bit) IV is the standard and recommended size; other lengths given in the IV field are accepted too. With “IV prepended”, the first 12 bytes are used.

How do I encrypt data to test?

Use AES-GCM Encrypt with a key from the AES Key Generator, then paste the result here.