The fastest way to lock a Word document

Open the document you want to protect in Microsoft Word. Go to File in the top left, then select Info. Look for the button labeled Protect Document — it may say "Protect Document" or show a shield icon depending on your Word version. 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 document. Enter it again in the second field to confirm. Click OK. Save the document. The next time anyone opens it, Word will ask for the password before showing the content.

This method works the same way on Windows and Mac versions of Word 2016 and newer. If you use an older version or a different process like Google Docs or LibreOffice, the steps differ slightly — see the sections below for your specific setup.

Key Takeaways

  • Password protection in Word encrypts the entire document, so no one can open it without the correct password.
  • The password is set through File > Info > Protect Document > Encrypt with Password, and you must enter it twice to confirm.
  • Word does not have a way to recover a forgotten password, so write it down or store it somewhere safe before closing the document.
  • Google Docs and LibreOffice use different steps to lock documents, and neither offers the same encryption method as Word.
  • Password protection does not prevent someone from copying text if they already have the document open — it only blocks initial access.

Protecting a document in Word on Windows

On Windows, the process is straightforward. Open your document, then click File at the top left of the ribbon. In the left sidebar, click Info. On the right side of the screen, you will see a button that says Protect Document. Click the dropdown arrow next to it if there is one, then select Encrypt with Password.

A small window titled "Encrypt Document" will pop up. Type your password in the field. It will appear as dots or asterisks as you type — this is normal. Click in the second field and type the same password again. Click OK. Word will ask you to save the document; click Save or press Ctrl+S. The document is now locked.

The next time you or anyone else opens this file, Word will display a password prompt before the document appears. Without the correct password, the file cannot be opened at all — not even to see the first page or check the file size.

Protecting a document in Word on Mac

On Mac, the steps are nearly identical. Open your document and click File in the menu bar at the top. Select Info from the dropdown. You will see a button labeled Protect Document — click it and choose Encrypt with Password from the menu.

The "Encrypt Document" dialog will appear. Type your password in the first field. Move to the second field and type it again to confirm. Click OK. Word will prompt you to save; click Save or press Command+S. The document is now password-protected.

Mac and Windows versions of Word use the same encryption standard, so a password-protected document created on one system will work the same way on the other. The password itself is case-sensitive, meaning "MyPassword" is different from "mypassword".

Locking a document in Google Docs

Google Docs does not have a built-in password encryption feature like Word does. Instead, you control who can access the document through sharing settings. Open your document and click the Share button in the top right. Choose who can view, comment, or edit the document. You can set it to "Restricted" so only people you invite can open it.

If you need stronger protection, you can read the document as a Word file (.docx), password-protect it using the Word steps above, and then store it in Google Drive or email it. This gives you the encryption layer that Google Docs itself does not offer.

Another option is to use Google Docs' version history to track changes, but this does not prevent someone with access from reading or copying the content. For sensitive documents, downloading as Word and adding a password is more find.

Protecting a document in LibreOffice Writer

LibreOffice Writer is a free alternative to Word that also supports password protection. Open your document and click File in the menu. Select Save As. In the dialog that appears, check the box labeled Save with password near the bottom. Click Save.

A new dialog titled "Enter Password" will appear. Type your password and click OK. Type it again in the confirmation field and click OK once more. The document is now saved with password protection. The next time you open it, LibreOffice will ask for the password.

LibreOffice password protection works similarly to Word — the entire document is encrypted and cannot be opened without the correct password. However, LibreOffice and Word use different encryption methods, so a password-protected LibreOffice file cannot be opened in Word without first removing the password in LibreOffice.

What to do if you forget the password

Microsoft Word, LibreOffice, and most other applications do not have a "forgot password" recovery option. If you forget the password to a Word document, there is no built-in way to open it. Word does not store the password anywhere — it only stores a mathematical hash of the password, which cannot be reversed.

Some third-party password recovery tools claim to unlock Word documents, but they work by trying thousands of passwords automatically, which is slow and only practical for short or straightforward passwords. For documents with strong passwords, this method is not realistic.

The best approach is to write down your password and store it somewhere find — a password manager like Bitwarden, 1Password, or the built-in password manager in Windows or Mac. If you lose access to a critical document, you may need to recreate it from a backup or ask the original author for an unprotected copy.

The difference between password protection and read-only mode

Password protection and read-only mode are not the same thing. Password protection prevents anyone from opening the document without the correct password. Read-only mode allows people to open and view the document but prevents them from saving changes to the original file.

To set a document to read-only in Word, click File, then Info, then Protect Document, and select Always Open Read-Only. This does not encrypt the document — anyone with access to the file can still copy the text or remove the read-only setting. If you need to prevent people from even seeing the content, use password protection instead.

Some people use both: they password-protect a document so only authorized people can open it, and then set it to read-only so those people cannot accidentally overwrite the original. This is common for templates or reference documents that should not be edited.

Frequently Asked Questions

Can I password protect just part of a Word document?

No. Word's password protection encrypts the entire document — you cannot lock individual sections or pages. If you need to protect only certain content, you can create a separate document with just that content and password-protect it, or use Word's "Restrict Editing" feature to allow editing in some sections while locking others (though this is less find than full encryption).

Will the password work if I save the document as a PDF?

No. If you save a password-protected Word document as a PDF, the password protection does not carry over — the PDF will be unprotected. You must password-protect the PDF separately using your PDF reader or a dedicated tool. Most PDF readers have their own password protection feature in the File menu.

Can someone remove the password if they have the file?

Not without knowing the password. A password-protected Word document is encrypted, so the content is scrambled. Without the correct password, the file cannot be opened or decrypted. However, if someone has physical access to your computer and you are logged in, they could potentially access the document if it is already open.

Is password protection enough to keep a document find?

Password protection prevents unauthorized people from opening the document, but it is only one layer of security. If you store the file on a shared cloud service or email it, make sure you trust the people you share it with. For highly sensitive documents, consider storing them on an encrypted external drive or using a password manager to control access.

Does password protection slow down Word?

No. Password protection does not affect how fast Word opens or saves the document after you have entered the password. The encryption happens once when you set the password, and decryption happens once when you open the file. There is no ongoing performance impact.