The Windows operating system creates thumbnail cache files for images and other file types to speed up the loading of folders on the system. Under Windows XP, thumbs.db files were being used and they were put into the folders the images were stored in.
Starting with Windows Vista, Microsoft moved the cache to a central location (%userprofile%\AppData\Local\Microsoft\Windows\Explorer) where thumbcache_xxx.db files are stored in. Here you also find an index file that contains information where each cached version of an image is found in.
The only exception to the rule is when you browse network shares using Windows Vista or newer versions of Windows. Instead of using the local thumbnail cache, thumbs.db files are created in the folders that you are browsing. This behavior can be changed in the Group Policy.
You can think of them as caches that are designed to speed up the display of folders when you use Windows Explorer.
Without the thumbnail cache, Windows would have to process the images in the folder on load every time the folder is opened, which can slow down the display depending on the overall performance of the system and the number of image files in the folder.
Windows does not only store image formats in the database files though. While one of the main purposes is to process jpeg, png, bmp, tiff and gif image files, the cache is also used for document formats such as docx, pptx, pdf and html, and video formats such as avi.
The effect that a thumbs.db cache file and thumbcache file has on the loading time of a folder can be witnessed best if you open a large folder full of image files. You will notice that the loading is faster when the thumbnail cache is enabled. This becomes especially apparent on slow storage devices such as image DVDs or slow hard drives.
There are a couple of reasons why you may want to turn off the caching. First, there have been issues in the past where thumbs.db files have prevented the renaming or deletion of files or folders on the system.
Depending on how the computer is used, it may also have privacy implications. A cached thumbnail of an image that you have deleted may still be stored in the cache. If you are the sole user of the PC, it may not be an issue. If there are other users, or even third-parties who may gain access to the computer, you may want to delete those caches regularly to avoid this from happening.
It is furthermore possible to link thumbnails with their original files using various methods.
Turning off the caching may however affect the folder loading speed. As mentioned earlier, this can be especially noticeable when you open folders with lots of file types that are usually cached to speed up the loading time.
From Windows XP onwards, Microsoft implemented an option to disable the creation of thumbs.db files on the operating system.
If you are using Windows XP
If you are using Windows Vista or newer
Alternative Group Policy Editor
If your operating system supports the Group Policy Editor, you can use it to disable thumbnail caching. To load the editor, do the following:
Here you find the following preferences:
Using the Windows Registry
If you do not have access to the Group Policy Editor on your system, you can disable the generation of thumbnail caches on Windows using the Registry instead.
Existing files are not removed automatically when you disable the creation of thumbnail cache files in Windows. For that, you can either use specialized viewer and cleaner applications, or general purpose programs instead.
One of the easier ways is to use Windows Search to find all thumbs.db files. Once you have found them all, use Ctrl-A to select them and hit the delete button to remove them all from your system.
Thumbnail Database Cleaner has been designed specifically to find and remove thumbs.db files on the system. Please note that the program requires the Microsoft .Net Framework 2.0.
Just run it, select a drive you want to scan, and click the start search button afterwards. It displays all thumbnail caches it finds, and you can select some or all for removal.
You can furthermore sort the display by file size, date or file path. The only thing missing is a viewer module that lets you view individual files.
Thumbs Viewer is another program that you can use for that purpose. Its primary purpose is to view the contents of a thumbs.db file, but it can also be used to remove cached thumbnails from it.
The program displays all cached files automatically when you load a database file. You can sort the entries by name, size or location, and view each thumbnail with a click on it.
Entries can be deleted or saved with a right-click. If you want to remove all, use Ctrl-A to mark them all, right-click and select remove selected from the context menu.
Thumbs.db Explorer provides you with another option. It works similar to Thumbs Viewer in that you need to point it to a thumbnail file that you want to load in the software.
Note that it can only load thumbs.db files and not thumbcache files. It displays the total number of thumbnails in the file, their name and size.
You can use it to save some or all images to your local system, but not delete the selection.
Thumbs Remover is the final program of this list. It can be used to search the system for thumbs.db files to remove them all or select ones in one go.
It comes as a standalone version and installer which both work identical. Point the program to a drive letter and click on start to run the scan. It may take a while as the program goes through all folders on the drive to find any thumbs.db file.
All files are displayed in the interface afterwards, and you can delete some or all of them from here easily using buttons the program makes available.
General purpose programs
The popular temporary file cleaner CCleaner can remove all thumbnail cache files from the operating system. The option is selected by default, and you find it under Windows > Windows Explorer in the program interface.
The Windows operating system ships with its own cleanup tool. You can run it with a click on Start, typing Disk Cleanup, and the selection of the entry. If you are using Windows 8, you simply type Disk Cleanup on the Start Screen part of the operating system.
Select the drive that you want to scan, and a thumbnails entry should be listed here then.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.