AES-GCM Encrypt & Decrypt Text

Encrypt and decrypt text in your browser with authenticated AES-GCM using a passphrase or raw key.

Text encryption

0 / 1,048,576 bytes
Secret format

Use at least 12 characters. A fresh salt and nonce are generated each time. This passphrase format uses PBKDF2-SHA-256 and AES-256-GCM.

Encrypted data

Authenticated AES-GCM

AES-GCM encrypts the text and checks that the encrypted data has not changed. A failed check never returns plaintext. The format includes a fresh nonce and, for passphrases, the salt and key derivation settings needed to decrypt later.

Keep the secret safe

Anyone with the encrypted text and its passphrase or key can decrypt it. Keep them separate and store a backup: this tool cannot recover a lost secret. AES-GCM confirms data integrity under the shared key; it does not prove who created the message.

How to encrypt or decrypt text

  1. Choose Encrypt and enter the text you want to protect.
  2. Use a long, unique passphrase or choose a raw AES key. Save the secret separately from the result.
  3. Select Encrypt text, then copy the versioned encrypted data.
  4. To open it later, select Decrypt, paste the full encrypted value, enter the same secret, and decrypt.

Text is processed in this browser session using the browser Web Crypto API. The tool does not save the fields to its history or browser storage. Site-wide analytics and advertising scripts still load as part of the shared site, so do not enter secrets on a device or page you do not trust.

Frequently asked questions

Does AES-GCM detect changes?

Yes. AES-GCM authenticates the encrypted data, so a wrong key or changed payload fails verification and no plaintext is shown. It does not identify a real-world sender.

Can I decrypt every AES or Base64 value?

No. This tool accepts its own INFINIO-AES1 format, which records the nonce and, when needed, the passphrase derivation settings. Other AES tools may use different modes and formats. Base64URL is only the envelope encoding; it is not encryption.

What if I lose my passphrase or key?

The encrypted result cannot be decrypted without the same secret. This tool has no recovery service.

Is the message sent to the server?

The encryption and decryption operations run in your browser, and this page does not store the text, secret, or result. The shared website still loads analytics and advertising code; use a trusted browser and device for sensitive information.

Related tools

Infinio Tools
© 2026 Infinio Labs