Quick fix: Thumbnail cache lives in %LocalAppData%\Microsoft\Windows\Explorer as thumbcache_*.db files. Bloat usually comes from repeatedly viewing folders with thousands of images. Clear with Disk Cleanup (cleanmgr.exe), then limit growth by capping image preview density in Folder Options → View.
You noticed your C: drive is filling up. You ran WinDirStat or TreeSize and found thumbcache_*.db files totaling 5–15 GB under your user profile. The cache is supposed to make File Explorer faster by avoiding re-generating thumbnails — but on workstations with large photo, video, or design asset libraries, the cache grows beyond what’s useful.
%LocalAppData%\Microsoft\Windows\Explorer consume 5–15+ GB.Affects: Windows 11 on workstations with large image/video libraries.
Fix time: 10 minutes.
What thumbnail cache stores
Windows pre-generates thumbnails for files in folders you browse and stores them indexed by file hash in thumbcache_*.db files. Each cache file holds thumbnails at a specific size (32px, 96px, 256px, 1024px, etc.). For a directory tree with 50,000 images, the 256px cache can grow to 2–5 GB alone. Cumulative across multiple thumbnail sizes, total cache reaches 5–15 GB.
The cache is per-user. Clearing doesn’t break Explorer — thumbnails regenerate as needed the next time you browse those folders.
Method 1: Clear the cache with Disk Cleanup
- Press
Win + R, typecleanmgr, press Enter. - Select the C: drive. Click OK.
- In the file types list, check Thumbnails. The size column shows how much cache exists.
- Click OK and confirm. The cache clears immediately.
- For per-user cache (not visible in Disk Cleanup’s system view), close Explorer and delete the .db files manually:
cd %LocalAppData%\Microsoft\Windows\Explorer
del thumbcache_*.db - Reopen Explorer. Thumbnails regenerate as you browse.
Method 2: Prevent regrowth by disabling thumbnails for large folders
- Open File Explorer. Press
Alt + V, then click Options. - On the View tab, scroll to Always show icons, never thumbnails.
- If you check this, Explorer uses generic icons everywhere — cache grows minimally. Trade-off: lose visual file previews.
- For a middle ground: leave thumbnails on globally but use generic icons in specific large folders. Set per-folder via right-click → Properties → Customize → choose General items instead of Pictures.
Method 3: Automate periodic cache cleanup
- Create a script
C:\Scripts\clear-thumb-cache.cmd:
@echo off
taskkill /f /im explorer.exe
del /q /f “%LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db”
start explorer.exe - Schedule via Task Scheduler to run weekly during off-hours.
How to verify the fix worked
- Run
dir %LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db— total size has dropped significantly. - Reopen File Explorer; thumbnails regenerate gradually as you browse.
- After a week of normal use, the cache stays at a reasonable size (1–2 GB instead of 10+ GB).
If none of these work
If the cache keeps growing past a few GB despite cleanup, you may have a shell extension regenerating thumbnails for unsupported formats — check ShellExView for non-Microsoft thumbnail handlers. For photographer/designer workstations where large libraries are normal, accept the cache size; a 15 GB cache isn’t a problem if you have a TB of free space. For storage-tight devices, point Explorer to never use thumbnails per Method 2.
Bottom line: Thumbnail cache bloats with use. Clear via Disk Cleanup, prevent regrowth with generic icons for large folders, or schedule periodic cleanup. The cache regenerates harmlessly after clearing.