Free tool

Encrypt a file with a password

Lock any file with a password before you store it in the cloud, put it on a USB stick or send it. It is encrypted on your device: the file and the password are never uploaded.

Mode

Use a long passphrase, four or more random words. Without it, nobody can open the file, you included.

Encrypted on your device. Nothing is uploaded or saved by this site.

How to encrypt a file and open it again

  1. Choose Encrypt, pick the file and type a password twice.
  2. Press Encrypt file. Your browser saves an encrypted copy ending in .lse.
  3. Open the copy here once with Decrypt to check the password, then delete the original if you only want the encrypted one.
  4. To share it, send the .lse file and give the password another way: in person, by phone, or in a different app.

What this file encryption does

The tool uses the Web Crypto API that is built into your browser, with AES in GCM mode, an authenticated mode that checks the data has not been changed (MDN). The file is encrypted in 1 MB pieces, each tied to its place in the file, so a copy that was changed, reordered or cut short fails to open instead of giving you a damaged file.

Your password goes through PBKDF2 with SHA-256, 600,000 rounds and a random salt, the setting OWASP recommends (OWASP). That slows down anyone trying to guess it, but a short or common password can still be guessed. The original file name and type are stored inside the encrypted part.

Only need to send a short message? Encrypt text gives you encrypted text you can paste anywhere.

For photos on your phone, use a vault

Lockspeare is an encrypted photo vault for Android. Photos and videos you move into it leave your gallery and are encrypted on your phone, behind their own PIN or pattern. No account, no ads.

Get it on Google Play

Questions about encrypting files

How do I encrypt a file with a password?

Choose Encrypt, pick the file, type a password twice and press Encrypt file. You get a copy ending in .lse that you can store or send anywhere. To open it, come back to this page, choose Decrypt, pick the .lse file and type the password: you get the original file back, with its name.

Is my file uploaded?

No. The file is encrypted by your browser on your device, with the Web Crypto API built into it, and the encrypted copy is saved straight from your browser. This page makes no network request when you choose a file, encrypt or decrypt.

How strong is the encryption?

The file is encrypted with AES-256 in GCM mode, which also detects any change to the encrypted file. The key comes from your password through PBKDF2-HMAC-SHA256 with 600,000 rounds, the count OWASP recommends, and a random salt. The weak point is the password: use a long passphrase, not a word or a date.

What if I forget the password?

The file can’t be opened. There is no reset and no copy of the password anywhere, because nothing leaves your device. Keep the password somewhere safe, and keep the original until you have checked that the .lse copy opens.

What kinds of files can I encrypt, and how big?

Any kind: documents, PDFs, photos, videos, ZIP files. Files up to 1 GB work; the encrypted copy is held in your browser’s memory while it is saved, so very big files may be slow on a phone.

Can other programs open the .lse file?

No. It is this tool’s own format, so you open it here. The file name is encrypted too, so the .lse copy doesn’t show what the original was called.