Password Protect a File on Windows 10 and 11: Five Methods That Work

Windows has no right-click option that puts a password on one file. This page shows five dependable routes, from a Word menu to an encrypted archive, plus the mistakes that lock owners out.

NewSoftwares.net editorial teamPublished: November 2026Last verified: November 20267 min read
Quick answer

To password protect a file on Windows, use the document’s own Encrypt with Password option for Office files, or put any file inside a 7-Zip archive with AES-256 and a password. File Explorer alone cannot do it. This page is part of our full guide to hiding files on a PC.

Document with a padlock and a password box showing six dots, illustrating password protection for a single file
At a glance
Applies toWindows 11 and Windows 10, Word and any file type
Time needed3 to 6 minutes per file
DifficultyEasy
CostFree with 7-Zip or Word
Needs admin or internetNeither, once the tool is installed
Last verifiedNovember 2026

Which Method Fits Which Type of File?

Match the method to the file before you start, because Office documents have a built-in option and everything else needs an archive or a locker. Lockers also suit a folder of files you open daily, which the free methods section of the main guide covers.

Password options by file type on Windows
File typeMethodTimeHides the file name
Word documentFile, Info, Protect Document, Encrypt with Password2 minNo
Any single file7-Zip archive in 7z format3 minYes, with Encrypt file names
Any single file, wide sharing7-Zip ZIP with AES-2563 minNo
A folder opened dailyLocker app with its own sign-in10 min setupYes, hidden from File Explorer
Everything on the driveBitLocker on Pro editionsVariesNot applicable
VerdictUse the document option for Office filesUse 7z for the rest

How Do You Password Protect a Word Document?

Word has the option built in: open the file, choose File, then Info, then Protect Document, then Encrypt with Password, type the password twice and save. Microsoft documents this path for Word on Windows. The password takes effect only after the file is saved and closed.

Word menu path: File, Info, Protect Document, Encrypt with PasswordFileInfoProtect DocumentEncrypt with Password
  1. Open the finished documentMake edits first, because every later save keeps the password.
  2. Choose Encrypt with PasswordFollow File, Info, Protect Document, Encrypt with Password.
  3. Enter and confirmPasswords are case-sensitive, so note the capital letters you use.
  4. Save and closeClose Word completely, which makes the setting stick.
Tip

Open the file again straight away. A prompt asking for the password proves the lock exists; a document that opens with no prompt means the save did not complete.

How Do You Password Protect Any File With 7-Zip?

Install 7-Zip, select the file, choose 7-Zip, Add to archive, pick the 7z format, enter a password and choose AES-256. Tick Encrypt file names so the archive listing stays private. The 7-Zip website lists AES-256 for both the 7z and ZIP formats.

7z a -p -mhe=on secret.7z "C:\Users\Public\Documents\Report.xlsx"

The command above does the same job from a terminal: -p asks for a password and -mhe=on encrypts the file names inside a 7z archive. Run it in a folder where 7z.exe is on your path.

Why does a protected archive still show its file names?

A ZIP archive keeps its file names readable even when the contents are encrypted, and only the 7z format offers Encrypt file names. A visible name such as “tax-2025.xlsx” tells a snooper what to chase, so choose 7z when the names themselves are private.

Folder Lock 10 sign-in window with email and password boxes over a list of lockers
A locker app asks for its own sign-in before showing files.

The Open-Before-Delete Rule

Never remove the unlocked original until the locked version has opened successfully with the password you typed. The rule has four moves and costs one minute.

1. Copy

Duplicate the file to a work folder.

2. Lock

Add the password to the copy.

3. Reopen

Open it with the password.

4. Remove

Delete the original and empty the Recycle Bin.

What happens when you forget a file password?

Assume the file is gone for good, because 7-Zip documents no reset and Microsoft’s Word page only suggests keeping a backup of the password. Write the password into a password manager at the moment you set it, and test the stored entry once.

Common mistake

Typing the password once while the keyboard is on the wrong layout or with Caps Lock on. Retype it into the confirm box and watch for a mismatch warning.

When a Locker App Beats Single-File Passwords

Passwords per file become unmanageable past a dozen files. A locker keeps the whole set behind one sign-in; Folder Lock 10 on Windows is our option, with a free tier of 1 GB shown on its official page. It works on 64-bit Windows 10 and 11 only.

For a comparison that includes exit paths and recovery, read about how file password lockers differ. For a folder you hid and cannot find, see the hidden-file recovery page.

Guides such as this Windows 2025 password guide list other approaches, including NTFS permissions.

Questions About Password Protecting a File

How do I password protect a Word document?

Open the document, choose File, Info, Protect Document, then Encrypt with Password. Type a password, confirm it and save the file. Microsoft’s page for Word notes that passwords are case-sensitive. Reopen the saved file to confirm the prompt appears, and keep a stored copy of the password.

Can File Explorer put a password on a ZIP file?

Not by itself. Microsoft Q&A answers state that Compress to ZIP file in File Explorer sets no password. Use 7-Zip or similar software to create an encrypted archive, and choose the 7z format with Encrypt file names ticked if you also want the file names hidden.

Does a password-protected archive hide the file names?

Only in the 7z format with Encrypt file names ticked. A ZIP archive protects the contents yet leaves the names readable, which can reveal what you are hiding. Check by opening the archive on another account and looking at the listing before you rely on it.

What if I forget the password for a protected file?

Plan as if no recovery exists. 7-Zip documents no password reset, and Microsoft’s Word page only suggests keeping a backup of the password somewhere secure. Store each password in a password manager when you create the file, and test it once before deleting the original.

Is password protecting a file the same as encrypting it?

Not always. Word encryption and a 7-Zip AES-256 archive both scramble the contents, so the password acts as a key. A simple lock that only asks for a password before showing a file, without scrambling it, gives much weaker protection. Pick tools that state their encryption.