Lock Google Drive Files to Prevent Unwanted Edits
In this article
- What Does "Locking" a Google Drive File Mean?
- How to Lock a File in Google Drive (Step-by-Step)
- Locking vs. Changing Sharing Permissions
- What Locking Does NOT Do (Common Misconceptions)
- When to Use Locking vs. Other Options
- Locking in Google Docs, Sheets, and Slides: Special Notes
- Frequently Asked Questions
Yes, you can lock Google Drive files to prevent unwanted edits. The most direct way is to use the built-in "Lock" option in Google Drive, which makes a file read-only for everyone except you, and you can also use Google Docs, Sheets, or Slides sharing settings to restrict editing to specific people. This article explains the exact steps, the differences between locking and other permission settings, and answers common questions about protecting your files.
What Does "Locking" a Google Drive File Mean?
Locking a file in Google Drive is a specific feature that sets the file to read-only for all collaborators. When you lock a file, no one else can edit it, comment on it, or even suggest changes. The lock applies to the file itself, not to individual shares, so it overrides any editing permissions you may have granted. Only you, as the file owner, can unlock it. This is different from simply changing the sharing permission to "Viewer," because locking is a stronger, more explicit action that also prevents accidental edits from your own account if you are not careful.
Locking is available for files stored in Google Drive, including Google Docs, Sheets, Slides, PDFs, images, and other files. For Google Workspace files (Docs, Sheets, Slides), the lock also disables the ability to make a copy, download, or print, unless you allow those actions separately. For non-Google files (like a PDF or image), locking only prevents editing, not downloading or copying, because those files are not editable in Drive anyway.
How to Lock a File in Google Drive (Step-by-Step)
Locking a file takes just a few clicks, but the exact steps depend on whether you are using the web version or the mobile app. Here are the steps for each:
On the Web (drive.google.com)
- Open Google Drive in your browser.
- Right-click the file you want to lock.
- In the menu that appears, click "Lock" (it may be under "More actions" or the three-dot menu).
- A lock icon will appear on the file to confirm it is locked.
On the Mobile App (Android or iOS)
- Open the Google Drive app.
- Find the file and tap the three-dot menu next to it.
- Tap "Lock" from the menu.
- The file will show a lock icon.
To unlock a file, follow the same steps and choose "Unlock." Only the owner can do this. If you are a collaborator with edit rights, you will not see the lock option.
Locking vs. Changing Sharing Permissions
Many people confuse locking with simply setting the sharing permission to "Viewer." Both make a file read-only, but they work differently:
- Locking is a binary on/off switch that applies to everyone, including people who already have edit access. It is quick and easy, but it also blocks your own editing if you forget to unlock.
- Sharing permission (Viewer/Editor/Commenter) is granular. You can set each collaborator to Viewer, Editor, or Commenter. This is more flexible because you can allow some people to edit while others can only view.
For example, if you have a spreadsheet with a team of editors, but you want to freeze it for a week, locking is the fastest way. If you want to permanently restrict one person to read-only while others keep editing, you should change that person's permission to Viewer instead of locking the whole file.
What Locking Does NOT Do (Common Misconceptions)
Locking is not a security feature. It does not prevent someone from copying the content, taking screenshots, or downloading the file if they already have access. It also does not stop someone from making a copy of the file if they have the link and the permission allows it. Locking is purely about preventing edits, not about protecting confidentiality.
Another misconception: locking a Google Doc does not prevent you from viewing or downloading it. You can still open, read, and download a locked file. It only blocks editing, commenting, and suggesting.
Also, locking is not the same as "Make a copy" protection. To prevent others from copying your file, you need to adjust the sharing settings under "Link sharing" or "Advanced permissions." Locking does not affect copying.
When to Use Locking vs. Other Options
Locking is best for temporary freezes, such as when a document is final and you want to avoid accidental changes during a review period. It is also useful for files that you share with many people but do not want anyone to edit, like a read-only reference document.
For permanent restrictions, it is better to set the sharing permission to "Viewer" for specific people. For collaborative projects where you want to allow comments but not edits, use "Commenter" permission. If you want to allow edits but track who changed what, use "Editor" with version history enabled.
Here is a quick decision guide:
- Need to stop all edits temporarily? → Lock the file.
- Need to let some people edit and others only view? → Change individual permissions.
- Need to prevent copying or downloading? → Adjust link sharing settings (e.g., turn off "Anyone with the link can view").
- Need to keep a record of changes? → Use version history, not locking.
Locking in Google Docs, Sheets, and Slides: Special Notes
For Google Docs, Sheets, and Slides, locking has a few extra effects:
- Locking a Google Doc disables the "Suggesting" mode for everyone, so no one can propose edits.
- Locking a Google Sheet prevents all editing, including data entry and formatting changes. It does not block filtering or sorting unless you also restrict those separately.
- Locking a Google Slides presentation prevents editing slides, but viewers can still present the slideshow.
Note that locking a Google Workspace file also disables the ability to make a copy for others, unless you have allowed copying in the sharing settings. This is a useful extra layer if you want to prevent people from duplicating your work.
Frequently Asked Questions
Can I lock a file that I do not own?
No, only the owner of a file can lock or unlock it. If you are a collaborator with edit access, you cannot lock the file. You can ask the owner to lock it if needed.
Does locking a file affect my own ability to edit it?
Yes, locking applies to everyone, including you (the owner). If you lock a file, you will not be able to edit it until you unlock it. This is a common reason people accidentally lock themselves out of their own document.
Can I lock a folder in Google Drive?
No, locking is only available for individual files, not folders. To prevent edits to all files in a folder, you would need to lock each file individually or change the sharing permissions for the folder.
What happens to version history when I lock a file?
Locking does not delete or alter version history. You can still view and restore previous versions of a locked file. However, since no one can edit while locked, no new versions will be created.
Can I lock a file that is shared with "Anyone with the link"?
Yes, you can lock any file, regardless of its sharing settings. Locking will override the edit permissions for everyone, even if the link sharing is set to "Editor."
Is there a way to lock a file so that it cannot be downloaded?
Locking does not prevent downloading. To prevent downloading, you need to change the link sharing settings to "Restricted" or "Anyone with the link can view" (not "Editor"). For Google Workspace files, you can also disable the "Download, print, and copy" option in the sharing settings.