Encrypt Text Online

Lock a message with a password using AES-256 encryption, and unlock it again.

Encrypt Text Online tool

Mode

About the Encrypt Text Online tool

Sometimes you need to send a private note, a list of account details or a message that only the intended reader should see. This tool will encrypt text with a password using AES-256-GCM, a modern and widely trusted encryption standard, turning it into random-looking text that is safe to send by email or chat; the recipient decrypts it here with the same password. Share the password through a different channel, choose a long one, and remember that if it is lost, the text cannot be recovered.

Encryption uses AES-256 in GCM mode, the same standard trusted by banks and governments, through your browser's built-in Web Crypto. The key is derived from your password with PBKDF2 using SHA-256 and 600,000 iterations, which makes password guessing slow, and each message gets a fresh random salt and initialization vector, so encrypting the same message twice gives different results.

GCM also authenticates the data: if the encrypted text is changed or the password is wrong, decryption fails with a clear message instead of returning garbage. The strength of the result depends on the password, so use a long, unique passphrase and share it separately from the message. Nothing is uploaded; everything happens on your device.

To create a strong passphrase, use the password generator. For signatures without secrecy, see the HMAC generator, and for simple encodings that are not encryption, try the Base64 encoder. Once the page has loaded it even works offline.

How to use the Encrypt Text Online tool

  1. Choose Encrypt or DecryptEncrypt turns readable text into a locked block; Decrypt reverses it.
  2. Enter the textType the message to encrypt, or paste the encrypted block to decrypt.
  3. Enter the passwordUse a long, unique passphrase. The same password is needed to decrypt.
  4. Run and copyPress the button, then copy the result and share the password separately.

Encrypt Text Online features

  • AES-256-GCM authenticated encryption
  • PBKDF2-SHA256 key derivation, 600,000 iterations
  • Random salt and IV for every message
  • Detects wrong passwords and changed data
  • Base64 output safe for email and chat
  • Show or hide the password
  • Uses the browser's Web Crypto
  • Nothing is uploaded

Common uses

  • Sending a private note over email or chat
  • Storing sensitive text in a shared document
  • Protecting recovery codes and secrets in backups
  • Sharing a password with a colleague safely
  • Teaching how modern encryption works

Encrypting text in practice: sharing details safely, choosing a passphrase, sending it separately, storing notes and knowing the limits

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Password-based encryption lets you send or store a message so that only someone with the passphrase can read it. It is most useful where end-to-end encrypted messaging is not available, such as email, shared drives and notes apps. This guide works through sharing sensitive details with a family member, then covers choosing a passphrase, sending it by a different route, storing encrypted notes and what encryption cannot protect.

A worked example: sharing details with family

Someone needs to send a relative the login details for a shared utility account by email. They type the details, choose a passphrase of five random words, and encrypt. The encrypted block is pasted into the email, and the passphrase is shared in a phone call. Anyone who later gains access to the email account sees only random-looking text, while the relative pastes it here, enters the passphrase and reads the details.

Choosing a passphrase

The encryption is only as strong as the passphrase. Words chosen at random from a large list are both strong and memorable: four words from a list of 7,776 give about 52 bits of unpredictability, and five words about 65 bits. Combined with the deliberately slow key derivation used here, that makes guessing impractical. Names, birthdays and phone numbers are guessable and should never be used.

Send the passphrase separately

Sending the passphrase in the same email as the encrypted text defeats the purpose. Share it through a different channel, such as a phone call, an in-person conversation or an end-to-end encrypted messaging app. If one channel is compromised, the other still protects the message.

Storing encrypted notes

Encrypted text can be stored in ordinary notes apps, cloud documents or printed on paper, for example recovery codes or important account details. Keep the passphrase somewhere safe and separate, such as a password manager. If the passphrase is lost, nobody can recover the text, not even the tool.

What encryption cannot hide

