How to repair the icon cache and/or thumbnail cache in Windows 11 and 10

Before Windows 8, repairing the desktop icons was relatively easy: all you needed to do was to force Windows Explorer to rebuild the iconcache.db file, and that would fix the corrupt desktop icons almost magically. That worked for Windows XP, Vista, and Windows 7, but starting with Windows 8, Microsoft changed the rules of the game, and erasing the iconcache.db file to fix the corrupt or outdated icons no longer works. In this article, we explain what has changed and what needs to be done to repair the icon cache in Windows 8, 8.1, 10, 11, and future versions of Windows.

Encrypt and password-protect files with Encryptability Encrypt and password-protect files with Encryptability encryption software for Windows 11,10,8.

User rating: User rating 4.5/5

Purchase or download a free trial.

If you want to follow along, you may want to install our AB Commander first. (It's free for the first 30 days, you can always uninstall it later on if you find no other use for it.) You can certainly do the following without AB Commander, too.

Also, if you have not done so already, you may need to enable the Windows option that makes the hidden files visible. To do that with AB Commander, choose Tools - Folder Options from the menu. Without AB Commander, open Windows Control Panel and choose the Folder Options command. When the Folder Options window is displayed, select the View tab and enable the "Show hidden files, folders, and drives" option:

Enabling the Show hidden files, folders, and drives option

While you are changing the folder options, you may also want to clear the option "Hide extensions for known file types": seeing the file extensions should make it easier to recognize the files that we will encounter along the way. Don't worry, if you don't like these changes, you can always change them back when you are done.

With that out of the way, let's navigate to the folder where Windows keeps the iconcache.db file. With AB Commander, you can use its Go to command (on the Folder menu) and select the Application Data (local) in the list:

Navigating to the local AppData folder

Press OK, and AB Commander will take you directly to the right folder. Without AB Commander, navigate to the folder C:\Users\[User]\AppData\Local, where [User] must be replaced with the actual login name of your user account, which is Admin in our example.

Let's take a look inside of the AppData\Local folder: there may be several sub-folders and files there, depending on which programs you have installed on your computer, but if you look closely, you should notice the IconCache.db file there:

Locating the IconCache.db file in the local AppData folder

Yes, the IconCache.db file is still there, as it was in Windows 7, Vista, and XP, but the difference is, Windows 8 (and Windows 11/10) no longer uses this file to store the icon cache! How do we know? Simple: under Windows 7 and earlier, if you delete this file as described in our previous article, Windows will rebuild it next time it needs to show the icons, and repair any damaged or missing icons. However, if you do this with Windows 8, 10, or 11, there is no effect on the icons, and if you had any wrong icons displayed on the desktop, they would still be wrong. This indicates that Windows 8/10/11 keeps the icon cache somewhere else.

After looking around a bit, we've solved the mystery. While in the AppData\Local folder, double-click on Microsoft, then on Windows, and finally on Explorer, to navigate to the following folder:


(Again, replace [User] with the actual login name of your user account, which is Admin in our example.)

In that folder, you should find quite a few files which names begin with iconcache, such as:

  • iconcache_32.db
  • iconcache_48.db
  • iconcache_96.db
  • iconcache_256.db
  • iconcache_1024.db
  • iconcache_1600.db
  • iconcache_exif.db
  • iconcache_idx.db

Take control of your files and folders with AB Commander Take control of your files and folders with AB Commander file manager for Windows 11, 10, 8.

User rating: User rating 4.8/5

Purchase or download a free trial.

... and possibly a few others. That's the files where Windows 8+ store the icon cache! If you scroll down, you should see another group of files with names starting with thumbcache:

  • thumbcache_32.db
  • thumbcache_48.db
  • thumbcache_96.db
  • thumbcache_256.db
  • thumbcache_1024.db
  • thumbcache_1600.db
  • thumbcache_exif.db
  • thumbcache_idx.db

You don't have to be a computer genius to figure out that these files are used by Windows to keep the thumbnail cache of the image files.

To force Windows to rebuild its icon cache, you need to delete all the iconcache files that appear in this folder, and that should repair any damaged icons that you see on your Windows 8/10/11 desktop. If you need to repair a corrupted thumbnail of an image file, you need to delete the thumbcache files. Easy, right?

Password-protect and hide personal files and folders with Folder Guard Password-protect and hide personal files and folders with Folder Guard for Windows 11,10,8.

User rating: User rating 4.6/5

Purchase or download a free trial.

Not so easy, actually. If you attempt to delete the iconcache files right within AB Commander or Windows Explorer, Windows will refuse to delete some of them, because the files would still be in use by AB Commander or Explorer! That's right, Windows cannot delete the files that are in use. To solve this problem, we need to close AB Commander and Windows Explorer, but how would we delete the files then?

The Command Prompt to the rescue! In case you don't know, the Command Prompt is a tool where you type commands that you want Windows to do. To open the command prompt window in AB Commander, choose Tools - Command Prompt window from its menu, and it will open the command prompt, already navigated to the folder which was active in ABCommander at the time:

The command prompt window started from AB Commander

If you are still not using AB Commander, you can achieve the same the hard way: start the command prompt in whatever way you usually do (using the Run command of Windows, for example), and then use the cd command to navigate to the correct folder.

To make sure the command prompt is in the correct folder, type the dir command first, and verify that the displayed list includes the iconcache and/or thumbcache files that we've discussed above:

Using the dir command to display the ist of file in the command prompt window

If you don't see the iconcache and/or thumbcache files after using the dir command, stop and DO NOT PROCEED! Go find someone who is more experienced with computers and ask them to help you out.

If you do see the iconcache and/or thumbcache files, you are ready to delete them using the command prompt window, but before you do that, you need to close every single program that you might have running, including AB Commander and Explorer, to make sure none of them is using the icon cache files when you attempt to delete them. Closing AB Commander is easy, but to close Explorer you need to use a trick:

  • Right-click on the taskbar to display the shortcut menu;
  • Choose Task Manager from the shortcut menu;
  • In the Task Manager window, click on More details, if the simple display is shown;
  • Select the Details tab;
  • Right-click on explorer.exe in the list;
  • Choose End task from the shortcut menu;

The Explorer should disappear, as well as the desktop, but don't worry, they will be back soon. Exit Task Manager, too! Make sure that no other program is running except for the command prompt window that we've opened earlier. Now switch to the command line window and type into it the following: del iconcache* and press Enter:

Deleting the icon cache files in Windows 8 using the command prompt window

(In case you are wondering, the star character after iconcache is necessary to make sure all files with names that start with iconcache will be included in the delete operation.) That should delete all the icon cache files. You can use the dir command again to check the list of files remaining; if there is still one or more of the iconcache files listed, it means that you either did not enter the command correctly, or some program is still using the icon cache.

Encrypt and password-protect external drives with USBCrypt Encrypt and password-protect external drives with USBCrypt encryption software for Windows 11,10,8.

User rating: User rating 4.7/5

Purchase or download a free trial.

What if instead of (or in addition to) the icon cache you want to erase the thumbnail cache? (The thumbnail cache is used by Windows to display small preview images of the files when you are browsing them with Explorer or AB Commander. If the thumbnail images appear to be corrupted on your computer, you can fix them by erasing the thumbnail cache.) To do that, enter the following command into the command prompt window: del thumbcache* and press Enter. It should delete all the thumbnail cache files and force Windows to rebuild it. Again, use the dir command to check the results.

When all is done, how to get back the regular desktop? Press the Ctrl-Alt-Del keys simultaneously, choose Sign off on the screen that appears, then sign back on. When you switch to the desktop view, all the usual icons should be back, and any damaged ones should be repaired now.

Happy computing!

If you want to link to this article, you can use this HTML code: <a href="">How to erase the icon and/or thumbnail cache in Windows 11, 10, and 8</a>

Read more


  1. This was incredible useful. I was about to format my computer because I installed an icon pack that will change the icons “magically” over the time. Now I don’t have such problem.

    Thanks a lot!

  2. (Win 8.1/Acer Desktop/x64))

    Strangely “thumbcache_16” (the first on my list) was the only one I could delete, and the only one that I seemed to need to.
    All of my mp3 thumbnails were totally restored after reboot.

    Thanks for this. I will now add a shortcut to my ‘explorer’ files, saved for possible future need.

  3. Thanks for your excellent instructions regarding “How to erase the icon and/or thumbnail cache in Windows 8/8.1” but it does not solve the problem with the missing two blue cloud icons on the OneDrive folder. It is not completely true, because right after your instructed procedure has been executed the two blue cloud icons appear on the OneDrive folder in 5-10 minutes but then they disappear again. I tried more times and deleted as well icon- as thumbcache. Actually this issue annoys me boundaryless as I have no more shots in my gun, how I can resolve this problem. I would highly appreciate if Winability could be helpful with this issue?

  4. When i tried to list the directory It returned file not found (definitely the right directory though) any ideas?

  5. I was having problems with IconPackager by Stardock (the program is not optimized for windows 8.1)and needed to use this fix. You can save time by following these instructions (be sure to change the [User] to your account name before pasting in command line:

    1. open Command Prompt

    2. open Task Manager and end Explorer.exe Task

    3. cd C:\Users\[User]\AppData\Local\Microsoft\Windows\Explorer
    \\this changes to the directory when the icon cache is stored

    4.for %i in (*db) do %i erase
    \\this will delete any file with the extension .db

    to get rid of every .db file in one command.

  6. I was having an issue with the wrong program’s icon showing at the bottom right corner of thumbnails, and was able to fix the issue more simply than is indicated in this post.

    All I had to do was go into the Folder View settings as explained at the beginning of this post, check “Always show icons, never thumbnails”, apply that setting, then uncheck it again and hit OK.

    The program icons at the lower right of my thumbnails were fixed immediately.

    Obviously this won’t fix all icon issues, but thought I’d let y’all know in case it helps.

  7. Odd. Deleting the old iconcache.db file still works for me in Win 8.1-64. Never needed to mess with those others.

  8. Did not work for me (Win 8.1, 64 just today updated from 8.0). Tim, or others, if you don’t have AB commander, how do you delete iconcache.db? I can see it using the search function, but not using command prompt C:\users\user\appdata\local>dir. All that displays is a bunch of DIR’s. No .db. at the bottom. Thought I would try to duplicate your success. Thanks.

  9. Did not work for me.
    I have several MS Surface Pro 3 Tablets running Win 8.1 Pro. I remove all tiles from the Start Menu except for 3: A Metro RDP app, and 2 web site links for Chrome.
    The shortcuts for the 2 websites are in:
    C:\users\store\AppData\Roaming\MS\Win\Start Menu

    When viewed in their file location they have the icons I want. When I Pin them to Start Menu they rever to the Chrome icon.
    I have deleted all copies of the Chrome.ico file and now my links are just black squares.
    I removed the icon and thumbnail cache files but I still get the black squares.
    I have also tried changing the icons then changing them back – still no good.

  10. I don’t think this is the correct method to clear thumbnail cache — too much fiddling.

    I would do the “canonical” way:
    1. Right-click on C drive
    2. Choose Properties
    3. Press “Disk Cleanup” button
    4. In the list “Files to delete”, uncheck everything EXCEPT Thumbnails
    5. Press OK

  11. I don’t know what caused this problem, but this morning MOST of the icons on my desktop, and ALL of the icons on the taskbar were changed to a white page with upper-right corner folded over. NOTHING would get them to return to their original images.
    After trying several ‘fixes’, I found this page, went through the process as described, following the steps exactly, and the only thing that changed was that now ALL the icon images are gone from the desktop, and the icon images on the taskbar are a white and blue image of some sort. I can’t make out exactly what it is.
    So now on my desktop, I have several groups of icon titles all bunched together without any icon images at all, and the icons on the taskbar will show their title when the cursor is held on it for at least 4 seconds.
    How the heck can I get the icons back?
    H E L P !

  12. We have tried all of the iconcache clearing.

    what worked for us was a registry hack

    Manually resetting the Registry key values to the default values
    Click Start, click Run, type Regedit in the Open box, and then click OK.
    Locate and then click the following registry key:

    Reset the registry key value to:

    Locate and then click the following registry key:

    Reset the registry key value to:

    Restart the computer

  13. Eric Brunk – I’ve been scouring the internet for hours upon hours, your instructions are the only thing that worked! THANK YOU!

Leave a comment

Your email address will not be published.

See below before pressing the SUBMIT button!

IMPORTANT! Do not put any URLs in the comment, or it will be rejected. Before submitting, please solve the following simple math problem (so we know that you are not a spambot) :-)

What is eight minus 7 ?
Please enter the answer as a number, 1 through 9:
Please leave these fields as-is: