Text Encrypt & Decrypt
Encrypt any text with AES-256-GCM and a password, or decrypt it back — entirely in your browser
Type or paste any text, set a password, and get AES-256-GCM encrypted output you can safely share over email, chat, or docs. The same password decrypts it on the other end — no accounts, no installs needed. And everything runs in your browser. Nothing gets uploaded.
How It Works
Your password gets stretched through 100,000 rounds of PBKDF2 with a random salt, which turns even a short passphrase into a full 256-bit key. A fresh random IV is generated each time so encrypting the same text twice produces completely different output. The result is packed into a single Base64 string — salt, IV, and ciphertext together — so you only need to share one blob.
Examples
Sharing a Wi-Fi Password Over Chat
Your coworker needs the office guest network password but you don't want it sitting in plaintext in Slack history.
Text: GuestWifi$ecure2024!
Password: mondaymeeting
dG9vbGFwcC1lbmMx...kZ3Y=
(Base64 encrypted blob)
Storing an API Key in a Shared Doc
You're documenting a project setup guide and need to include an API key. Anyone with the team passphrase can decrypt it, but random readers can't.
Text: sk-proj-abc123xyz789token
Password: ProjectAlpha2024
cHJvamVjdC1rZXkt...Qx==
(paste this in the doc)
Sending Personal Info Through an Untrusted Channel
A friend needs your bank details for a transfer. You send the encrypted blob via text message and tell them the password over a phone call — two separate channels, much harder to intercept.
Text: Account: 1234567890
Routing: 021000021
Name: Jane Doe
Password: callmefirst
YmFua2luZy1kYXRh...x0=
(send via text, share
password by phone)
Who Uses This
Encrypt API keys and tokens before pasting them into shared wikis or setup docs.
Share server credentials with team members without leaving plaintext passwords in email threads.
Pass client-sensitive data to contractors through channels that aren't end-to-end encrypted.
Understand AES-256-GCM encryption by watching real inputs turn into ciphertext and back.
Common Mistakes
AES-256 is only as strong as the password protecting it. A short or common password can be brute-forced in minutes. Pick something at least 12 characters with mixed case, numbers, and a symbol or two.
There is no "forgot password" option. If you lose the password, the data is gone for good. Write it down somewhere safe or use a password manager before you encrypt.
The Base64 string contains the salt, IV, and ciphertext together. Miss even one character and decryption fails completely. Always use the Copy button instead of manually selecting text.
Technical Details
- Processing: 100% client-side via Web Crypto API
- Algorithm: AES-256-GCM (authenticated encryption)
- Key Derivation: PBKDF2 with SHA-256, 100,000 iterations
- Salt: 16 random bytes per encryption
- IV: 12 random bytes per encryption
- Output Format: Base64 (salt + IV + ciphertext)
- Browser Support: Chrome, Firefox, Safari, Edge
Frequently Asked Questions
Is AES-256 encryption safe enough for passwords and personal data?
Yes. AES-256-GCM is the same standard used by banks, government agencies, and VPN providers. With a strong password and proper key derivation (which this tool handles automatically), cracking the ciphertext would take longer than the age of the universe with current hardware.
Can someone decrypt my text without the password?
No. There's no backdoor, no master key, and no recovery option. The encryption is mathematically tied to your password. Without it, the data is unreadable — even by this tool.
Does this tool store or send my data anywhere?
Nothing leaves your browser. All the encryption and decryption runs locally through the Web Crypto API. No server calls, no logging, no cookies. Close the tab and every trace is gone.
Why does encrypting the same text twice give different results?
Each encryption generates a fresh random salt and IV. That's intentional — it prevents attackers from comparing ciphertexts to guess content. Both outputs decrypt to the same plaintext with the right password, though.
What's the difference between AES-CBC and AES-GCM?
AES-CBC encrypts your data but doesn't check if someone tampered with it afterward. AES-GCM adds authentication — if even one bit of the ciphertext gets changed, decryption will flat-out refuse to run. That tamper detection is why GCM is the go-to choice now.