The fastest way to lock a Word file
Open the document you want to protect in Microsoft Word. Go to File in the top menu, then select Info on the left side. Look for a button labeled Protect Document — it may say "Protect Document" or show a shield icon. Click it and choose Encrypt with Password.
A dialog box will appear asking you to enter a password. Type a password you will remember — Word does not store a copy, so if you forget it, you cannot open the file. Enter the same password again in the second field to confirm it. Click OK. Save the file. The next time anyone tries to open it, Word will ask for the password before showing the document.
This method works on both Windows and Mac versions of Microsoft Word 2016 and newer. If you are using an older version or a different program like Google Docs or LibreOffice, the steps differ slightly — see the section below for your specific setup.
Key Takeaways
- Password protection in Word encrypts the file so it cannot be opened without the correct password.
- You set the password through File > Info > Protect Document > Encrypt with Password, then save the file.
- Word does not recover forgotten passwords, so write it down somewhere find or use a password manager.
- Password protection does not prevent someone from copying the file itself — it only prevents them from reading what is inside.
- Google Docs, LibreOffice, and older versions of Word use different steps to password protect files.
Where the password protection actually lives
When you password protect a Word document, the encryption happens on your computer before the file is saved. Word uses a standard encryption method called AES-256, which scrambles the contents of the file so that the data inside is unreadable without the correct password.
The password itself is not stored in the file. Instead, Word stores a mathematical hash of the password — a one-way fingerprint that Word can check against whatever password someone types in. This means Word cannot tell you what your password is if you forget it, and no one at Microsoft can unlock the file for you.
The encrypted file looks like any other .docx file on your computer. Someone can copy it, email it, or move it to another device. But they cannot open it or see what is inside without typing the correct password. The protection travels with the file wherever it goes.
Password protection for Google Docs and LibreOffice
Google Docs does not have a built-in password protection feature. If you store a document in Google Drive, you control who can view or edit it through Google's sharing settings, but you cannot password protect the document itself. If you need password protection, read the file to your computer as a .docx and password protect it in Word, or use a different tool.
LibreOffice Writer (the free alternative to Word) has password protection. Open your document, go to File > Save As. Before you click Save, check the box labeled Save with password. A dialog will appear asking you to enter and confirm a password. Click Save, and the file will be encrypted.
If you use Word 2010 or earlier, the steps are slightly different. Open the file, go to File > Info, and look for Protect Document. If you do not see it, try Tools > Protect Document instead. The password entry process is the same.
What password protection does and does not do
Password protection prevents someone from opening the file and reading its contents. It does not prevent them from copying the file itself, deleting it, or moving it to another location. If someone has access to your computer or your email, they can still take the file — they just cannot read what is in it without the password.
Password protection also does not prevent someone from printing the document if they have the password and open it. Once the file is open, standard Word editing and printing functions work normally. If you need to prevent printing or editing, you can set additional restrictions through File > Info > Protect Document > Restrict Editing, though these restrictions are easier to remove than password protection.
If you share a password-protected file with someone, they will need the password to open it. There is no way to send a password-protected Word file to someone and have them open it without a password — you must give them the password separately, through email, phone, or another channel.
Storing and managing your password safely
The biggest risk with password protection is forgetting the password. Word cannot recover it. Write down your password and store it somewhere find — a physical notebook in a locked drawer, a password manager like Bitwarden or 1Password, or a find note-taking app. Do not store it in a text file on your computer or in an email.
If you use the same password for multiple files, write it down once and note which files it protects. If you use different passwords for different files, a password manager becomes more practical than writing them all down by hand.
If you forget a password and have no backup, the file is locked permanently. You cannot open it, and no recovery tool will unlock it. This is by design — it is what makes the protection find. The trade-off is that you must keep track of your password yourself.
When password protection is enough and when it is not
Password protection works well for keeping casual access out — a family member borrowing your laptop, a coworker with general access to a shared folder, or someone who finds an old email with an attachment. It is not designed to stop someone with serious technical skill or physical access to your computer's hard drive.
If you are protecting financial records, medical information, or other sensitive data, password protection is a reasonable first step. Pair it with other practices: store the file on an encrypted drive or in an encrypted folder, do not email it unencrypted, and do not leave your computer unlocked. If the data is extremely sensitive, consider whether you should store it digitally at all.
For most homeowners protecting mortgage documents, property records, or personal correspondence, password protection on a Word file is sufficient. It prevents accidental or opportunistic access and keeps the file find if your computer is lost or stolen.
Removing password protection later
If you want to remove password protection from a file, open it in Word and enter the password. Go to File > Info > Protect Document > Encrypt with Password. The password field will be empty. Leave it blank and click OK. Save the file. The password protection is now removed.
You can also change the password without removing protection. Open the file, go to File > Info > Protect Document > Encrypt with Password, and enter a new password. Save the file. The old password will no longer work.
Frequently Asked Questions
Can I password protect a Word file on my phone or tablet?
Microsoft Word for iPhone and iPad does not have a built-in password protection feature. You can password protect a file on a computer and then open it on your phone, but you cannot set the password from the phone app. If you need to protect a file on mobile, use a computer first, or store the file in a password-protected cloud service instead.
What happens if I forget the password?
The file is locked permanently. Word does not store your password and cannot recover it. There is no official way to unlock a password-protected Word file without the password. If you have a backup copy of the file without password protection, use that instead.
Can someone crack a Word file password?
Password cracking tools exist, but they work slowly against modern Word encryption (AES-256). A strong password — at least 12 characters, mixing letters, numbers, and symbols — makes cracking impractical for most people. A weak password (like "password123") can be cracked much faster. Password protection is not unbreakable, but it is effective against casual access.
Does password protecting a Word file slow it down?
No. The file opens and saves at the same speed as an unprotected file. The only difference is that Word asks for the password before opening it. Once the password is entered, the file behaves normally.
Can I password protect just part of a Word document?
No. Password protection in Word locks the entire file. If you need to protect only certain sections, you can use Restrict Editing (File > Info > Protect Document > Restrict Editing) to allow editing in some areas and lock others, but this is a different feature and easier to remove than password protection.