File Encrypter

Lock any file, a document, a photo or an archive, behind a password, scrambled with AES-256 so that without that password there is nothing readable left in it. The file is never uploaded, so the only size limit is what your browser can hold.

How to use it

Choose a file, set a password, and download an encrypted version.

  1. Choose or drop your file Any type works — documents, photos, archives, video.
  2. Set a strong password A passphrase of several random words is both stronger and easier to pass on than a short complex string.
  3. Press encrypt The encrypted file downloads with a .olenc extension. The original is untouched.
Full instructions
Drop a file here, or click to choose Any type. Encrypted files come back with a .olenc extension.
In depth

Locking a file with a password before it leaves your hands

Password-protecting a file before storing it online or sending it to someone means that anyone who gets hold of the file without the password sees nothing useful. This article explains how the tool works, what the output looks like, how to get the original back, and what the practical limits are.

Screenshot: Password-protecting a file
Password-protecting a file as it appears when the page opens.

Who reaches for this and why

The usual reason is that you want to store a file somewhere you do not fully control. A cloud drive, an email attachment, a shared folder at work. The file itself might be harmless, but you would rather not leave it readable to anyone who stumbles across it or anyone who has access to the storage provider.

A second common case is sending something sensitive to someone who does not have a secure channel set up. You encrypt the file, send it one way, and pass the password a different way. Even if the file is intercepted, it is useless without the password. Tax documents, contracts, medical records, and credential files are the kinds of things people protect this way.

Loading a file and choosing a direction

The drop zone accepts any file type. Drag a file onto it or click to open a file picker. Once a file is loaded, its name and size appear in a confirmation bar below the zone. The What to do dropdown in the settings panel has two options: Encrypt a file and Decrypt a .olenc file. If you drop in a file whose name ends in .olenc, the mode switches to decrypt automatically so you do not need to change it by hand.

There is no limit on what kind of file you can encrypt. Documents, photos, archives, videos, and database exports all work the same way. The tool reads the file into your browser tab, processes it there, and hands back the result as a download. Nothing crosses any network.

Picking a good password

The Password field is the only thing standing between your file and anyone who has the encrypted copy. The tool requires at least eight characters, but longer is better. A passphrase of four or five unrelated words is both stronger and easier to share than a short string full of symbols. Something like correct horse battery staple is a classic example of the idea.

The Show button next to the field toggles between hidden and visible text so you can check what you typed. There is no confirmation field, so look carefully before you press the button. If you mistype the password during encryption, the file is locked with whatever you actually typed, and you will need to remember that exact mistake to open it again.

What happens when you encrypt

Pressing Encrypt and download starts a two-stage process. First, the tool derives a cryptographic key from your password. This step uses PBKDF2 with SHA-256 and runs 600,000 rounds of hashing, which takes a second or two on purpose. That deliberate slowness means an attacker who tries to guess your password by brute force has to spend the same time on every single guess, which makes short-password attacks far more expensive.

Second, the tool encrypts the file contents with AES-256 in GCM mode. AES-256 is the same algorithm used to protect classified information in many governments. GCM mode adds authentication, which means that if anyone changes even a single byte of the encrypted file, decryption will fail with an error rather than silently producing a corrupted result.

The output is a file with the same name plus a .olenc extension. The original file on your disk is not touched. A fresh random salt and a fresh random initialisation vector are generated for every encryption, so encrypting the same file with the same password twice produces different output. This is important because reusing those values with GCM would be a serious weakness.

Decrypting to get the original back

Drop the .olenc file onto the same page. The mode switches to Decrypt a .olenc file. Enter the password and press Decrypt and download. The tool reads the container, extracts the salt and initialisation vector, derives the same key from your password, and decrypts the contents. If everything checks out, the original file downloads with its original name restored.

If the password is wrong or the file has been altered, you get an error message. GCM cannot tell you which of those two things happened because both look the same to the authentication check. If you are sure the password is right, the file may have been damaged in transit. If you are sure the file is intact, double-check the password for extra spaces or wrong case.

The container format and its limits

The .olenc container is specific to this tool. It stores a short header, the salt, the initialisation vector, the original file name, and then the encrypted contents. You cannot open a .olenc file with other encryption programs because they do not know this layout. To share an encrypted file, both sides need to use this same page.

The practical size limit is about 300 MB. The whole file and its encrypted copy both sit in your browser tab at the same time, so very large files will exhaust the available memory. If you need to encrypt something bigger, a desktop tool is the right choice. The tool checks the size before it starts and gives you a clear message rather than crashing the tab.

