Security & Privacy

Text Encrypt / Decrypt

Encrypt and decrypt text with a passphrase using AES-GCM. Everything runs locally with Web Crypto.

Workspace

Encryption and decryption happen entirely in your browser. Nothing is sent anywhere.

Envelope sealed with a padlock and a key beside it

How to use

  1. Enter a passphrase. Use a long one, such as four or five random words, and keep it somewhere safe: without it the text cannot be recovered.
  2. Type or paste your text and click Encrypt. The output is a block of letters and digits starting with v1:, safe to paste into an email, a note or a chat.
  3. To read it, paste that block into Input, enter the same passphrase and click Decrypt.

How the encryption works

The text is encrypted with AES-256-GCM through the Web Crypto API built into your browser, the same standard used for HTTPS. The 256-bit key is derived from your passphrase with PBKDF2 (SHA-256, 100,000 rounds), which makes each guess at the passphrase slower for an attacker.

Every time you encrypt, a new random salt and IV are generated, so the same text and passphrase give a different output each time. GCM also checks integrity: if a single character of the encrypted text is changed, or the passphrase is wrong, decryption fails instead of returning garbage.

When it is useful

Sending a Wi-Fi password, a door code or account details over email or chat, where messages are stored for years; keeping private notes in a cloud document; or passing a secret to a coworker. Send the encrypted text one way and the passphrase another way, for example the text by email and the passphrase by phone call.

DoDon't
Use a long passphrase of several random wordsReuse your email or bank password
Share the passphrase through a different channelSend the passphrase in the same message
Store the passphrase in a password managerRely on remembering a one-off passphrase

Limits to know

The protection is only as strong as the passphrase: a short or common one can be guessed by trying millions of options. There is no reset or recovery, by design, because nothing is stored anywhere. For files, very large text or ongoing private conversations, a dedicated tool such as an end-to-end encrypted messenger or encrypted archive is a better fit.

Frequently asked questions

Is this real encryption or just encoding?

Real encryption: AES-256-GCM with a key derived from your passphrase. Base64 alone is only encoding and can be reversed by anyone.

I forgot the passphrase. Can I get my text back?

No. Nothing is saved on a server, and without the passphrase the text cannot be decrypted.

Why is the output different every time?

A new random salt and IV are used on each run. It is expected, and every version decrypts with the same passphrase.

Is my text sent anywhere?

No. Encryption and decryption run in your browser with the Web Crypto API; nothing is uploaded.

Found a problem or have an idea? Report a problem

Share

You might also like