← All toolsDeveloper

Text encryption

How to encrypt text

  1. Type or paste the text you want to protect.
  2. Enter a password of at least 12 characters and repeat it.
  3. Press Encrypt text. The result is a block of JSON containing the encrypted data.
  4. Copy it or press Download result to save it as a file. Keep the password separately — it cannot be recovered.

How to decrypt text

  1. Paste the complete encrypted JSON, or open the saved .json file.
  2. Enter the password and press Decrypt text.
  3. If the password is correct, the original text appears. If it is wrong, or the data was changed, decryption fails.

How the encryption works

The tool uses the Web Crypto API that is built into your browser:

Everything happens on your device. Neither your text nor your password is sent anywhere.

Choosing a strong password

The encryption is only as strong as the password. Use a long passphrase of several random words, or a random password from the Password generator, and never reuse a password from another account. Share the password through a different channel than the encrypted text — for example, send the file by email and tell the password by phone.

Frequently asked questions

I forgot the password. Can you recover my text?

No. Nobody can — that is the point of encryption. Without the correct password the text cannot be decrypted.

How much text can I encrypt?

Up to 1 MB of text, which is roughly 500 pages of plain text.

Can other programs decrypt the result?

The format uses standard algorithms, so a developer can decrypt it with any crypto library using the parameters stored in the JSON. The easiest way is to open the file on this page again.