.lock — Lock File
A marker file used by an application or package manager to indicate a resource is in use, or to pin exact dependency versions (e.g. package-lock.json).
A generic or catch-all format. What it can actually do depends entirely on the application that created it — treat it with the same caution as any file from an untrusted source.
Check another filename
File extension lookup
Frequently asked questions
What is a .lock file?
A marker file used by an application or package manager to indicate a resource is in use, or to pin exact dependency versions (e.g. package-lock.json).
Can I edit a .lock file?
Partially. .lock files can be edited with the right tool (such as Varies by the application that created it), but not with just any text editor.
Does having a .lock extension mean the file is safe?
No single extension can guarantee that. A generic or catch-all format. What it can actually do depends entirely on the application that created it — treat it with the same caution as any file from an untrusted source. Always consider where the file came from, not just its name.