AES-GCM Text Encryptor

Encrypt text locally with AES-256-GCM and a password-derived key.

Your workspace

Processed in your browser

Enter your values or try the example.

This utility encrypts text using the AES-256-GCM algorithm. It generates a portable JSON envelope that includes the necessary parameters for decryption, such as the salt and initialization vector, while keeping your secret key protected.

How to encrypt your data

  1. Enter the text you wish to secure into the Input field.
  2. Provide a strong password. The tool uses PBKDF2-SHA256 with 600,000 iterations to derive a secure key from this password.
  3. Copy the resulting JSON envelope. This output contains all the metadata required for decryption on the companion tool.

Understanding the Output

The output is a JSON object containing the encrypted ciphertext and the parameters needed to unlock it. Because the salt and IV are randomly generated for every operation, encrypting the same text twice with the same password will result in different JSON envelopes. This is a standard security feature that prevents pattern analysis.

Encryption check

Input: 'Secret message', Password: 'my-strong-password'

A JSON object with fields 'v', 'algorithm', 'kdf', 'iterations', 'salt', 'iv', and 'ciphertext'.

Questions about encryption

Is my password stored anywhere?

No. All cryptographic operations occur entirely within your browser's memory. The password is used only to derive the encryption key and is discarded immediately after the operation.

What happens if I lose the password?

There is no recovery mechanism. If you forget the password, the data inside the JSON envelope cannot be decrypted. Always store your passwords in a secure password manager.

Continue your workflow

Explore more tools in this category for your next step.