Unlock a Word Document Locked for Editing
In this article
If Word says a document is locked for editing, the fix is usually simple: close any hidden background copy, remove read-only attributes, or end the editing session that Word thinks is still open. This article walks through the most common causes and step-by-step fixes, from the quickest to the more advanced.
Why Word Locks a Document
Word locks a document for editing for a few distinct reasons. The most frequent is that the file is already open in another window or on another device. Word creates a temporary lock file (a hidden file starting with ~$) to prevent two people from editing the same file simultaneously. If Word crashes or the computer shuts down improperly, that lock file can remain, tricking Word into thinking the document is still in use.
Other causes include the file being marked as "Read-Only" in its properties, the file being stored in a folder where you don't have write permissions (common on corporate networks or synced cloud folders), or the document itself having editing restrictions enabled by the author. Less commonly, the file may be encrypted or password-protected, but that's different from a simple editing lock.
Quick Fixes to Try First
Before diving into advanced troubleshooting, try these simple steps. They resolve the majority of cases.
- Check if the document is open elsewhere: Look at all open Word windows (including minimized ones) and close the document if you see it. If you use OneDrive, Google Drive, or Dropbox, check if the file is open in another browser tab or on another device.
- Restart Word completely: Close all Word windows, then reopen the app. This clears temporary locks that may not have been released.
- Reboot your computer: A restart clears all temporary files and releases any orphaned locks. This is especially effective after a crash or forced shutdown.
- Copy the file: Right-click the file in File Explorer, select Copy, then paste it into a new folder. Try opening the copy. This often bypasses a corrupted lock file or a read-only attribute.
Remove the Read-Only Attribute
A file can be marked as read-only in its properties, which prevents editing. Here's how to check and remove that attribute.
- Right-click the file in File Explorer and select Properties.
- At the bottom of the General tab, look for the Attributes section.
- If the Read-only checkbox is checked, uncheck it.
- Click OK and try opening the file again.
If the checkbox is grayed out, the file may be in a protected folder, or you may not have permission to change it. In that case, try saving a copy to your desktop and editing that copy.
End a Stuck Editing Session
If the file was opened from a shared location (like a network drive or OneDrive) and the lock persists, you may need to end the editing session manually. In Word, go to Review > Track Changes and look for the Compare group. There, you might find an option called Show Markup or Reviewing Pane – but that's not the right place. Instead, look for a small icon in the status bar that shows a pencil or a person. Click it to see who has the file open and choose to "End" their session if you have permission. If you don't see such an option, you may need to ask the other user to close the file.
On Windows, you can also use File Explorer to delete the lock file. Navigate to the folder containing the document, enable viewing of hidden files (View > Hidden items), and look for a file named ~$ followed by the document name (e.g., ~$Report.docx). Delete that file, then open the document. This is safe if you're certain no one else is actively editing the file.
Remove Editing Restrictions from the Document
If the document opens but the ribbon is grayed out or you see a message like "This document is locked for editing by the author," the file may have editing restrictions enabled. To remove them:
- Open the document in Word.
- Go to Review > Restrict Editing.
- In the pane that opens on the right, click Stop Protection. If a password was set, you'll need to enter it.
- Under Editing restrictions, select No changes (Read only) and then uncheck the box that says Allow only this type of editing in the document.
- Click Yes, Start Enforcing Protection and then OK without setting a new password.
If you don't have the password, you cannot remove the restriction. The only legal way is to ask the author for the password or to have them send an unprotected version.
What to Do If the File Is in a Cloud Folder
Cloud storage services like OneDrive, Google Drive, and Dropbox can cause locks if the file is marked as "syncing" or if there's a conflict. If you see a lock icon or a cloud icon with a checkmark, try these steps:
- Right-click the file in the cloud folder and select Always keep on this device (OneDrive) or Make available offline (Dropbox/Drive). This ensures the file is fully downloaded.
- Check if the file has a status like "Read-only" or "In use" in the cloud app's interface. If so, close it from there.
- If the file is shared, the owner may have set permissions to "View only." You'll need to request editing access.
Frequently Asked Questions
Why does Word say the document is locked for editing when I just downloaded it?
This often happens when the file is still marked as "blocked" by Windows. Right-click the file, select Properties, and if you see an Unblock checkbox at the bottom, check it and click OK. This is common for files downloaded from the internet or email.
Can I bypass a password-protected editing lock?
No. If the document has editing restrictions with a password, there is no legitimate way to bypass it without the password. You can try opening the file in a different word processor (like Google Docs), but that only works if the restriction is a simple read-only flag, not a true password.
How do I unlock a Word document that is locked for editing on a Mac?
On a Mac, the process is similar. Close the document, then in Finder, right-click the file and select Get Info. Under Sharing & Permissions, ensure you have Read & Write access. Also, check if the file is locked by clicking the lock icon in the corner of the Info window. If it is, click it and enter your admin password to unlock.
What is the ~$ file that appears next to my document?
That is Word's temporary lock file. It's created when you open a document and deleted when you close it. If it remains, it can cause the document to appear locked. You can safely delete it if you're sure no one else is editing the file.
Why is my document locked for editing after a crash?
After a crash, Word may leave the lock file behind. Restarting your computer usually clears it. If not, follow the steps to delete the ~$ file manually. Word also has a recovery feature that may open the last autosaved version – look for the Document Recovery pane when you restart Word.
Can I prevent a document from being locked in the future?
Yes. Save files to a local folder rather than a network drive if possible. Also, make sure to close documents properly and avoid editing the same file from multiple devices simultaneously. If you use cloud storage, enable version history so you can recover previous versions if needed.