A .lnk file is a shortcut that points to another file or program on your computer

When you see a file ending in .lnk, you are looking at a shortcut — a small file that Windows created to link to something else. It is not the actual program or document. Instead, it holds the location and instructions for Windows to open the real thing when you click it. Think of it like a signpost that says "the actual file is over there" rather than the file itself.

You create .lnk files every time you right-click a program and choose "Send to" > "Desktop (create shortcut)". Windows also creates them automatically when you pin an app to your Start menu or taskbar. The shortcut sits on your desktop or in a folder, but the real program stays in its original location — usually deep in your Program Files folder where you would never want to dig.

Because .lnk files are just pointers, they are tiny — usually a few kilobytes. If you delete a .lnk file, the actual program or document it points to stays safe. You have only removed the shortcut, not the thing itself.

Key Takeaways

  • A .lnk file is a Windows shortcut that points to a program or document somewhere else on your computer, not the actual file itself.
  • Deleting a .lnk file removes only the shortcut and leaves the real program or document untouched.
  • Windows creates .lnk files automatically when you pin apps to your Start menu, taskbar, or desktop.
  • If a .lnk file stops working, it usually means the program it points to was moved or uninstalled, and you can safely delete the broken shortcut.

Where Windows stores .lnk files

Most .lnk files you see are on your desktop or in your Start menu folder. When you pin an app to your taskbar, Windows creates a .lnk file in a hidden folder called AppData that you normally do not see. The same happens when you add a shortcut to your Quick Access menu in File Explorer.

If you want to find all the shortcuts pinned to your Start menu, open File Explorer and type this path into the address bar: C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs. Replace [YourUsername] with your actual Windows username. You will see folders for each program you have pinned, and inside each one are .lnk files that Windows uses to launch them.

You can also find shortcuts in the C:\Users\[YourUsername]\Desktop folder if you have created any on your desktop. These are easier to spot because you see them directly when you look at your desktop.

Why a .lnk file might stop working

A .lnk file becomes broken when the program or file it points to gets moved or deleted. If you uninstall a program, any shortcuts pointing to it will no longer work. Windows will show you an error message saying the file cannot be found, or the shortcut will straightforward do nothing when you click it.

This is actually a sign that your computer is working correctly — the shortcut is doing its job by trying to find the real file and reporting back that it is gone. You can safely delete any broken .lnk file. It is just clutter at that point.

Sometimes a .lnk file breaks because someone moved the actual program to a different folder or a different computer. If you know where the program moved to, you can right-click the shortcut, choose Properties, and update the path in the Target field. But usually it is simpler to just delete the broken shortcut and create a new one pointing to the program in its new location.

The difference between a .lnk file and the real program

A .lnk file is metadata — information about where something is and how to open it. The real program is the executable file, usually ending in .exe, that actually contains the code Windows runs. When you double-click a .lnk file, Windows reads the shortcut, finds the .exe file it points to, and launches that instead.

This separation is useful because it lets you have many shortcuts pointing to the same program without duplicating the program itself. Your desktop shortcut, your Start menu shortcut, and your taskbar shortcut all point to the one copy of the program sitting in Program Files. If the program updates, all three shortcuts automatically use the new version because they are just pointing to the same location.

You can also create a .lnk file that points to a document instead of a program. If you right-click a Word document and send it to your desktop as a shortcut, Windows creates a .lnk file that opens that specific document in Word when you click it. Again, the real document stays in its original folder, and the shortcut is just a pointer.

How to safely delete .lnk files

Deleting a .lnk file is always safe because you are only removing the shortcut, not the actual program or document. Right-click any .lnk file on your desktop and choose Delete, or press the Delete key. If you want to remove it permanently without sending it to the Recycle Bin, hold Shift while pressing Delete.

If you have broken shortcuts cluttering your desktop or Start menu, deleting them will clean up your computer without affecting any programs. The real files stay exactly where they are. You might want to do this after uninstalling software — the uninstaller usually removes the shortcuts automatically, but sometimes a few get left behind.

If you delete a shortcut by accident and want it back, you can recreate it in seconds. Right-click the actual program or document, point to "Send to", and choose "Desktop (create shortcut)". Windows will create a new .lnk file when ready.

When you might see .lnk files in unexpected places

Sometimes .lnk files appear in folders where you did not create them. This usually happens when a program's installer adds shortcuts to a folder during setup, or when Windows automatically creates shortcuts for recently used programs. You might also see them if someone else on your computer created shortcuts in shared folders.

Malware occasionally creates .lnk files as part of an infection, though this is less common than it used to be. If you see .lnk files appearing in folders where you did not put them, and you do not recognize the programs they point to, it is worth running a malware scan. But in most cases, unexpected .lnk files are just the result of normal program installation or Windows housekeeping.

If you want to hide .lnk files from view, you cannot do that directly in Windows — they are treated like any other file. But you can move them to a folder you do not look at often, or delete them if you do not use the shortcuts.

Frequently Asked Questions

Is it safe to delete all the .lnk files on my computer?

Yes, deleting .lnk files is always safe because they are only shortcuts. The actual programs and documents they point to will remain untouched. You might lose quick access to those programs, but nothing will break. If you delete a shortcut you later need, you can recreate it by right-clicking the program and choosing "Send to" > "Desktop (create shortcut)".

Why does Windows create so many .lnk files?

Windows creates a .lnk file every time you pin something to your Start menu, taskbar, or desktop. This design keeps your actual programs organized in one place while letting you access them from multiple locations. It also makes it straightforward to update a program once and have all your shortcuts automatically point to the new version.

Can a .lnk file contain a virus?

A .lnk file itself cannot contain a virus, but it can point to a malicious program. If you see a .lnk file pointing to something suspicious, do not click it. Malware sometimes uses shortcuts to hide what it is actually running. If you are unsure about a .lnk file, delete it or scan your computer with antivirus software.

What happens if I move a program to a different folder?

Any .lnk files pointing to that program will break because the shortcut cannot find the program in its old location. Windows will show an error when you try to click the shortcut. You can either delete the broken shortcut and create a new one, or right-click the shortcut, choose Properties, and update the Target path to the program's new location.

Can I edit a .lnk file to change what it opens?

Yes. Right-click the .lnk file, choose Properties, and look for the Target field. This shows the path to the program the shortcut points to. You can change this path to point to a different program, or add command-line arguments to change how the program launches. Click explore and OK when you are done.