What is text encryption?
Text encryption converts readable text into ciphertext that can only be turned back with the right key. With password-based encryption, the key comes from a password you choose, so anyone with the password can read the message and nobody else can.
People use it to store recovery codes, private notes or account details in cloud notes, to send a sensitive message over an ordinary chat or email, or to keep information in a shared document that only some people should read. This tool uses authenticated AES-256-GCM and runs entirely in your browser.
How to use the Encrypt
1.Type or paste the text
A note, a list of codes, an address, anything private.
2.Choose a strong password
A passphrase of four or more words is ideal.
3.Share or store the result
Send the password a different way, such as a call or another app.
Example: a short private note
Encrypting a 13-character note with a password:
- Output
- Base64 text of about 80 characters
- Contents
- "ZK1", 16-byte salt, 12-byte nonce, ciphertext and 16-byte tag
- Encrypt again
- a completely different string
- Wrong password
- "Wrong password, or the encrypted data has been changed."
Only the right password turns the block back into the original note.
Real encryption, not a scramble
The password is stretched with PBKDF2-SHA-256 over 600,000 iterations, the level OWASP recommends, into a 256-bit AES-GCM key. A fresh random salt and nonce are used every time, so encrypting the same text twice gives different results, and GCM detects any tampering when decrypting.
The output is plain Base64 text that pastes safely into email, chat or a notes app. Your text and password never leave the page. Security depends on the password, so a short or guessable one can be cracked offline.
Frequently asked questions
Can you recover my text if I forget the password?
No. Nobody can, which is the point. Keep the password somewhere safe.
Is AES-256 secure?
Yes. It's the standard used by governments and banks; the weak point is usually the password.
Why is the encrypted text different each time?
A new random salt and nonce are used for every encryption, so identical messages don't look identical.
Can other tools decrypt it?
Not directly: it uses this tool's own layout of salt, nonce and ciphertext. Decrypt it here.
Related tools
Encrypt & Decrypt Files with a Password
Password-protect any file with AES-256, without uploading it.
Passphrase Generator
Memorable multi-word passphrases with real entropy figures.
Hash Generator: MD5, SHA-1, SHA-256
MD5, SHA-1 and SHA-256 hashes of text or files, with checksum compare.
Base64 Encoder & Decoder
Base64 and Base64url for text (UTF-8) and files.
URL Encoder & Decoder
Percent-encode or decode URLs and query values, and see a URL's parts.
JWT Decoder
Decode a JSON Web Token's header and payload and check its expiry.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table