How to Pin a File to the Top of a Folder in Windows 11

Windows 11 lets you pin folders to Quick Access and files to Favorites, but File Explorer has no button to pin a file to the top of a folder. Files are always shown in the order of the column you sort by. The good news is that a few simple workarounds keep an important file at the top of the list, and Windows 11’s Favorites feature gives you one-click access to it from anywhere. This guide covers each option and when to use it.

Quick answer

Rename the file so its name starts with a character that sorts first, such as an exclamation mark or underscore (for example, !Budget 2026.xlsx or _Budget 2026.xlsx). With the folder sorted by Name, the file now appears above everything else. To also reach it from anywhere, right-click it and choose Add to Favorites.

Method 1: Rename the file with a prefix

  1. Open File Explorer with Windows key + E and go to the folder.
  2. Click the file and press F2, or right-click it and choose the Rename icon.
  3. Press Home to move the cursor to the start of the name, type ! or _, and press Enter.
  4. Click Sort in the toolbar and choose Name, then make sure Ascending is selected.

The file jumps to the top. Folders are still listed first, then files. If you want several files at the top in a set order, use numbered prefixes such as 01 , 02 and 03 , or combine the symbol and number like !1 and !2.

Watch out: renaming a file can break links to it in other programs, such as a linked spreadsheet, a shortcut, or a recent files list in an app. If other files depend on the exact name, use Method 2 instead.

Method 2: Put a renamed shortcut at the top

If you do not want to change the original file’s name, create a shortcut and rename that.

  1. Right-click the file and choose Show more options > Create shortcut. A shortcut appears in the same folder.
  2. Rename the shortcut with a ! or _ at the start, as in Method 1.

Double-clicking the shortcut opens the original file, and the original keeps its name.

Method 3: Add the file to Favorites

In Windows 11, you can mark a file as a favorite so it appears at the top of File Explorer’s Home page.

  1. Right-click the file.
  2. Choose Add to Favorites.
  3. Click Home in the File Explorer sidebar. The file now appears in the Favorites section.

Favorites stay put no matter how the folder is sorted. To remove a file, right-click it in Home and choose Remove from Favorites. If you do not see Add to Favorites, update Windows 11, as the option arrived in a later feature update. For folders, use Pin to Quick access instead.

Method 4: Sort by date so recent work stays on top

If the file you want on top is simply the one you are working on, sort by date instead of renaming anything.

  1. Click Sort in the File Explorer toolbar.
  2. Choose Date modified and then Descending.

The most recently saved file always sits at the top. This setting is remembered for that folder.

Method 5: Pin the file to the taskbar or Start menu

If you open the same file every day, you may not need it at the top of a folder at all. Open it once, then right-click its app on the taskbar and pin the file in the app’s jump list. Our guide on pinning an Excel file to the taskbar in Windows 11 shows the steps, and the same idea works for Word and other apps.

Why does my file not stay on top?

  • The folder is sorted by something else. Click Sort and choose Name, Ascending.
  • The folder is grouped. If items are grouped by type or date, the file is only on top of its group. Click Sort > Group by > (None).
  • You used a character that sorts later. Letters and most numbers sort after symbols like ! and _. A leading space does not work because Windows trims it.
  • Another file has the same prefix. Add a number after the symbol so the order is clear.

Frequently asked questions

Can I pin a folder to the top of another folder?

Yes, with the same rename trick. Folders always appear above files, and a folder named with a ! prefix appears above the other folders.

Does this work on Windows 10?

The rename and sort methods work the same way. Windows 10 has no Favorites option for files, but you can pin folders to Quick Access.

How do I clear Quick Access if it gets cluttered?

See how to remove Quick Access in Windows 11 for ways to clean it up or hide it.

Summary

  1. Rename the file with ! or _ at the start and sort by Name.
  2. Or create a renamed shortcut so the original name stays the same.
  3. Right-click the file and choose Add to Favorites for quick access from Home.
  4. Or sort by Date modified so recent files stay on top.