AES-256-GCM Encryption
Modern authenticated encryption, so tampered or corrupted text is detected instead of decrypting to garbage.
Encrypt and decrypt text with a password using AES-256. Your text and password never leave your browser.
Encryption happens inside your browser. Your text and password are never uploaded, logged or stored on our server.
Type or paste your text, then choose a strong password. For encryption, confirm the password.
Click Encrypt text, or switch to Decrypt, paste the encrypted text and enter the same password.
Copy or download the result. Send the password through a different channel and store it in a password manager.
Need to protect a note, message or secret? This free text encryptor lets you encrypt and decrypt text online with a password using AES-256-GCM and PBKDF2 key derivation. Choose a compact or armored output, generate a strong password, and copy the result. Everything runs in your browser with the Web Crypto API, so your text and password are never uploaded. Keep your password safe: it cannot be recovered.
Modern authenticated encryption, so tampered or corrupted text is detected instead of decrypting to garbage.
Your password is stretched with PBKDF2-SHA256 (600,000 rounds by default) and a random salt to slow down guessing.
Text and password stay on your device. Nothing is uploaded, logged or stored on our server.
Copy a single line of Base64 or a wrapped, labeled block that is easy to paste into emails and notes.
Create a random 20-character password with your browser's secure random number generator.
Full Unicode support, so text in any language, including emoji, encrypts and decrypts correctly.
Text encryption turns readable plaintext into unreadable ciphertext using an algorithm and a secret key. Without the key, the ciphertext looks like random data. With the key, the original text can be restored exactly. Password-based encryption, which this tool uses, creates the key from a password you choose, so you do not have to manage separate key files. It is a simple way to protect notes, messages and small secrets.
All of this uses the Web Crypto API built into your browser, not custom cryptography.
The format is open, so you can decrypt your text with other software if you ever need to. After Base64 decoding, the data is laid out like this:
| Bytes | Field | Value |
|---|---|---|
| 0 to 1 | Magic | TE (0x54 0x45) |
| 2 | Version | 1 |
| 3 | Key derivation | 1 = PBKDF2 with HMAC-SHA-256 |
| 4 to 7 | Iterations | Unsigned 32-bit integer, big-endian (default 600,000) |
| 8 to 23 | Salt | 16 random bytes |
| 24 to 35 | Nonce (IV) | 12 random bytes |
| 36 to end | Ciphertext | AES-256-GCM output with the 16-byte authentication tag at the end |
To decrypt elsewhere, read the iterations, salt and nonce from the header, derive a 256-bit key with PBKDF2-HMAC-SHA-256 from the NFC-normalized UTF-8 password, and decrypt the remainder with AES-256-GCM using the nonce and a 128-bit tag. The armored format simply wraps the same Base64 between BEGIN and END lines with a version header.
| Method | What it does | Needs a key? | Reversible? |
|---|---|---|---|
| Encryption (AES) | Scrambles data so only the key holder can read it | Yes (password) | Yes, with the key |
| Hashing (SHA-256) | Creates a fixed fingerprint of data | No | No |
| Encoding (Base64) | Writes bytes as text for transport | No | Yes, by anyone |
| Asymmetric (RSA) | Uses a public key to encrypt and a private key to decrypt | Yes (key pair) | Yes, with the private key |
Base64 and similar encodings are not security. Hashing cannot be reversed, so it is for checking data, not hiding it. Encryption is the tool for keeping data private while still being able to read it later.
Test an idea first with our password strength checker. The strength hint in this tool is a quick guide only.
| Use case | How the text encryptor helps |
|---|---|
| Private notes | Keep passwords hints, recovery codes or personal notes unreadable in a plain text file. |
| Sharing a secret | Send an API key or login in an email or chat as encrypted text, and share the password another way. |
| Backups | Store sensitive snippets in cloud notes without exposing the content to the provider. |
| Journals and drafts | Protect personal writing on a shared computer. |
| Learning | See how password-based AES encryption works with a documented format. |
A browser-based encryptor is safe to use when it runs locally, as this one does: your text and password are processed on your device and are never sent to our server, and you can verify that in your browser’s network tab. Remember what it can and cannot protect. It protects the text at rest and in transit, but it does not protect a device that already has malware, a password that is weak or reused, or what happens after you decrypt. For the most sensitive material, use a dedicated, audited offline tool and a trusted computer.
The tool encrypts text only (up to 500,000 characters), not files. It uses a shared password, so it does not handle public-key exchange or sign messages to prove who wrote them. The length of your text can be roughly guessed from the length of the encrypted output, and the header shows the format and number of rounds. It needs a modern browser with the Web Crypto API and works best over HTTPS. This page is not a substitute for a professional security review.
Check a password with the password strength checker. Inspect tokens with the JWT decoder. Browse all free online tools for security, developers, SEO, writing, PDF and image work.
Short answers about encrypting text, passwords and how this tool works.
A text encryptor turns readable text into scrambled text that can only be read again with the right password. It lets you store or send private notes, messages and snippets so that anyone who sees the encrypted text cannot read it without the password.
Your text and password are processed in your browser with the Web Crypto API and are never sent to our server, logged or stored. You can confirm this in your browser's network tab. The security of the result depends on your password, so use a long, random one.
It uses AES-256-GCM, a modern authenticated encryption standard, with a key derived from your password by PBKDF2 using SHA-256 and 600,000 rounds by default. A fresh random salt and nonce are created every time, so encrypting the same text twice gives different results.
No. There is no password reset and no backup key, because we never have your password. Store the password in a password manager. If it is lost, the encrypted text cannot be decrypted.
Yes. The format is simple and documented in the guide above: a small header, a random salt and nonce, then the AES-256-GCM ciphertext, all encoded as Base64. Any tool that follows the same steps can decrypt it.
No. Base64 is only a way to write bytes as text and anyone can reverse it. Encryption needs a secret key. This tool uses Base64 only to display the encrypted bytes after they have been encrypted with AES.
Use at least 14 random characters or a passphrase of five or more random words, and never reuse it. The password is the weakest part of any password-based encryption, because attackers can try guesses offline against the encrypted text.
Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.
Explore All Tools →