Text Encryption Tool
Encrypt or decrypt any text with a passphrase using AES-256-GCM — everything runs in your browser, nothing is sent to any server.
Use the Text Encryption Tool
Keep this secret. Share it with the recipient via a separate channel.
How it works
- Algorithm: AES-256-GCM
- Key derivation: PBKDF2-SHA-256, 310 000 iterations
- Output format: salt(16) + IV(12) + ciphertext — Base64
- 100% client-side — no data sent to any server
Copied!
Summary
This tool encrypts and decrypts text using the AES-256-GCM algorithm with a user-supplied passphrase. Your key is derived using PBKDF2 with a random salt and 310,000 iterations, matching current NIST recommendations. All cryptographic operations run inside your browser via the Web Crypto API — no data is transmitted or stored server-side.
How it works
- Type or paste the text you want to encrypt in the input field.
- Enter a strong passphrase — this is the secret you share with the recipient.
- Click Encrypt to generate a Base64-encoded ciphertext containing the salt, IV, and ciphertext.
- Share the encrypted output with your recipient, along with the passphrase through a separate channel.
- To decrypt, paste the encrypted output into the input field, enter the same passphrase, and click Decrypt.
- The original plaintext is restored instantly in the output field.
Use cases
- Securely share passwords or credentials over email or chat.
- Store sensitive notes in a text file or cloud document.
- Exchange confidential messages without relying on a third-party service.
- Protect private journal entries saved on shared devices.
- Verify cryptography concepts and AES-GCM behavior for development.
- Quickly encrypt API keys or tokens before committing to a notes app.
Frequently Asked Questions
Last updated: 2026-05-28 · Reviewed by Nham Vu