Fix Thumbnail Cache Bloating Past 5 GB on Windows 11 Workstations
🔍 WiseChecker

Fix Thumbnail Cache Bloating Past 5 GB on Windows 11 Workstations

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.

Symptom: Thumbnail cache files in %LocalAppData%\Microsoft\Windows\Explorer consume 5–15+ GB.
Affects: Windows 11 on workstations with large image/video libraries.
Fix time: 10 minutes.

ADVERTISEMENT

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

  1. Press Win + R, type cleanmgr, press Enter.
  2. Select the C: drive. Click OK.
  3. In the file types list, check Thumbnails. The size column shows how much cache exists.
  4. Click OK and confirm. The cache clears immediately.
  5. 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
  6. Reopen Explorer. Thumbnails regenerate as you browse.

ADVERTISEMENT

Method 2: Prevent regrowth by disabling thumbnails for large folders

  1. Open File Explorer. Press Alt + V, then click Options.
  2. On the View tab, scroll to Always show icons, never thumbnails.
  3. If you check this, Explorer uses generic icons everywhere — cache grows minimally. Trade-off: lose visual file previews.
  4. 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

  1. 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
  2. Schedule via Task Scheduler to run weekly during off-hours.

ADVERTISEMENT

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.

ADVERTISEMENT

Did this guide solve your problem?