Set a password when you save the document

The fastest way to password-protect a Word document is to use the Save As dialog and choose an encryption option. Open the document you want to protect, then go to File > Save As. Choose where you want to save it (your computer, OneDrive, or another location), give it a filename, and before you click Save, look for a Tools button or menu near the bottom of the dialog.

Click Tools, then select General Options (on Windows) or Security Options (on Mac). A small dialog will open with two password fields: one for opening the document and one for modifying it. You only need to fill in the first field — that's the password someone will need to type before they can even open the file. Type your password twice to confirm it, then click OK and complete the save.

From that moment on, anyone who tries to open that file will see a password prompt. Without the correct password, they cannot view or edit the document. This method works in Word 2016, Word 2019, Microsoft 365, and Word Online, though the exact menu locations vary slightly between versions.

Key Takeaways

  • Use File > Save As, click Tools, then General Options (Windows) or Security Options (Mac) to set an opening password.
  • You can set two separate passwords: one to open the document and one to allow editing, or use just the opening password for simplest protection.
  • The password encrypts the file itself, so even if someone copies the file, they cannot read it without the password.
  • If you forget the password, Microsoft cannot recover it — write it down or store it somewhere safe.
  • Password protection works the same way whether you save to your computer, OneDrive, or SharePoint.

The difference between opening and editing passwords

When you open the General Options or Security Options dialog, you see two password fields. The first one — usually labeled "Password to open" — prevents anyone from viewing the document without typing the correct password. The second one — "Password to modify" — lets people open the document but only in read-only mode unless they enter a second password.

Most people only need the opening password. Use it when the document contains sensitive information and you want to keep it completely private. The editing password is useful if you want to share a document with someone but prevent them from making changes — they can read it, but if they want to edit it, they have to know the second password. You can set one, both, or neither, depending on what you need.

Where to find the Tools button in different Word versions

On Windows with Word 2016, 2019, or Microsoft 365, open Save As and look at the bottom left of the dialog. You should see a Tools button with a dropdown arrow next to it. Click it and select General Options.

On Mac with Word 2016 or later, the process is similar but the button is labeled differently. Go to File > Save As, and in the save dialog, look for a button labeled Options or a gear icon. Click it and choose Security Options.

On Word Online (the browser version), the process is different. Click File > Info, then look for Protect Document and select Encrypt with Password. Type your password and confirm it. Word Online will encrypt the file and you will be prompted to read it.

What happens when someone tries to open a password-protected document

When a password-protected Word document is opened, the person sees a dialog box asking for the password before anything else appears — not even the first page of the document. They type the password and click OK. If it is correct, the document opens normally. If it is wrong, they see an error message and can try again.

This happens every single time the document is opened, even if the same person opens it multiple times in one day. Word does not remember the password after you close the file. The person has to enter it again the next time they open the document.

How to change or remove a password later

To change the password on an already-protected document, open the document (you will need to enter the current password), then go to File > Save As. Click Tools > General Options (Windows) or Options > Security Options (Mac). The password fields will be empty or show asterisks. Clear them and type a new password, or leave them blank to remove the password entirely. Click OK and save the file.

If you forget the password, you cannot recover it. Microsoft does not store your password and cannot decrypt the file for you. This is intentional — it means your documents are truly private — but it also means a forgotten password locks you out permanently. Write down your password or store it in a password manager before you close the Save As dialog.

Password protection versus sharing settings in OneDrive or SharePoint

If you save a Word document to OneDrive or SharePoint, you have two separate layers of protection: the document password and the folder or file sharing settings. The password protects the document itself — even if someone gains access to your OneDrive folder, they still cannot open the file without the password. The sharing settings control who can see the file in the first place.

These work together. You might password-protect a document and then share it with a specific person via OneDrive, knowing that only they can access the file and only they can open it if they know the password. Or you might leave sharing open but password-protect the document, so anyone can find it but only people who know the password can read it. The choice depends on what you are protecting against.

Frequently Asked Questions

Can I password-protect a document that is already open?

Yes. Go to File > Save As, choose your location and filename, click Tools > General Options (or Security Options on Mac), set your password, and click OK. The document will save with the new password. The next time you or anyone else opens it, the password will be required.

What if I want to let someone edit the document but not see the original formatting?

Password protection is not the right tool for that. Instead, use File > Info > Protect Document > Mark as Final (which discourages editing but does not prevent it) or convert the document to PDF and password-protect the PDF. Word passwords protect the entire file, not individual parts of it.

Does password protection work if I email the document to someone?

Yes. The password is built into the file itself, not into the email. When the person receives the email and opens the attachment, they will see the password prompt. The password travels with the file no matter how it is sent.

Can I set a password on a document that is already shared with others?

Yes, but be aware that adding a password to a shared document means everyone who has it will need the password to open it from that point forward. Tell them the new password before you save the protected version, or they will be locked out.

Is a Word password as find as a full-disk encryption password?

No. A Word password protects the document file itself, but it is not as strong as operating-system-level encryption. For highly sensitive documents, use both: password-protect the Word file and also encrypt the folder or drive it sits on using your operating system's built-in encryption (BitLocker on Windows, FileVault on Mac).