Encryption protects the content of a message, not the fact that it was sent, who sent it, when and to whom. Once the recipient decrypts it, the plain text exists on their device, where screenshots, malware or shoulder-surfing can expose it. Advise recipients to delete the decrypted text once they no longer need it.

When to use messaging apps instead

Apps with end-to-end encryption, such as WhatsApp and Signal, already encrypt messages between devices. For conversations, they are simpler. This tool suits situations those apps do not cover: email, shared documents, notes, storage on devices others can access and sending to someone who uses a different platform.

Compatibility

The encrypted output contains the salt, the initialisation vector and the ciphertext needed to decrypt it with the same scheme. It can be decrypted here or by any implementation using the same settings, AES-256-GCM with PBKDF2-SHA-256 and the same iteration count. Keep a note of the tool used if you store encrypted text for years.

Beware of requests for passphrases

Scammers sometimes pose as relatives, banks or support staff to obtain passwords and passphrases. Confirm by calling a number you already know before sharing a passphrase with anyone, and be suspicious of urgency. Encryption cannot help if the passphrase is handed to the wrong person.

Long passphrases on phones

Typing long passphrases on a phone keyboard invites mistakes. Words separated by spaces or hyphens, all in lower case, are easier to type accurately than mixed symbols, and decryption fails clearly when a single character is wrong, so the recipient knows to check rather than receiving garbled text.

Common mistakes

  • Sending the passphrase with the encrypted message.
  • Choosing a short or personal passphrase.
  • Forgetting the passphrase for stored notes.
  • Assuming encryption hides who sent the message.

Related tools

To test a passphrase, use Password Strength Checker. For one-way fingerprints of text, try Hash Generator, and to compare with a historical cipher that offers no real security, Caesar Cipher.

Files and whole devices

This tool works with text. For files, encrypted archives, such as those created by 7-Zip with AES-256 and a strong password, do the same job, and full-disk encryption, such as BitLocker on Windows or FileVault on Macs, protects everything on a laptop if it is lost or stolen.

Test before you rely on it

After encrypting something important, decrypt it once yourself with the passphrase before sending or storing it. This confirms the passphrase was typed as intended and the encrypted text was copied completely, which is far better than discovering a problem when the information is urgently needed.

At work

Organisations usually have rules about how customer and company data may be shared. Follow your workplace's approved tools and policies, even for encrypted information, and ask your IT team before sending sensitive business data outside approved systems.

Privacy

Encryption and decryption run entirely in your browser with Web Crypto. Your text and passphrase are never uploaded or stored.

Frequently asked questions

How secure is this encryption?

AES-256-GCM is a modern, widely trusted standard with no practical attacks. The real weak point is the password: a short or common password can be guessed. Use a long passphrase of several random words.

Can you recover my text if I forget the password?

No. Nobody can. The password never leaves your device and there is no back door, so without the exact password the encrypted text cannot be decrypted.

Why does the same text encrypt differently each time?

Each encryption uses a new random salt and initialization vector. This is intended: it stops anyone from telling that two encrypted messages contain the same text.

What does the encrypted output contain?

A Base64 string holding a 16-byte salt, a 12-byte initialization vector and the AES-GCM ciphertext with its 16-byte authentication tag. The key is derived with PBKDF2-SHA256 over 600,000 iterations, so other tools can decrypt it with the same settings.

Why did decryption fail?

Either the password is wrong, or the encrypted text was changed or not copied completely. GCM refuses to decrypt modified data, so check that you copied the whole block without extra spaces or line breaks.

Is this the same as Base64 or ROT13?

No. Base64 and ROT13 are encodings that anyone can reverse without a key. This tool uses real encryption that cannot be reversed without the password.

Is my text or password uploaded?

No. Encryption and decryption run entirely in this page with your browser's Web Crypto. Your message and password are never sent anywhere or stored, not even in your browser's storage.

Can I send the encrypted text by email or chat?

Yes. The output is plain Base64 text, so it can be pasted into an email, a chat message or a note. Share the password separately, ideally through a different channel or in person, never in the same message.