Encryption & Ciphers100% Client-Side

Encrypt UTF-8 Text with AES-GCM

Paste text and supply a hexadecimal key to encrypt its UTF-8 bytes with AES-GCM. The result begins with gcm1: and carries the nonce and authentication tag together with the ciphertext. A new nonce is generated for each run. This page is useful for inspecting the format or testing a round trip with the matching decryption tool. Use Load Sample when working through the public example.

Configuration Options

Use a randomly generated 16-, 24-, or 32-byte key. Enter two hexadecimal digits per byte. Use Load Sample to try a public example.

Input
0 chars•0 lines
Output

Reverse tool

AES-GCM Text Decryption

Restore UTF-8 text from a complete gcm1 envelope and its original hexadecimal key. The browser checks the authentication tag during AES-GCM decryption.

Open AES-GCM Text Decryption

How to Use the AES-GCM Text Encryption Online

  1. 1Enter a 16-, 24-, or 32-byte key as pairs of hexadecimal digits.
  2. 2Paste the original text, including any line breaks you want to recover later.
  3. 3Copy the whole output including the gcm1: prefix.
  4. 4Paste the envelope and the same key into AES-GCM Decrypt to verify the round trip.

Input & Output Examples

Public example key 000102030405060708090a0b0c0d0e0f. One possible AES-GCM output for this text. The first 24 hex digits after the prefix are the nonce.

Input Sample
Hello
Expected Output
gcm1:000102030405060708090a0bdb09cba20974034bb56943a2415bb80690039874bf

Public example key 000102030405060708090a0b0c0d0e0f. One possible output for UTF-8 text with an accented letter and a line break.

Input Sample
Café
OK
Expected Output
gcm1:0b0a09080706050403020100d8bf6f468e863fc231151ef6fe48aadffeccf590a7540d7c

Practical Developer Workflows

  • Create a public fixture that checks how an application stores the complete envelope.
  • Compare two encryptions of the same test phrase to observe the changing nonce.
  • Verify that accented text and line breaks survive an encrypt and decrypt cycle.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The tool draws a new 12-byte nonce for each encryption. The nonce is included at the start of the hexadecimal part, so it can be recovered when decrypting. Keep the entire envelope when comparing results.

Explore Other Tools

12 suggested tools

View all tools