How to Add a Password to a Google Docs Document

Unlike Microsoft Word, which has a built-in feature to encrypt individual files with a custom password, Google Docs operates entirely in the cloud. Because your documents are tied directly to your Google Account, Google assumes that if someone has logged into your account, they already have permission to view your files. Therefore, Google Docs does not have a native “add password” button for individual documents. However, if you need to share a document containing sensitive information or want an extra layer of security, there are effective workarounds to protect your data.

Method 1: Control Access Using Email Permissions (The Google Way)

Instead of using a typed password, Google’s security model relies on account authentication. You can lock a document so that only specific people can open it, requiring them to verify their identity by logging into their Google account.

  1. Open the Google Doc you want to protect.
  2. Click the blue Share button in the top right corner.
  3. Under “General access,” ensure the setting is changed to Restricted. (Do not use “Anyone with the link”).
  4. In the “Add people and groups” bar at the top, type the exact email addresses of the people you want to allow in.
  5. Select their permission level (Viewer, Commenter, or Editor).
  6. Click Send.

Now, even if someone steals the exact URL link to your document, they will be blocked by a “Request Access” screen unless they are logged into one of the specific email accounts you approved. Their Google password is the document password.

Method 2: Export as a Password-Protected PDF (For Sharing)

If you need to send a sensitive document to someone outside of the Google ecosystem (like a client or an accountant), you can export the Google Doc as a PDF and lock it using a third-party tool.

  1. In your Google Doc, click File > Download > PDF Document (.pdf).
  2. The file will download to your computer.
  3. You must now use a PDF editor to add the password. If you use a Mac, open the PDF in the built-in Preview app, click File > Export, check the Encrypt box, and type a password.
  4. If you use Windows, you will need a tool like Adobe Acrobat or a secure online service like Adobe’s free “Protect PDF” web tool to upload the file, assign a password, and re-download it.
  5. You can now safely email the encrypted PDF.

Method 3: Encrypt Text Inside the Document (Using Add-ons)

If you absolutely must have password protection inside the Google Docs interface (for example, keeping a list of passwords or financial codes in a document you frequently edit), you can use a verified third-party Google Workspace Add-on.

  1. Open your Google Doc.
  2. Click Extensions > Add-ons > Get add-ons.
  3. In the Google Workspace Marketplace, search for “DocSecrets” (a popular, highly-rated encryption tool).
  4. Click Install and grant the necessary permissions.
  5. Once installed, click Extensions > DocSecrets > Open.
  6. A sidebar will appear on the right side of your screen. You will be prompted to create a custom passphrase.
  7. You can now type sensitive text into the DocSecrets sidebar. The add-on will encrypt the text and insert it into your document as randomized, unreadable code or hidden text blocks.
  8. To read the hidden text, you must open the document, open the sidebar, and type your specific passphrase.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.