Fix Broken Icons by Rebuilding Icon Cache in Windows
In this article
Broken or blank icons in Windows—like missing images on the desktop, taskbar, or File Explorer—are almost always caused by a corrupted icon cache. Rebuilding that cache forces Windows to redraw every icon from scratch, which fixes the problem in most cases. You don't need any special tools; the built-in Command Prompt and File Explorer are enough. The whole process takes about 5 minutes and does not delete any personal files.
What You'll Need
- Administrator access to your Windows PC (you'll need to open Command Prompt as administrator).
- File Explorer open—you'll use it to delete the cache files.
- About 5 minutes of time.
Step-by-Step
- Close all open apps. This includes File Explorer windows, but don't close the desktop or taskbar. If you have apps running, the icon cache files may be in use and won't delete properly.
- Open Command Prompt as administrator. Click the Start button, type
cmd, right-click on “Command Prompt” in the results, and choose “Run as administrator.” If prompted by User Account Control, click “Yes.” - Stop the Explorer process. In the Command Prompt window, type the following and press Enter:
taskkill /f /im explorer.exe
This closes the Windows shell (taskbar, desktop icons, File Explorer). Your screen will go blank except for the Command Prompt window—that's normal. Don't panic; Windows will restart Explorer in a moment. - Delete the icon cache files. Type these commands one by one, pressing Enter after each. They remove the cache files from your user profile folder. If you get a “file not found” error, that's fine—it just means the file wasn't there.
del /a /q "%localappdata%\IconCache.db"del /a /q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
Note: The second command uses a wildcard to delete all icon cache files (iconcache_16.db, iconcache_32.db, etc.). If you're on Windows 10 or Windows 11, this is the correct location. On older Windows versions (7/8), the path may be%localappdata%\IconCache.dbonly, but the wildcard command above also works on those if the Explorer folder exists. - Restart Explorer. In the same Command Prompt window, type
start explorer.exeand press Enter. This restarts the Windows shell. Your taskbar and desktop icons should reappear within a few seconds. - Check if icons are fixed. Look at your desktop, taskbar, and File Explorer. If icons are still blank, restart your PC once to ensure the cache is fully rebuilt. Windows will recreate the cache automatically on the next boot.
Common Mistakes
- Not running Command Prompt as administrator. If you don't, the
taskkillcommand may fail with an “access denied” error. Always right-click and choose “Run as administrator.” - Deleting the wrong files. Some guides tell you to delete the entire Explorer folder, but that's overkill and can cause other issues. Stick to the
iconcache*files andIconCache.db. - Forgetting to close File Explorer windows. If any File Explorer window is open, the cache files may be locked and won't delete. Close all of them first.
- Typing commands incorrectly. A missing space or a wrong letter can cause errors. Copy and paste the commands from this guide into Command Prompt to avoid typos.
Tips
- If you have a lot of custom icons (from third-party themes or apps), the cache may rebuild slowly. Give it a minute after restarting Explorer.
- For persistent icon issues, also check if your display scaling is set to an unusual value (like 125% or 150%). Sometimes changing scaling and back forces Windows to redraw icons.
- If you're on a laptop with multiple displays, disconnect the external monitor before rebuilding the cache—some users report that helps.
- You can also use the built-in Disk Cleanup tool to clear the icon cache, but the manual method above is more thorough.
Troubleshooting
If the steps above didn't fix the icons, try these in order:
- Restart your PC. Sometimes the cache rebuild doesn't fully complete until a reboot. Do this before trying anything else.
- Run System File Checker. Open Command Prompt as administrator and type
sfc /scannow. This checks for corrupted system files that might be causing icon issues. It can take 10–15 minutes. If it finds problems, it will fix them automatically. - Check for Windows updates. Go to Settings > Windows Update and install any pending updates. A buggy update can sometimes cause icon cache corruption.
- Update your display/graphics driver. Outdated drivers can cause display glitches, including broken icons. Go to Settings > Windows Update > Advanced options > Optional updates, or visit your PC manufacturer's support site.
- Create a new user account. If the problem only affects your user profile, a new account will have a fresh icon cache. Go to Settings > Accounts > Family & other users > Add account. If icons work there, you can migrate your files.
- If nothing works, reset your PC. This is a last resort. Go to Settings > System > Recovery > Reset this PC. Choose “Keep my files” to preserve your documents, but note that installed apps will be removed. Back up important data before doing this.
Frequently Asked Questions
Will rebuilding the icon cache delete my files or apps?
No. The icon cache is just a database of thumbnail images and icons. Deleting it only forces Windows to redraw icons; your actual files, apps, and settings remain untouched.
How often should I rebuild the icon cache?
Only when you notice broken or blank icons. There's no need to do it regularly; Windows manages the cache automatically.
Why do icons keep breaking again after a few days?
If the problem recurs, it's likely due to a third-party app, a theme, or a driver issue. Check for updates for your graphics driver and any icon-pack software you've installed. Also, run sfc /scannow to rule out system file corruption.
Can I rebuild the icon cache without using Command Prompt?
Yes, you can use the Disk Cleanup tool. Search for “Disk Cleanup” in the Start menu, select your drive, and check “Thumbnails” (which includes icon cache). However, the manual method above is more thorough and reliable.
Is it safe to delete the IconCache.db file manually?
Yes, it's safe. Windows will recreate it automatically. Just make sure you close all apps first and follow the steps exactly.
Will this fix broken icons in the Start menu or taskbar?
Yes, the same cache is used across Windows, so rebuilding it should fix icons in the Start menu, taskbar, and File Explorer.