Skip to content
⚠ TESTING ENVIRONMENT You are viewing a testing copy of Tolioo. Changes here do not affect the live website.

Text Encryptor

Encrypt and decrypt text with a password using AES-256. Your text and password never leave your browser.

  • 100% free
  • AES-256 encryption
  • Runs in your browser
Text to encrypt0 characters
Encrypted text
Your Privacy Matters

Encryption happens inside your browser. Your text and password are never uploaded, logged or stored on our server.

ADVERTISEMENT
Demo Ad 728 x 90

How to use the text encryptor

1Enter text and a password

Type or paste your text, then choose a strong password. For encryption, confirm the password.

2Encrypt or decrypt

Click Encrypt text, or switch to Decrypt, paste the encrypted text and enter the same password.

3Copy and keep the password safe

Copy or download the result. Send the password through a different channel and store it in a password manager.

TEXT ENCRYPTION GUIDE

Free Text Encryptor – Encrypt and Decrypt Text Online with AES-256

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.

AES-256-GCM Encryption

Modern authenticated encryption, so tampered or corrupted text is detected instead of decrypting to garbage.

PBKDF2 Key Derivation

Your password is stretched with PBKDF2-SHA256 (600,000 rounds by default) and a random salt to slow down guessing.

Runs in Your Browser

Text and password stay on your device. Nothing is uploaded, logged or stored on our server.

Compact or Armored Output

Copy a single line of Base64 or a wrapped, labeled block that is easy to paste into emails and notes.

Strong Password Generator

Create a random 20-character password with your browser's secure random number generator.

Any Language, Any Emoji

Full Unicode support, so text in any language, including emoji, encrypts and decrypts correctly.

How to Use the Text Encryptor

  1. Choose Encrypt: Type or paste the text you want to protect into the input box.
  2. Set a strong password: Enter it twice. Use the generator for a random 20-character password and save it in a password manager.
  3. Pick the options: Choose a compact Base64 line or an armored block, and the number of PBKDF2 rounds. The default of 600,000 is a good balance.
  4. Click Encrypt text: Copy or download the encrypted result. It looks like random characters.
  5. To decrypt: Switch to Decrypt, paste the encrypted text, enter the same password and click Decrypt text.
  6. Share safely: Send the password through a different channel than the encrypted text, such as a call or another app.

What Is Text Encryption?

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.

How This AES Text Encryptor Works

  1. Random salt and nonce: Your browser creates a random 16-byte salt and a random 12-byte nonce for every encryption.
  2. Key derivation: Your password is turned into a 256-bit key with PBKDF2 using HMAC-SHA-256 and the salt. Many rounds make each password guess slow for an attacker.
  3. AES-256-GCM encryption: Your text is encoded as UTF-8 and encrypted with AES in Galois/Counter Mode, which also adds a 128-bit authentication tag.
  4. Packaging: The header, salt, nonce and ciphertext are joined and shown as Base64.
  5. Decryption: The tool reads the header, derives the same key and checks the tag. If the password is wrong or the text was changed, decryption fails safely instead of returning garbage.

All of this uses the Web Crypto API built into your browser, not custom cryptography.

Encrypted Message Format

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:

BytesFieldValue
0 to 1MagicTE (0x54 0x45)
2Version1
3Key derivation1 = PBKDF2 with HMAC-SHA-256
4 to 7IterationsUnsigned 32-bit integer, big-endian (default 600,000)
8 to 23Salt16 random bytes
24 to 35Nonce (IV)12 random bytes
36 to endCiphertextAES-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.

Encryption vs Hashing vs Encoding

MethodWhat it doesNeeds a key?Reversible?
Encryption (AES)Scrambles data so only the key holder can read itYes (password)Yes, with the key
Hashing (SHA-256)Creates a fixed fingerprint of dataNoNo
Encoding (Base64)Writes bytes as text for transportNoYes, by anyone
Asymmetric (RSA)Uses a public key to encrypt and a private key to decryptYes (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.

How to Choose a Strong Encryption Password

  • Make it long: Use at least 14 random characters, or a passphrase of five or more random words.
  • Make it random: Let the generator or a password manager pick it. Human patterns are easier to guess.
  • Do not reuse it: Use a unique password for this text, not one from your accounts.
  • Store it safely: Keep it in a password manager. There is no way to recover it.

Test an idea first with our password strength checker. The strength hint in this tool is a quick guide only.

Common Uses for Text Encryption

Use caseHow the text encryptor helps
Private notesKeep passwords hints, recovery codes or personal notes unreadable in a plain text file.
Sharing a secretSend an API key or login in an email or chat as encrypted text, and share the password another way.
BackupsStore sensitive snippets in cloud notes without exposing the content to the provider.
Journals and draftsProtect personal writing on a shared computer.
LearningSee how password-based AES encryption works with a documented format.

How to Share Encrypted Text Safely

  1. Use two channels: Send the encrypted text in one place and the password in another, for example email and a phone call.
  2. Do not put both together: Anyone who sees both can read the text.
  3. Agree on how long it matters: If the text is sensitive, rotate or re-encrypt it with a new password later.
  4. Verify the recipient: Make sure you are sending to the right person.

Is Online Text Encryption Safe?

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.

Text Encryption Mistakes to Avoid

  • Weak passwords: A short or common password can be guessed offline, whatever the algorithm.
  • Sending the password with the text: This defeats the purpose of encrypting.
  • Losing the password: There is no recovery, so keep a safe copy.
  • Editing the encrypted text: Even a single changed character makes decryption fail.
  • Pasting extra characters: Copy the full output, including every line of an armored block.
  • Thinking Base64 is secure: It is only an encoding.

Limits of This Tool

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.

More Free Security and Developer Tools

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.

ADVERTISEMENT
Demo Ad In-article
COMMON QUESTIONS

Frequently Asked Questions About Text Encryption

Short answers about encrypting text, passwords and how this tool works.

What is a text encryptor?

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.

Is this text encryptor safe and private?

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.

Which encryption does this tool use?

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.

Can I recover my text if I forget the password?

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.

Can I decrypt the text with another tool?

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.

Is Base64 the same as encryption?

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.

How strong should my password be?

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.

ADVERTISEMENT
Demo Ad 970 x 250

All Tools, One Place

Merge, split, compress and convert files in seconds. Explore powerful free tools for all your everyday needs.

Explore All Tools →