File types / Programs & scripts

.lnk file

Windows shortcut

Extensions
.lnk
MIME type
application/x-ms-shortcut
Signature
4C 00 00 00 01 14 02 00at byte offset 0
Safety
Can run code

What is a .lnk file?

An LNK file is a Windows shortcut. It points at another file or command and can include arguments.

The header begins with the size value 4C 00 00 00 followed by a fixed class identifier starting 01 14 02 00.

Used for: Shortcuts on the Windows desktop and Start menu.

How can I tell if a file is really a LNK?

Read its first bytes rather than trusting the name. A genuine LNK file has the signature 4C 00 00 00 01 14 02 00 at byte offset 0. The File Identity tool reads these bytes in your browser, so the file is never uploaded.

To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.

Is a .lnk file safe to open?

A shortcut can run any command, which is why attackers send them inside ZIP files. Right-click and check the target before opening one from outside.

Easy to confuse

A shortcut shows the icon of what it points to, not what it actually runs.