Encrypt & Decrypt Text
Lock any message or file with a password using AES-256 encryption, then share it safely. Only someone with the password can read it — and nothing ever leaves your browser.
Use 12+ characters, or four random words.
How it works
Your password is stretched with PBKDF2-SHA256 and a random salt, then AES-256-GCM encrypts and seals the data. A wrong password or any change to the encrypted text is detected — it can’t be decrypted silently into garbage. There is no password recovery: if you lose it, the data is gone.
How to Encrypt and Decrypt Text
Turn any message or file into unreadable encrypted text that only someone with the password can open.
Type or drop your data
Paste the message you want to protect, or switch to File and drop any file up to 200 MB.
Choose a strong password
Type your own or click Generate strong. The meter shows how hard it is to guess.
Encrypt and share
Click Encrypt, then copy the text, download it or copy a share link. Send the password a different way.
Decrypt it
The receiver opens the Decrypt tab (or your link), pastes the encrypted text and enters the password.
Cipher
AES-256-GCM
Key
PBKDF2 · 600k
Files
Up to 200 MB
Share
Secret links
Tamper-proof
Changes detected
Passwords
Strong generator
Privacy
Never uploaded
Price
100% free
Text Encryption Tool Features
Strong, modern encryption that anyone can use — no software to install.
AES-256-GCM encryption
The same standard used by banks, governments and messaging apps. GCM also seals the data, so any change is detected.
Hardened password keys
Your password is stretched with PBKDF2-SHA256 over 600,000 rounds and a random salt, making guessing attacks slow and expensive.
Encrypt any file
Protect documents, photos, PDFs, archives and more. The original file name is stored inside the encryption.
Secret share links
Create a link that opens this tool with your encrypted message filled in. The data sits after the # so it’s never sent to our server.
Strong password generator
One click creates a 20-character random password and copies it for you.
Password strength meter
See roughly how many bits of strength your password has before you encrypt.
Output formats
Get the encrypted result as Base64, URL-safe Base64URL or Hex — whatever fits where you’ll paste it.
Different every time
A fresh random salt and IV mean the same message and password never give the same output twice.
100% in your browser
Encryption uses your browser’s built-in Web Crypto. Your text, files and password never leave your device.
What’s Inside the Encrypted Text?
Everything needed to decrypt is included — except the password.
| Part | Size | Purpose |
|---|---|---|
| Header (TZE + version) | 4 bytes | Identifies the format, so the tool knows how to read it |
| Rounds | 4 bytes | How many PBKDF2 rounds were used to turn the password into a key |
| Salt | 16 bytes | Random value that makes each key unique, even for the same password |
| IV (nonce) | 12 bytes | Random value that makes each encryption unique |
| Ciphertext + tag | Data + 16 bytes | Your encrypted data, sealed with a 128-bit authentication tag |
Encryption vs Encoding vs Hashing
They’re often confused — only encryption keeps data secret and lets you get it back.
| Method | Reversible? | Needs a key? | Use it for |
|---|---|---|---|
| Encryption (AES) | Yes, with the password | Yes | Keeping messages and files secret |
| Encoding (Base64) | Yes, by anyone | No | Sending data through text-only systems |
| Hashing (SHA-256) | No | No | Checksums and fingerprints |
| Password hashing (bcrypt) | No | No (uses a salt) | Storing login passwords |
What Can You Use It For?
Keep private things private, wherever you send them.
Secret messages
Send private notes over email, chat or social media.
Share passwords
Pass Wi-Fi codes, logins or API keys to a colleague.
Protect files
Encrypt documents before uploading them to the cloud.
Private notes
Store sensitive notes in a normal notes app, safely.
Config secrets
Keep .env values and tokens unreadable in shared docs.
Email attachments
Add a layer of protection to sensitive attachments.
Backups
Encrypt recovery codes and backup keys.
Learning
See modern encryption in action.
Tips for Safe Encryption
- Send the password separately. Share the encrypted text by email and the password by phone or another app.
- Use a long password. 12+ random characters or four random words — the encryption is only as strong as the password.
- There’s no password reset. If you lose the password, nobody — including us — can recover the data.
- Keep a copy of the original. Until you’ve tested decrypting, don’t delete the unencrypted file.
- Use Base64URL for links. It avoids + and / characters that some apps break.
- Trust the error. “Wrong password” also appears if the text was cut off — copy the whole thing.
Private by Design
Everything happens inside your browser using the Web Crypto API. Your messages, files and passwords are never uploaded, logged or stored by Toolszu.
Share links keep the encrypted data after the # in the URL. Browsers never send that part to the server, so even the link doesn’t reveal anything to us.
Frequently Asked Questions
Answers about encrypting and decrypting text and files online.
Type or paste your text, enter a password (or click Generate strong) and click Encrypt text. Copy the encrypted result and send it. To read it, paste it into the Decrypt tab and enter the same password.
AES-256-GCM, with the key derived from your password using PBKDF2-SHA256 over 600,000 rounds and a random 16-byte salt. Each encryption also uses a random 12-byte IV. This follows current OWASP recommendations.
Yes, with this tool, because nothing is sent online. The encryption runs in your browser with its built-in Web Crypto, so your text and password stay on your device. Always use a strong password.
Not in practice. AES-256 has never been broken. The only realistic attack is guessing the password, which the 600,000 PBKDF2 rounds slow down enormously — so use a long, random password.
The data can’t be recovered. There is no back door and no reset, which is exactly what makes it secure. Store important passwords in a password manager.
A new random salt and IV are used every time. This is a security feature: it stops anyone from telling that two encrypted messages contain the same text.
Yes. Switch to File, drop any file up to 200 MB and click Encrypt file to download an encrypted .tzenc file. To restore it, choose Decrypt → File, drop the .tzenc file and enter the password.
Share link puts the encrypted text after the # in the address. Browsers never send that part to the server. When someone opens the link, the encrypted text is filled in and they only need the password.
The encrypted text was probably changed or cut off when copying — for example a missing last line. GCM detects any change. Copy the full text again, or use the Download button.
The format is documented on this page: a 4-byte header, 4-byte round count, 16-byte salt, 12-byte IV, then AES-256-GCM ciphertext with the header as associated data. Any AES-GCM library can decrypt it with that information.
No. Base64 only changes how data looks and anyone can reverse it. Encryption scrambles data with a key so only someone with the password can read it.
Yes, it’s completely free with no sign-up and no limits.
Related Free Tools
Encrypt Your Message Now
Lock any text or file with a password in seconds. Free, private and no sign-up.
Start Now