A practical workflow for cloud storage

Say you keep tax returns on a cloud drive. Each year you have a folder of scanned documents. Before uploading them, drop each file onto this page, set a strong password that you keep in your password manager, and upload the .olenc versions instead. The cloud provider stores bytes it cannot read. When you need a document, download the .olenc file, decrypt it here, and you have the original.

This approach lets you keep the convenience of cloud storage without trusting the provider with your plaintext. It also protects you if someone gains access to your cloud account, because the files themselves are still locked. The one risk is losing the password. There is no reset, no recovery question, and no backdoor. If the password is gone, the files are gone.

Mistakes that lose files

A few errors come up often enough to warn about.

  • Deleting the original before testing. Always decrypt the .olenc file once to confirm it works before you remove the source. A typo in the password means the original is your only copy.
  • Sending the password alongside the file. If the encrypted file travels by email, send the password by a different channel, a phone call or a messaging app. Both in the same email defeats the purpose.
  • Forgetting the password entirely. There is no support desk, no master key, and no way around it. Store the password in a manager or write it down somewhere safe.
  • Renaming the .olenc file. You can rename it freely because the original file name is stored inside the container. Decryption restores the real name regardless of what the outer file is called.

When a different tool is the better choice

If you need to encrypt a short message rather than a file, the text encrypter on this site does the same job but produces a block of text you can paste into an email or a chat. If you need to protect a file larger than 300 MB, use a desktop program that can stream the data rather than holding it all in memory. And if you need the recipient to open the file without visiting a web page, consider an archive format that supports password protection, though those often use weaker encryption by default.

This tool is best suited for files up to a few hundred megabytes that you want locked quickly, without installing anything, and without trusting a third-party server to handle the plaintext.

Your file never leaves your device

The entire process, reading the file, deriving the key, encrypting, and assembling the container, happens inside your browser tab. No part of the file, the password, or the encrypted output is sent to any server. You can confirm this by turning off your internet connection after the page loads; the tool works exactly as before. That is the reason it can handle large files without any quota and the reason there is no account to create.

Help

Password-protecting a file

Choose a file, set a password, and download an encrypted version. Anyone with the file but not the password sees only random bytes. To read it again, drop the encrypted file back in with the same password.

Choose or drop your file

Any type works — documents, photos, archives, video.

Set a strong password

A passphrase of several random words is both stronger and easier to pass on than a short complex string.

Press encrypt

The encrypted file downloads with a .olenc extension. The original is untouched.

To decrypt, drop the .olenc file back in

The mode switches automatically and the original file name is restored.

Why this can handle large files when upload-based tools cannot

Sites that encrypt files usually upload them to a server, which is why they impose size limits, require accounts, and ask you to trust them with the plaintext on the way through. Here the file is read into your browser's memory, encrypted there, and handed straight back as a download — it never touches a network. That removes the quota and the trust problem in one go. The remaining limit is your own device: the whole file and its encrypted copy sit in memory at once, so very large files can exhaust the tab. Around 300 MB is a practical ceiling on a typical machine and the tool refuses politely above that rather than crashing. The original file name is stored inside the encrypted container, so it comes back correctly on decryption even if you rename the .olenc file.

Good to know

Encrypt before uploading to cloud storage

This is the useful pattern — the provider stores bytes it cannot read, and you keep the key.

Keep the original until you have tested

Decrypt the file once to confirm it works before deleting anything.

Tampering is detected

If a single byte of the encrypted file changes in transit, decryption fails with an error rather than producing a corrupted file.

The file name is not hidden

It is stored inside the container so it can be restored, but it is encrypted along with everything else. The .olenc name you download, however, is visible — rename it if the name itself is sensitive.

Common questions

How do I password-protect a file?
Drop it here, type a password and press encrypt. You get a .olenc file that is unreadable without that password.
Is my file uploaded anywhere?
No. It is read into your browser, encrypted there, and downloaded straight back. Nothing crosses the network.
What size of file can I encrypt?
Up to about 300 MB. The limit is your browser's memory, since the whole file is held at once.
What encryption is used?
AES-256-GCM, with the key derived from your password by PBKDF2-SHA256 at 600,000 iterations and a fresh random salt each time.
Can I open a .olenc file with another program?
No — it is a simple container specific to this tool. Decrypt it here to get your original file back.
What if I forget the password?
The file cannot be recovered by anyone. There is no reset and no backdoor.