Lock any file with a password

Lock any file with a password using AES-256 encryption in your browser, and unlock it on the same page. Nothing is uploaded, and the format is open.

Drop your file here or click to choose a file file · processed on this device

Lock a file in three steps

  1. 1

    Choose any file, or one you locked here before

  2. 2

    Type a password, twice when locking

  3. 3

    Download the locked file, or the original back

A lock that stays with the file

Email, cloud folders and USB sticks all pass a file on as it is. Locking it first means only someone with the password can read it, wherever the copy ends up. This page does that with the encryption built into your browser, so the file is never sent to a service to be locked.

Choose any file: a PDF, a spreadsheet, a photo or a ZIP of several. Type a password twice, and a copy named with .locked at the end downloads. To open it, drop the locked file on this same page and type the password. Files up to 256 MB work, because the browser encrypts a file in one piece, in memory.

Send the password a different way from the file, by phone or a message app, so one leaked message does not give away both. The file name stays visible on the locked copy, so rename it first if the name itself is private.

The format

A locked file starts with the eight letters FGLOCK01, then the PBKDF2 round count as four big-endian bytes, a 16-byte salt and a 12-byte nonce. The rest is AES-256-GCM output, tag last, with those 40 bytes as additional data. The key is PBKDF2-HMAC-SHA256 of the password in UTF-8. Inside are the name’s length in two bytes, the name, then the file.

Everything you need

One page for both ways

Drop a file to lock it, or drop a locked one to open it. The page reads which it is from the file itself.

Tampering is caught

The encryption checks itself, so a changed byte fails exactly like a wrong password, and you never get back a quietly damaged file.

The name comes back too

The original file name is sealed inside, so the unlocked copy is named as it was, even if the locked file was renamed.

Nothing uploaded: open the Network panel while it runs and check.

No daily limits or watermarks: free batches take up to 20 images.

Works offline: once the page has loaded, on any current browser.

Frequently asked questions

Is my file or password sent anywhere?

No. The browser's own encryption runs on your device, and neither the file nor the password leaves it. There is no account, so there is nothing stored that could be asked for later.

What if I forget the password?

The file cannot be opened. Nothing here keeps a copy of the password or a way around it, which is what makes the lock worth having. Keep the password in a password manager.

How strong is the lock?

The file is encrypted with AES-256-GCM under a key made from your password by 600,000 rounds of PBKDF2-SHA256, the figure OWASP recommends. A long password of ordinary words is what makes guessing it impractical.

Can someone open it without FileGizmo?

Yes. The layout is written out on this page, so a few lines of Python or Node with any AES-GCM library open it with the password. The file is not tied to this site.

Related guides

Work with files privately and confidentlyPractical, sourced explanations for safer file conversion, sharing, and cleanup.