File Locker
Lock photos, videos, PDFs or any other file with a password. Each one becomes an encrypted .locked file that nobody can open or peek into from a file manager, gallery or another app; only this page and your password turn it back into the original. Everything happens on your device and nothing is uploaded.
- Runs in your browser
- Your input is never uploaded
- No sign-up
- Works offline after first visit
Drop files to lock, or click to choose
Any type and any number: photos, videos, documents, archives. Big files are fine.
- 1Choose filesNothing is uploaded
- 2Pick a passwordType it twice
- 3Keep the .locked filesThen delete the originals
Password
Use a long passphrase, or make one with the password generator.
No password, no file. Nobody can reset or recover a forgotten password, not even us. Write it down somewhere safe.
Options
Locked
Your original files are untouched. Open one .locked file on the Unlock tab to check your password works, then delete the originals yourself (and empty the recycle bin) so only the locked copies are left.
Drop .locked files here, or click to choose
Files locked on this page, on any device. They never leave your device.
Password
Your vault
Locked files kept in this browser on this device.
How to lock a file with a password
- On the Lock tab, drop one or more files (or write a text note) and type a password twice.
- Press Lock files. Each file is encrypted on your device and you get a
.lockedfile back. Download it, or in Chrome and Edge on a computer save them all straight into a folder you pick. - Check that one of the
.lockedfiles opens on the Unlock tab, then delete the originals yourself. A web page is not allowed to delete or hide files on your disk, so this last step is yours. - To see a file again, drop its
.lockedfile on the Unlock tab and enter the password. Photos, videos, music, PDFs and text files are shown right on the page, and you can download the original with its original name.
Ticking Also keep a copy in this browser's vault stores the locked copy inside this browser as well, so you can open it from the Vault tab without finding the file. The vault list only shows "Locked file", the size and the date until you enter the vault password; even the file names are encrypted.
What "locked" means, and what it doesn't
A .locked file is your file scrambled with AES-256 encryption. A file manager, photo gallery, cloud drive or another person with your computer sees only random-looking bytes: no preview, no thumbnail, no readable name inside. Without the password it cannot be turned back, by us or anyone else. It is safe to copy, email or back up anywhere.
- No password reset. The password is never stored or sent anywhere. If it is forgotten, the file is lost for good.
- Unlocked means unprotected. While a file is unlocked on screen, and every copy you download, is an ordinary readable file. Lock the page with Lock now when you are done (it also locks itself after 5 minutes without activity).
- It can't protect against a compromised device. Malware, a keylogger or a malicious browser extension can see what you type and what you unlock.
- The vault lives in this browser on this device only. It does not sync, and clearing this site's data, "Clear browsing data" or uninstalling the browser deletes it. Keep your
.lockedfiles (or download them from the vault) as your real backup. - Sizes and dates are not hidden. Someone can see roughly how big a locked file is and when it was made, just not what it is.
- The originals stay where they were until you delete them. Deleted files can sometimes be recovered from a disk, so for very sensitive files empty the recycle bin and consider your system's secure-erase or full-disk encryption.
The encryption, in plain words
Your password is stretched into a 256-bit key with PBKDF2-SHA256 and 600,000 rounds and a random 16-byte salt. The rounds make each password guess slow, so even a fast computer can only try a few thousand passwords per second instead of billions; a long passphrase is still your best defence. The salt makes every lock different, so two files with the same password don't give the same key (files kept in the vault share the vault's salt so the vault opens with one key).
The file is then encrypted with AES-256-GCM in pieces of 1 MiB, each with its own nonce, so files of several gigabytes never need to fit in memory at once. GCM also adds a 16-byte check to every piece, and each piece knows its own position and whether it is the last, so a wrong password, a single changed byte, pieces swapped around or a cut-off file are all detected: you get a clear error, never a broken file. The original name, type and date are encrypted too. All of it uses your browser's built-in Web Crypto, with no extra libraries.
Common questions
Can I open a .locked file somewhere else?
Only on this page, but on any device and browser: copy the .locked file to your phone or another computer, open this page there and enter the password. The format is described openly, so it is not tied to a server that could disappear; the page also works offline once it has loaded.
Is anything uploaded?
No. Your files, the password and the key never leave your device. You can check in your browser's network tab: locking and unlocking make no requests at all.
How strong should my password be?
Aim for "Strong" on the meter: four or five random words, or 14+ random characters. The password generator makes both. To check that a copied file is identical to the original, compare checksums with the hash generator.
Is there a size limit?
Not one set by us. Locking reads the file in 1 MiB pieces; browsers are fine with several gigabytes on a computer. The vault is limited by the space your browser gives this site (usually a share of your free disk space), shown under the vault list.
Why can't the page just hide or lock the original file?
For your safety, web pages can only read files you pick and save new ones; they can't change, hide or delete files on your disk. That is why you get a separate .locked file and remove the original yourself.
Privacy and browser support
Privacy and processing
Everything you type, paste or open is processed by JavaScript in this browser tab. The tool itself makes no network requests, so your input is never sent to DevToolbox or to anyone else.
Settings and saved work stay in this browser only. The privacy policy lists everything the site stores and lets you delete it.
Browser support
Uses the browser's Web Crypto API (AES-256-GCM), available in every current browser on secure pages. "Save to a folder" needs Chrome or Edge.
After your first visit the site can keep an offline copy, so this page also works without a connection.