Password protection locks your document so only people with the password can open or edit it

Most word processors and document tools let you add a password directly in the save dialog or through a menu option. The steps differ slightly depending on whether you use Microsoft Word, Google Docs, Apple Pages, or another program, but the principle is the same: you set a password when saving, and anyone who opens the file later must enter that password first.

Password protection works best for sensitive files you store locally or share with a small group who know the password. It does not hide the document from someone with physical access to your computer, and it does not encrypt files in transit if you email them — the password only protects the file itself once it is closed.

Key Takeaways

  • Microsoft Word, Google Docs, and Apple Pages all offer built-in password protection through their save or sharing settings.
  • You can set a password to open the document, a password to edit it, or both — choose based on whether you want readers to view only or make changes.
  • Password protection does not work if someone gains access to your computer or email account; it only locks the file itself.
  • Write down or store your password somewhere safe, because most programs cannot recover a forgotten password.

Password protecting a document in Microsoft Word

Open the document you want to protect. Click File in the top left, then select Info. 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 your password, then click OK. You will be asked to enter it again to confirm. After you confirm, save the document. The next time anyone opens this file, they will see a password prompt before the document loads.

If you want to let people view the document but not edit it, use a different approach: click File, then Info, then Protect Document, and choose Restrict Editing instead. This lets you set permissions separately from the password.

Password protecting a document in Google Docs

Google Docs does not have a built-in password feature for the document itself. Instead, you control who can open or edit the file through sharing settings. Click the Share button in the top right, then adjust who has access and what they can do — you can set it to "Viewer" (read-only), "Commenter", or "Editor".

If you need actual password protection, download the document as a Word file or PDF, then password-protect it using Word or another tool. Click File, then Download, then choose Microsoft Word or PDF Document. Once downloaded, follow the Word or PDF password steps below.

Password protecting a document in Apple Pages

Open your document in Pages. Click File in the menu bar, then select Set Password. A dialog will appear asking for a password. Enter your password and a password hint (the hint will show if someone tries to open the file and forgets the password), then click Set Password.

Save the document — Pages will save it with password protection automatically. Anyone who opens this file on a Mac, iPad, or iPhone will need to enter the password first.

Password protecting a PDF file

If your document is already a PDF or you have converted it to PDF, you can password-protect it using free tools or built-in software. On a Mac, open the PDF in Preview, click Tools in the menu bar, then select Encrypt. Enter a password and click Save.

On Windows, you can use Microsoft Word to open a PDF, set a password using the steps above, then save it as a PDF. Alternatively, free online PDF tools like Smallpdf or ILovePDF let you upload a PDF and add password protection, though this means uploading your file to a third-party server.

The difference between opening passwords and editing passwords

Some programs let you set two different passwords: one to open the document and one to edit it. This means you can let people view the file without letting them change it.

In Microsoft Word, use Restrict Editing (found under File > Info > Protect Document) to set an editing password while leaving the document open to read. In Apple Pages, the single password controls both opening and editing — there is no separate option.

For PDFs, most tools let you set a password to open the file and a separate password to edit or print it. Check the password dialog when you set protection to see which options your tool offers.

What to do if you forget the password

Most programs cannot recover a forgotten password — this is intentional, because it keeps the protection secure. If you forget the password to a Word document, Google Doc, or PDF, you will not be able to open it without the password.

The best approach is to store passwords in a password manager like Bitwarden, 1Password, or Dashlane, which remembers them for you. If you do not use a password manager, write the password down and store it somewhere physically safe, separate from the document itself.

If you have already forgotten a password and need the document, your only option is to recreate the file from a backup or ask whoever set the password to provide it again.

Frequently Asked Questions

Can someone crack a password-protected document?

Password protection on documents is not military-grade encryption. Someone with technical knowledge and time could potentially crack a weak password, especially on older file formats. Use a password that is at least 12 characters long and includes numbers, uppercase letters, and symbols to make it harder to guess.

Does password protection work if I email the document?

The password protects the file itself, not the email. Once someone receives the file, they need the password to open it. However, the email itself travels unencrypted unless you use a secure email service, so someone intercepting your email could see that you sent a file — they just cannot open it without the password.

Can I remove a password from a document I created?

Yes. Open the document with the password, then go to the protection settings (File > Info > Protect Document in Word, or File > Set Password in Pages) and remove or clear the password. Save the document, and it will no longer require a password to open.

What if I want to share a document but only let people view it, not edit it?

Use read-only or viewer permissions instead of a password. In Google Docs, set sharing to "Viewer". In Word, use Restrict Editing. In Pages, you can share via iCloud and set permissions. This is easier than a password because people do not need to remember anything — they just cannot edit the file.

Does password protection work on mobile devices?

Yes, if you open a password-protected document on an iPhone, iPad, or Android phone using the native app (Word, Pages, Google Docs), you will be prompted for the password. The protection works the same way as on a computer.