All you need to know about thumbnail cache files in Windows
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.
Why you may want to turn off the caching
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.
How to turn of thumbnail caching
From Windows XP onward, Microsoft implemented an option to disable the creation of thumbs.db files on the operating system.
If you are using Windows XP
- Click on My Computer.
- Select Tools > Folder Options.
- Switch to the View tab.
- Check "Do not cache thumbnails".
If you are using Windows Vista or newer
- Click on Start > Control Panel > Folder Options.
- If you are using Windows 8, go to the desktop part, press Windows-C to open the Charms menu, and select Settings > Control Panel.
- If you are using Windows 10, open Explorer and select File > Change folder and search options.
- Select the View tab.
- Find the Files and Folders section there, and check "Always show icons, never thumbnails" to disable the generation of the database files.
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:
- Tap on Windows-R to open the run box.
- Type gpedit.msc and hit enter.
- Navigate to the following folder: User Configuration > Administrative Templates > Windows Components > Windows Explorer.
- If you are using Windows 8 or newer: User Configuration > Administrative Templates > Windows Components > File Explorer
Here you find the following preferences:
- Turn off the display of thumbnails and only display icons (Vista or higher) - disables the display of thumbnails in Windows Explorer when enabled.
- Turn off the display of thumbnails and only display icons on network folders (Vista or higher) - disables the display of thumbnails on network folders in Explorer when enabled.
- Turn off the caching of thumbnails in hidden thumbs.db files (Vista or higher) - when enabled, prevents Windows Explorer from reading, creating or writing to thumbs.db files.
- Turn off the caching of thumbnail pictures (XP or higher) -- prevents that Windows caches thumbnail pictures.
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.
- Tap on the Windows-key, type regedit, and hit enter.
- Navigate to the following key using the folder structure on the left: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
- Locate the preference DisableThumbnailCache on the right.
- Change its value from 0 to 1 to disable the feature.
- If you want to restore it at a later point in time, change it back to 0.
How to view and delete existing thumbs.db files
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 or 10, you simply type Disk Cleanup on the Start Screen part of the operating system and select the result.
Select the drive that you want to scan, and a thumbnails entry should be listed here then.