What Is a .LNK File?
A .lnk file is a Windows shortcut: a small file that points to another file, folder or program, shown with a small arrow on its icon. Double-clicking it opens the target. Windows hides the .lnk extension even when file extensions are shown, which attackers exploit by disguising shortcuts as documents.
- Extension
- .lnk
- Full name
- Windows Shortcut
- Type
- System and app file
- Developed by
- Microsoft
About LNK files
A shortcut stores the target path, optional command-line arguments, the working folder, an icon and keyboard shortcut. Right-click it and choose Properties to see all of this on the Shortcut tab. Deleting a shortcut does not delete the program or file it points to, and moving the target breaks the shortcut.
Because a shortcut can launch any program with any arguments, including PowerShell or cmd running downloaded code, LNK files are a favorite malware delivery trick. A file named invoice.pdf.lnk with a PDF icon looks like a document in File Explorer, since Windows always hides the .lnk part. Shortcuts arriving inside ZIP attachments or on unknown USB drives should not be opened.
Before trusting a shortcut you did not create, check the Target field in Properties. A target of a document or app you recognize is fine; a long command calling powershell, cmd, mshta or a URL is a warning sign. Shortcuts work only on Windows; Mac aliases and Linux .desktop files serve the same role there.
What LNK files are used for
- Desktop and Start menu shortcuts to programs
- Quick access to folders and network drives
- Launching programs with specific options
- Pinned items on the taskbar
How to open a .lnk file
Windows
Double-click to open the target. To inspect it, right-click and choose Properties, then read the Target and Start in fields.
Mac and Linux
LNK files do nothing on these systems; they point to Windows paths that do not exist there.
Windows (safe inspection)
To check a suspicious shortcut without running it, right-click it, choose Properties and read the Target field; if it calls powershell, cmd, mshta or a web address, delete it.
How to convert a .lnk file
A shortcut cannot be converted into the file it points to. To get the real file, right-click the shortcut, choose Open file location and copy the original.
If you received only an LNK by email or in a ZIP, the actual file was not included; ask the sender to share the file itself.
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming LNK files
- Rename shortcuts freely; the name does not affect the target, and Windows adds - Shortcut to new ones, which you can remove.
- Turn on File name extensions in File Explorer's View menu, and be suspicious of names with a fake extension like report.pdf, since Windows still hides .lnk.
- When sharing files, send the original rather than the shortcut, which is useless on another computer.
Renaming lots of .lnk files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .exe file is a Windows executable: a compiled program that runs when you open it. Installers, apps and games on Windows are EXE files. Because running one gives it the same access to your computer that you have, only open EXE files from sources you trust. Macs, iPhones and Android cannot run them natively.
A .bat file is a Windows batch script: a plain-text list of Command Prompt commands that run one after another when you double-click it. Batch files automate tasks such as copying files, launching programs or changing settings. The .cmd extension works almost the same. They run with your permissions, so only run trusted ones.
A .ps1 file is a PowerShell script, the file extension Microsoft uses for scripts written in its PowerShell command-line language. It contains plain text commands that automate Windows and server administration tasks. Double-clicking a .ps1 opens it in Notepad rather than running it, a deliberate safety measure.
A .zip file is a compressed archive that bundles one or more files and folders into a single, smaller file. It uses lossless compression, so everything comes back exactly as it was when you extract it. Windows, macOS, iPhone, Android and Chromebooks all open ZIP files without installing anything.
Frequently Asked Questions
Is an LNK file safe to open?
Shortcuts you created are fine. Do not open shortcuts from emails, ZIP files or unknown USB drives; they can run hidden commands.
Why can I not see the .lnk extension?
Windows always hides it, even with file extensions turned on. Look for the arrow on the icon or check Properties.
Does deleting a shortcut delete the program?
No. It only removes the pointer; the program or file stays where it was.
I received an LNK file instead of a document. What happened?
The sender attached a shortcut rather than the file. Ask them for the actual file; the shortcut cannot be opened elsewhere.