.LCK

LCK File

Lock File
Ask a question
QUICK ANSWER

An LCK file is a lock file - a small control file an application creates to mark a database or document as in use, so two users cannot write to it at the same time and corrupt it. You do not open or convert it; the program deletes it automatically when the file is closed. If a stale .lck is left behind after a crash and blocks access, close the app on all machines, then delete the orphaned file.

Developer: No single owner - a generic convention used by many database and desktop applications Category: Misc Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .TORRENT · .MSO · .MD5 · .SHS

On this page

19k+ extensions indexed
Last reviewed Jul 30, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the LCK file format?

.lck is a resource lock file - a concurrency marker that an application creates automatically to signal that a file or database is currently in use. The .lck extension is typically appended to the name of the locked file; for example, locking document.doc results in the creation of a companion file named document.doc.lck whose mere existence on disk acts as the lock signal. .lck files are most often completely empty, but some programs store a small amount of additional data inside, such as the username, host name, or process ID (PID) of the session that holds the lock. .lck files should not be opened or edited manually; they are created and deleted automatically by the owning application.

Each locked file is protected from being written to by a second process or user. The application that holds the lock keeps the .lck file active for the duration of the session to prevent the original file from being deleted or corrupted. This mechanism is widely used by database engines, spreadsheet applications, and word processors handling formats such as .DOC files. Locking also applies when multiple users on a network access the same shared file simultaneously; in that case, the .lck file may track which user holds the active session or which portion of the resource is locked.

Different applications implement the locking mechanism differently. Some related lock-file conventions use extensions such as .lock, .LDB, or .LACCDB. Because .lck is a generic cross-platform convention with no single owner or specification - used on Windows, macOS, Linux, and Unix alike - its internal content (if any) is entirely application-specific.

Security & safety

RISK: LOW

A .lck is a passive marker file - usually empty, no executable code - so it is harmless to have and safe to read. The only real caution is operational, not security: do NOT delete a .lck while the file it protects is genuinely open by someone, because that defeats the protection and can let two users write at once and corrupt the data. Only remove a .lck when you've confirmed the underlying file is closed everywhere (a 'stale' lock left after a crash). Deleting a live lock, not the file itself, is the risk.

Format details

in a nutshell
FULL NAMELock Fileaka File lock, Lockfile
DEVELOPERNo single owner - a generic convention used by many database and desktop applicationssince Long-standing OS/application convention (decades old); no single introduction date
CATEGORYMisc Files
MIME TYPEapplication/octet-stream
TYPEConcurrency lock marker - usually empty or a tiny status/owner record

Programs that open LCK files

Windows2 apps
Owning application (close to release) Built-in Don't open the .lck - close the program/file that created it on every machine; the app deletes the .lck automatically. If a stale .lck remains and nobody has the file open, delete the .lck manually.
Notepad (inspect only) Built-in If you must see what's inside, open with Notepad - it's empty or a short owner/PID record. Don't edit it while the file is in use.
macOS1 app
Owning application (close to release) Built-in Quit the app that created the lock; it removes the .lck on exit. Delete a stale .lck only after confirming the file isn't open anywhere.
Linux1 app
Owning application / file manager Built-in Stop the process holding the lock (the app, or check with 'lsof file.lck'); remove the leftover .lck only once you've confirmed nothing is using the file.

Technical details

deep spec
Format typeExistence-based concurrency lock marker; the file's presence on disk is the lock signal, not its contents
Typical file size0 bytes (most common); occasionally a few bytes to a few hundred bytes when owner data is stored
File signature (magic bytes)None - no header or magic bytes; the file carries no identifying signature
EncodingEmpty (most cases); plain text or small application-specific binary when non-empty
Content when non-emptyShort owner record containing the locking session's username, host name, or process ID (PID)
Naming conventionCompanion file appended with .lck - e.g., `report.xls` is accompanied by `report.xls.lck`
Locking scopePrevents concurrent write access to the associated file; some implementations still permit read-only access by other processes
LifecycleCreated when a file is opened for exclusive use; deleted automatically when the session ends or the application closes cleanly
Stale lock riskIf the owning process crashes, an orphaned `.lck` file may remain on disk, blocking access until removed manually
Multiple-user environmentsCoordinates shared-file access over a network; may record which user or workstation holds the active lock
MIME typeapplication/octet-stream (default); text/plain when the file holds plain-text owner data
Associated operating systemsWindows, macOS, Linux, Unix - a cross-platform convention with no OS-specific dependency
User dataContains no document content or user data; serves exclusively as a control file for the owning application
StandardizationNo formal specification; content format and behavior are defined individually by each application that uses it
Common application typesDatabase engines, spreadsheet and word-processor applications, version control systems, integrated development environments
Related lock-file extensions.lock, .ldb, .laccdb, .tmp, ~lock - alternative naming conventions used by other applications for the same purpose
ReleasedLong-standing OS/application convention (decades old); no single introduction date
Latest versionN/A - not a versioned format

LCK conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with LCK files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about LCK files.

Frequently asked questions

What is a .lck file?
It's a lock file - a small control file an application (often a database) creates to mark a file as 'in use' so two users or programs can't write to it at the same time and corrupt it. It's usually empty; its presence is the lock.
Can I delete a .lck file?
Yes, but only when the file it protects is genuinely closed everywhere. Normally the app deletes its own .lck on exit. If one is left behind after a crash and blocks access, make sure no one has the file open, then delete the stale .lck.
How do I open a .lck file?
You don't really open it - it has no user content. If you're curious, open it in a text editor: it's either empty or a short record naming who holds the lock. The thing you actually want is the file the lock guards.
Why won't my database/file open - it says it's locked?
An application left a .lck saying the file is in use. If someone really has it open, wait for them to close it. If it's a stale lock after a crash, close the app on all machines and delete the orphaned .lck, then reopen.
What program creates .lck files?
Many do - database tools (Navicat, Paradox), email clients (Pegasus Mail), CAD (Autodesk Inventor), virtualization (VMware), and others. There's no single owner; .lck is a generic 'in use' convention.
Is a .lck file a virus?
No. It's a passive, usually-empty marker with no code. It can't run or infect anything. Just don't delete a live one while the protected file is open.

References

1Wikipedia - File locking (lock files)en.wikipedia.org
2Wikipedia - Record lockingen.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.TORRENTBitTorrent Metainfo File
.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z