BlogNotes apps and AIgoogle docs Β· sharing Β· passcode

How to password-protect a Google Doc, and what to do since you can't

You can't password-protect a Google Doc itself. What Restricted sharing, expiry dates, visitor PINs and a PDF or Word copy with a password do instead.

Prashant Shaw

Founder, Sumibako

7 min read

You want to send one Google Doc to one person, with a password on it. Reasonable. Google Docs does not have one. Google's page on sharing a file covers who can open it, link settings, expiry dates and stopping downloads, and the word "password" does not appear on it once. I looked twice, in case it was hiding.

The short answer: you cannot put a password on a Google Doc itself. You can limit it to people's Google Accounts, give a work account's access an end date, send visitors a PIN on Google Workspace, or download it and put a password on the copy, as a PDF or a Word file. Here is what each one does, when it fits, and what to use when none of them does. Everything was checked against Google's, Apple's and Microsoft's own help pages on 28 November 2026. I make Sumibako, which comes up near the end, so read that part with the usual squint.

Ways to protect a Google Doc you send to one person, compared on whether the reader needs no account, whether there is a second key besides the link, and whether access ends on a date

πŸ”’ Restricted: a real lock, for people with a Google Account

The default, Restricted, is the honest answer to only this person: "Only people who have been given access can open the file." You add their email address, they sign in with it, and nobody else gets in, forwarded link or not.

On a work or school account you can also give that access an end date. Next to the person's name in the Share menu there is Add expiration, where you "Select a date within one year." Google's tip underneath is the catch: "This is available for work and school accounts." On a personal Gmail account, access lasts until you remove it by hand.

The other catch is the account itself. Your reader needs a Google Account at the address you shared with. Most people have one; the client whose whole company runs on Outlook may not have one at that address, and is now creating one to read your proposal.

🌐 Anyone with the link: a link, not a lock

Switch General access to Anyone with the link and "Anyone on the internet who has the link can open the file without signing in to a Google Account." That is the whole of the protection: the link is the key, and whoever it is forwarded to is in. Google adds, cheerfully, that "People who aren't signed in to a Google Account will show up as anonymous animals." I find this charming, and I would still rather know which animal read my pricing.

The expiry dates above sit next to a person's name, so they are for people you added, not for the link. A link stays open until you set it back to Restricted.

🎫 Visitors: no Google Account, if your company allows it

The closest thing Google has to a password is visitor sharing, on Google Workspace. "If your organization allows, you can invite people who don’t have Google Accounts to collaborate on your Drive files and folders as visitors." They get "an email invitation to collaborate and a PIN to verify their identity", and "Visitors can edit, comment on, or view your document for 7 days after they verify their email address." After that they verify again from the same email.

It is a good feature, and it has two conditions: you sign in with a work or school account, and your organization's admin has turned visitor sharing on. On a personal account it is not there.

NOTE

Two settings sound like locks and are not. The Share menu can stop viewers and commenters from downloading, printing and copying, which decides what people who are already in can do, not who gets in. And File, then Lock, which some guides call locking a Google Doc, belongs to approvals: "Edits, comments and suggestions can't be added to locked documents", but reading is untouched, and Google says the feature "is not available for personal (@gmail.com) or standard Workspace accounts."

πŸ“„ A PDF or a Word file with a password: a real password, on a copy

If what you want is a password, download the doc and lock the copy.

  • On a Mac, choose File, then Download, then PDF in Docs. Open it in Preview, choose File, then Export, then Permissions, and tick Require Password To Open Document. Apple's guide says it plainly: "You can protect a PDF with a password that must be entered to open the file."
  • On Windows, choose File, then Download in Docs, and pick the Word format (.docx). Open it in Word and, as Microsoft's page puts it, "Go to File > Info > Protect Document > Encrypt with Password" Save the file again so the password takes, and keep the password somewhere safe: Microsoft's own advice is "keep a copy in a safe place."

That works, with no accounts anywhere. It is also a file: it cannot be taken back once sent, it does not change when you fix a typo in the doc, and it lives in their downloads folder and their email forever. For a contract, that is a feature. For a proposal you will revise twice before Friday, it is three files called final.

πŸ” A passcode page: one link, one code, no account

This is the one I built, for exactly the proposal-you-will-revise case. Google Docs can hand the document over as Markdown: "You can export the document as Markdown for use in another application." Choose File, then Download, then Markdown (.md). Then:

1️⃣ In Sumibako, open Settings, then Import, and drop the .md file in. It becomes a page.

2️⃣ Open the page's Publish menu. Under Who can open the link, choose Passcode; under Link expires, choose 7 days, 30 days or Never; then Publish with passcode.

3️⃣ Copy link and passcode, and send the two by different routes: the link by email, the code by text.

If you live in a terminal, npx sumibako publish proposal.md --passcode --expires 7d does all three, and so does asking a coding agent that has Sumibako set up.

No terminal and no agent? The password-protected link tool does all three in a browser tab: drop the .md file, press Publish with passcode, and copy the link and the code.

Claude Code sends a plan behind a passcode, and the client opens it on a phone with no account. 24 seconds

What your reader gets is a lock screen that shows nothing, not even the title, until they type the six-character code, in capitals or small, with or without the dash. No account. What you get:

  • The link and the code are apart, so a forwarded email alone opens nothing.
  • It ends, after 7 or 30 days if you chose that, and the page goes private by itself.
  • Guessing is stopped. Ten wrong codes in fifteen minutes stops all guessing on that page for the rest of the window, and you get an email.
  • You can change the code and keep the link; anyone who opened it with the old code is shut out at once.
  • The same link after a revision. Fix the typo on the page and the reader sees the fixed version.
  • Pictures and files stop with the page, at addresses that stop working when the link ends or you take the page down.

What it does not do: let the reader edit or comment. It is for reading. It is not end-to-end encryption, and it cannot stop someone copying what they can read; nothing can. Passcodes are on the free plan.

❓ Quick answers

Can you put a password on a Google Doc? Not on the doc itself. Google Docs has no password setting; the nearest things are Restricted sharing, visitor PINs on Workspace, and a password on a downloaded PDF or Word copy.

Can a Google Doc link expire? Not the link. On a work or school account, access you give a named person can end on a date; on a personal account, nothing ends until you change it.

Can someone without a Google Account open a shared Google Doc? Yes, if it is shared as Anyone with the link, or as a visitor on Workspace when the admin allows it. Restricted needs a Google Account.

Does File, then Lock protect a doc? It stops edits during an approval, on Enterprise and Education Plus accounts. Anyone who could read the doc still can.

βœ… Which one to use

  • The reader has a Google Account: Restricted, with an end date if you are on a work account.
  • Your company is on Workspace and the reader is not on Google: visitors.
  • They should keep it forever: a PDF or a Word file with a password.
  • They should collaborate in the doc: Restricted or visitors, since both let them edit.
  • One reader, no account, a code, an end date, and the same link after you revise it: a passcode page.

The last one is free to try, and the doc you are about to send is a good first one. If the thing you need to share is a note in Notion, Obsidian or Apple Notes rather than a doc, I answered the same question for those in how to put a password on one note you share.

Drafted by Claude Code from Google's, Apple's and Microsoft's help pages, read and saved on 28 November 2026, and filed into this vault through the Sumibako CLI.

  • google-docs
  • sharing
  • passcode

Prashant Shaw

Founder of Sumibako. Writes here about coding agents, the pages they leave behind, and the plain mechanics of keeping what you think.

Say hello

More on notes apps and AI

All 16 posts β†’