Back to home

Encrypt and Decrypt Text and Files

Lock a message or a file with a password before you store or send it. Only someone with the same password can open it. Your data never leaves your device.

  1. Choose text or file, and encrypt or decrypt
  2. Enter the password
  3. Run it, then copy or download the result
Loading the tool...

Your files never leave your device

Locking text and files with a password

Encryption scrambles data so that only someone with the right password can read it. Choose Text or File, choose Encrypt or Decrypt, enter a password and run it. The result of encrypting text can be copied, and an encrypted file is downloaded with the .enc extension.

A worked example

To send a contract safely, choose File and Encrypt, select the PDF and type a password of several random words, repeated in the confirmation box. You download an .enc file and email it. Tell the recipient the password by phone or in a message app, not in the same email.

They open this page, choose File and Decrypt, select the .enc file and enter the password. The original file name is restored.

How it works and its limits

The tool uses AES-256-GCM. The key is made from your password with PBKDF2, SHA-256 and 250,000 rounds, and a new random salt is used for every run. GCM also detects changes, so if the data is damaged or the password is wrong, decryption fails instead of giving garbage.

The strength of the result depends on your password, and a short or common one can be guessed. The format is specific to this tool, so other programs cannot open it. If you forget the password, nobody can help you, including this site.

Frequently asked questions

How strong is the encryption?

It uses AES-256-GCM with a key made from your password by PBKDF2 (250,000 rounds, SHA-256) and a random salt for every run.

What if I forget the password?

The data cannot be recovered. Nobody, including this site, can open it without the password.

How do I open an encrypted file?

Choose File and Decrypt, select the .enc file and enter the password. The original file name is restored.

Why does decryption fail?

The password is wrong, or the text or file was changed or damaged after encryption.

Can other programs open it?

The format is specific to this tool, so decrypt it here.

Is my data uploaded?

No. Encryption runs in your browser with the Web Crypto API and nothing is sent anywhere.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D