Code · Made a little simpler

AES-GCM Encryptor

Encrypt or restore text and files locally with AES-256-GCM and PBKDF2-SHA256. Download an authenticated, versioned backup.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

AES-256-GCM with PBKDF2-SHA256. Keep the passphrase separately. Text supports up to 256 KiB in UTF-8 and files up to 16 MiB.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

AES-GCM Encryptor: how to use it

  1. Choose Encrypt and select text or a local file. Enter and confirm a separate passphrase of at least 12 characters.
  2. Encrypt backup and save the .tmbak file. Text backups also offer Base64 of the same bytes.
  3. To restore, choose Restore and load the file or pasted text backup. Enter the original passphrase and check the restored content.

Limits and notes

Uses Web Crypto on HTTPS or localhost and reads version 1 ToolMellow backups. Allows 256 KiB of text or a 16 MiB file. No key recovery. The file name is encrypted and sanitized for downloads.

How your privacy works →

AES-GCM Encryptor: common questions

Can I restore a backup on a different device?

Open this workspace on another device, then provide the same backup bytes and the exact passphrase.

Why did two backups have different bytes?

Encryption generates a new random PBKDF2 salt and GCM nonce each time. The same input and passphrase produce different backups.

Can a file be restored after its backup is edited?

The GCM authentication check detects altered encrypted data. Restore shows output only after authentication succeeds.

Guides