Knowledge Base →4 min readUpdated: 2026-09-21

How to Clear and Rebuild the Icon Cache in Windows 11

When shortcuts show blank pages or old versions of icons, the icon cache has desynced from reality. Kill Windows Explorer, delete IconCache.db plus the iconcache_*.db files in %LOCALAPPDATA%\Microsoft\Windows\Explorer, then start Explorer again — Windows rebuilds the cache from scratch and the icons come back correct. The whole procedure takes about two minutes.

Why icons go blank or wrong

File Explorer caches the icon of every .exe, .lnk and folder type it has ever displayed, so that scrolling through folders stays instant. The cache lives in two places: the old %LOCALAPPDATA%\IconCache.db and a set of iconcache_*.db files inside %LOCALAPPDATA%\Microsoft\Windows\Explorer. When an app updates and its icon changes, or when the cache is written during a glitch, Explorer keeps serving stale images — blank sheets, generic exe icons or last year's logo.

The trap is that Explorer keeps the files open the entire session and rewrites the cache on every restart. Deleting the files while Explorer runs achieves nothing: it simply recreates them from memory. That is why the correct order never changes — stop Explorer, delete, start Explorer.

  • Shortcuts on the desktop show a blank document icon
  • An app still shows its pre-update icon weeks later
  • Taskbar and pinned icons look generic or wrong
  • Explorer shows default exe icons for programs that have custom ones
  • Icons flicker to blank during login and never recover

Clearing the cache the right way

Press Ctrl+Shift+Esc to open Task Manager, find Windows Explorer in the list, right-click it and choose End task — the desktop and taskbar disappear, which is expected. Then in Task Manager choose File → Run new task, type cmd and run two commands: del /a /f /q "%localappdata%\IconCache.db" and del /a /f /q "%localappdata%\Microsoft\Windows\Explorer\iconcache_*". The /a switch matters: the files are hidden, and a plain delete skips them.

Now type start explorer.exe (or File → Run new task → explorer.exe) and the shell returns with an empty cache. Icons rebuild progressively as you browse folders — a big Start menu and a crowded desktop take a few seconds to redraw. If some iconcache files still refuse to delete, the culprit is usually a background app holding a handle; a reboot into Safe Mode clears that path.

When rebuilding is not enough

Not every icon problem is the cache. A shortcut whose target was deleted shows a blank icon because there is nothing left to take an icon from — fix the target or remove the shortcut. A pinned taskbar item keeps its icon even after you clear the cache until you unpin and repin it, because the pinned entry stores its own copy.

If a specific file type shows the wrong icon for good, the association itself needs a repair: right-click the file, choose Open with → Choose another app, or fix it in Settings → Apps → Default apps. To change an icon by hand, open the shortcut's Properties → Shortcut → Change Icon and point it at a file with the right image. And keep the icon cache and the thumbnail cache apart — thumbcache_*.db files store picture previews, and clearing them is a separate job that also fixes black squares where photo previews should be.

Questions and Answers

Where is the icon cache stored in Windows 11?

In %LOCALAPPDATA%\IconCache.db and in the iconcache_*.db files under %LOCALAPPDATA%\Microsoft\Windows\Explorer. Both are hidden files, so deleting them from a command prompt with the /a switch is the reliable way.

Will clearing the icon cache delete my files or settings?

No. The cache holds only copies of icon images; Windows regenerates it as you browse. Your documents, shortcuts and preferences are not touched.

What is the difference between the icon cache and the thumbnail cache?

The icon cache stores application and shortcut icons; the thumbnail cache (thumbcache_*.db in the same folder) stores previews of photos and videos. Each fixes its own class of problems.

Know what is included before you buy.

The one-time 30-minute trial covers core tools. PRO-labelled features stay locked until a paid license is activated.

Read next

All articles · FAQ

Write to us: [email protected]