Text Encryption (AES-GCM)
Protect a note or message with a password. Encryption derives a 256-bit key from your passphrase with PBKDF2-SHA256 (600,000 iterations) and a random salt, then seals the text with AES-256-GCM and a random IV. Nothing is uploaded and there is no key escrow.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
The same passphrase is needed to decrypt. It is never stored or sent anywhere.
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What the two modes do
Encrypt mode takes plain text and a passphrase and emits a single opaque token you can paste anywhere; decrypt mode takes such a token and the same passphrase and returns the text. The passphrase is required both ways and is never stored, so the token and the password have to travel separately — sending both in one message defeats the point.
The construction behind the token
A fresh 16-byte salt is generated for every encryption and the passphrase is stretched into a 256-bit key with PBKDF2-SHA256 at 600,000 iterations, deliberately slow to make guessing expensive. The text is sealed with AES-256-GCM using a random 12-byte IV, and the token is the prefix TBenc1. followed by base64 of salt, IV and ciphertext with its authentication tag.
Why tampering is detected
GCM is authenticated encryption: the tag is checked before any plaintext is released. A single altered character, or the wrong passphrase, fails that check and the tool reports "Wrong password or corrupted data." without revealing which it was, since distinguishing them would help an attacker. A token missing the TBenc1. prefix is refused immediately.
Limits, caveats and privacy
There is no key escrow, recovery hint or server, so a forgotten passphrase means the ciphertext is unreadable forever, by design. Strength rests on the passphrase you choose and the device you type it on, so treat this as a convenient everyday tool rather than a replacement for audited software. The passphrase, plaintext and token all stay in this tab, with no upload and no local storage.
Questions
What exactly does the encryption do?
A random 16-byte salt is generated and your passphrase is stretched into a 256-bit key with PBKDF2-SHA256 at 600,000 iterations. The text is then encrypted with AES-256-GCM using a random 12-byte IV. The output is "TBenc1." followed by base64 of salt (16 bytes) + IV (12 bytes) + ciphertext with its authentication tag.
I forgot the password — can you recover my text?
No. There is no backup, no recovery hint and no server. A lost passphrase means the ciphertext is permanently unreadable, by design.
Is this safe for highly sensitive data?
The primitives are standard and run locally via the Web Crypto API, but security still depends on a strong, unique passphrase and a trusted device. For high-stakes secrets use dedicated, audited software.
Related tools
See categoryFile Hash / Checksum
Compute SHA-256/384/512 and SHA-1 checksums for one or more files.
UUID Generator
Generate RFC 4122 UUIDs (v4 random or v7 time-ordered) in bulk.
Base64 Encode / Decode
Convert text or a file to and from Base64, with URL-safe and MIME line-wrap options.
Hex Encode / Decode
Convert text to and from hexadecimal (UTF-8), with configurable separators.