How to Password Protect a Word Document (Windows, Mac & Online)

Adding a password to a Word document is one of the most straightforward ways to keep sensitive information out of the wrong hands. Whether you're protecting a contract, personal notes, or a confidential report, Microsoft Word has built-in encryption tools that work across platforms — though the exact steps and what they actually protect vary depending on your setup.

What "Password Protecting" a Word Document Actually Means

There's an important distinction worth understanding before you start: Word offers two different types of password protection, and they don't do the same thing.

  • Encrypt with Password — This locks the entire file. Without the correct password, no one can open the document at all. The contents are encrypted using AES-128 or AES-256 depending on the Office version, meaning the data itself is scrambled, not just hidden behind a prompt.
  • Restrict Editing — This allows the document to be opened and read by anyone, but limits what changes can be made. Think of it as a permissions layer rather than a security lock.

Most people searching for "password protect a Word document" want the first option — full encryption that prevents unauthorized access entirely.

How to Add a Password in Microsoft Word (Windows)

The process is quick once you know where to look:

  1. Open the document you want to protect
  2. Click FileInfo
  3. Select Protect Document
  4. Choose Encrypt with Password
  5. Enter a password, click OK, re-enter it to confirm, then save the file

From this point forward, anyone who tries to open the .docx file will be prompted for the password before anything is displayed.

⚠️ Critical caveat: Microsoft does not store or recover your password. If you forget it, the document is effectively inaccessible. There's no "reset password" option built into Word.

How to Password Protect a Word Document on Mac

The steps differ slightly on macOS:

  1. Open the document in Microsoft Word for Mac
  2. Go to Review in the top menu
  3. Click Protect Document
  4. Under Security, enter a password in the Password (optional) field
  5. Re-enter to confirm and click OK, then save

Alternatively, you can go to FilePasswords in some versions of Word for Mac, depending on which version of Office you're running.

Protecting a Word Document in Word for the Web (Office 365 Online)

This is where things get more limited. Word for the Web does not support adding or changing document passwords directly. If you try to open an already-encrypted document in the browser version, you'll be prompted for the password — but the browser editor can't create or modify that encryption itself.

To set a password on a file you're working on in the browser, you'd need to download it and use the desktop app.

Factors That Affect How This Works for You

The experience isn't identical for every user. Several variables shape what you'll actually encounter:

FactorWhat It Affects
Office version (2016, 2019, 2021, 365)Encryption strength, available menu options
Operating system (Windows vs macOS)Menu locations, UI differences
File format (.docx vs .doc)Older .doc format uses weaker encryption
Word for Web vs desktop appWeb version can't set passwords
Shared/cloud documentsOneDrive sharing permissions are separate from file encryption

The file format point is worth dwelling on. If you save as the older .doc format (Word 97–2003 compatible), the encryption applied is significantly weaker than what .docx files use. For anyone serious about document security, saving in the modern .docx format matters.

What Password Protection Doesn't Cover 🔒

Understanding the limits helps you make better decisions about how to use this feature:

  • OneDrive or SharePoint sharing settings are entirely separate. A password-protected file shared via a link can still be downloaded and then brute-forced offline if the password is weak.
  • Metadata — document properties like the author name and revision history may still be partially visible to some tools even on an encrypted file.
  • Screenshots and printing — once someone has legitimately opened a document, restriction passwords on editing don't prevent them from copying content manually.
  • Third-party recovery tools exist specifically to crack weak Word passwords, particularly on older file formats.

The built-in Word password encryption is solid for everyday privacy and casual access control. It's not designed to withstand sophisticated, targeted attacks — especially if a weak password is used.

Choosing a Password That Actually Works

The strength of Word's encryption is only as good as the password protecting it. A few general principles:

  • Longer is stronger — 12+ characters outperforms complex-but-short passwords
  • Avoid predictable substitutions — "P@ssw0rd" is immediately tested by any cracking tool
  • Passphrases work well — a string of unrelated words is both memorable and harder to crack
  • Don't reuse passwords from other accounts

When Editing Restrictions Make Sense Instead

The Restrict Editing option (found in the same Protect Document menu) is useful in different scenarios — for example, when you need to distribute a document for review but want to prevent structural changes, or when you're sending a form and want respondents to fill in specific fields without altering the layout. This isn't encryption; it's workflow control.

Some users combine both: encrypting the file and also setting editing restrictions, so that even after a recipient enters the password to open it, their ability to modify it is still controlled.

The Gap That Depends on Your Situation

How much protection you actually need — and which combination of Word's security features fits your workflow — comes down to specifics that only you know: what kind of document you're protecting, who you're protecting it from, how it's being shared, and what version of Word you're working with. The tools are straightforward; the right configuration depends on your own context.