.lnk

What is a .lnk file?

A Windows shortcut — points to a file, folder, or program on your computer.

Use caution
Type Misc
By Microsoft
MIME application/x-ms-shortcut

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

LNK is the Windows Shell Link format — the file behind every shortcut on your desktop, Start menu, and Quick Launch bar. A .lnk file is a pointer that tells Windows where to find the actual target: a program, document, folder, or network resource. It stores the target path, working directory, command-line arguments, icon location, window state, and hotkey assignment.

The format is a binary structure documented in Microsoft's [MS-SHLLINK] specification. It includes a Shell Link Header, optional Link Target IDList (which can resolve targets even if the path changes), and string data sections. LNK files also store metadata like the volume serial number and MAC address of the machine that created them — forensic analysts use this data to trace file origins in security investigations.

LNK files have a complicated security reputation. Legitimate shortcuts are harmless — they just open what they point to. But malicious LNK files can execute PowerShell commands, download malware, or exploit Windows shell vulnerabilities. The Stuxnet worm famously used crafted LNK files to spread via USB drives. Windows now shows a security warning when running LNK files from untrusted sources, but the format remains a common malware delivery vector.

Technical details
Full Name
Windows Shell Link
MIME Type
application/x-ms-shortcut
Developer
Microsoft
Magic Bytes
4C 00 00 00
Safety
.lnk requires caution. LNK files can execute programs, run scripts, or trigger PowerShell commands. Only open shortcuts from trusted sources.
What opens it
Windows Explorer
FREE Windows
LECmd (forensic parser)
FREE Windows
FAQ
Are LNK files dangerous?
They can be. A malicious LNK file can execute commands, download malware, or exploit vulnerabilities. Don't open .lnk files received via email or from untrusted sources. Windows shortcuts you created yourself are fine.
Why can't I see the .lnk extension?
Windows hides .lnk extensions by default, even when 'Show file extensions' is enabled. This is by design — Microsoft wants shortcuts to look like the files they point to.
Related formats