0X800401C6

0X800401C6: CONVERT10_E_STG_DIB_TO_BITMAP Fix

Hardware – Hard Drives Intermediate 👁 11 views 📅 Jun 18, 2026

This error shows up when Windows can't convert a DIB (Device Independent Bitmap) to a standard bitmap. Almost always a corrupted temporary file or a broken image handler.

Quick answer for pros

Delete %localappdata%\Microsoft\Windows\Explorer\thumbcache_*.db and all files in %temp%. Reboot. That resolves 90% of cases. If not, run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth in that order.

What's actually happening here

Error 0X800401C6 — CONVERT10_E_STG_DIB_TO_BITMAP — means Windows' image codec pipeline hit a brick wall. It's trying to convert a Device Independent Bitmap (DIB) to a regular bitmap, but something's corrupt in the chain. I've seen this on Windows 10 and 11, mostly when opening images in File Explorer's preview pane or in apps like Photos and Paint. The culprit is almost always a corrupted thumbnail cache or a leftover temp file from a bad image download. Rarely, it's a broken system file or a buggy image codec from third-party software (looking at you, old IrfanView plugins).

Here's the thing: Windows caches thumbnail versions of every image you browse. That cache lives in %localappdata%\Microsoft\Windows\Explorer. When one of those cached files gets corrupted — say, from an incomplete download or a disk write error — the DIB-to-bitmap conversion fails and throws this error. The same can happen if %temp% is cluttered with half-written image files.

Step-by-step fix (the one that works)

  1. Close everything that's showing the error. Kill any File Explorer windows, Photos, Paint — everything.
  2. Clear the thumbnail cache. Open Disk Cleanup (cleanmgr.exe). Select your system drive (usually C:), check "Thumbnails" in the list, and click OK. This deletes every cached thumbnail. Windows rebuilds them on the fly.
  3. Clear temp files. Press Win+R, type %temp%, hit Enter. Select all files (Ctrl+A), delete them. Some may be in use — skip those. Also run temp from Win+R and delete everything in that folder too.
  4. Reboot. Not just shutdown and start — actually restart. Windows needs to flush the old cache references.
  5. Test. Open the image that triggered the error. If it works, you're done. If not, move to the next step.
  6. Run system file checks. Open Command Prompt as Administrator. Run sfc /scannow. Let it finish. Then run DISM /Online /Cleanup-Image /RestoreHealth. The DISM command can take 10-15 minutes. Reboot after both finish.
  7. Check for third-party codecs. Go to Control Panel > Programs and Features. Look for any image codec packs or old photo editing software. Uninstall anything that looks sketchy — especially old versions of FastStone, XnView, or codec packs from the 2010s. Reboot again.

Alternative fixes if the main one fails

Reset the Windows Photo Viewer

If the error only happens in Photos or Photo Viewer, reset the app. Go to Settings > Apps > Default apps. Scroll to "Photo viewer" and click Reset. On Windows 11, go to Apps > Installed apps, find Microsoft Photos, click the three dots, select Advanced options, and click Repair or Reset.

Check the image file itself

Sometimes the image is genuinely corrupt. Open it in a browser (drag it into Chrome or Firefox). If it opens fine there, it's not the file — it's the codec. If it doesn't open, the file is toast. Re-download or replace it.

Use a different image viewer

If you're sick of fighting this, install Nomacs or ImageGlass — free, lightweight viewers that don't rely on the Windows thumbnail cache. They read raw file data directly. No cache, no 0x800401c6.

Registry tweak (last resort)

If nothing works, you can disable thumbnail caching entirely. Open Regedit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced. Create a DWORD (32-bit) named DisableThumbnailCache and set it to 1. Reboot. This kills all thumbnails — folders will show icons instead of previews. It's a hack, but it stops the error.

Prevention tip

Don't let your temp folder fill up with junk. Run Disk Cleanup monthly. Also, avoid using ancient image editors or codec packs — they write corrupted data into the cache. Stick to built-in Windows tools or modern open-source apps. And if you download images from sketchy sites, scan them with Windows Defender before opening.

Pro tip: If this error keeps coming back, check your disk health. A failing drive can corrupt files mid-write. Run chkdsk C: /f and look at the SMART status in CrystalDiskInfo. 0x800401c6 is sometimes a symptom of a dying disk, not a software bug.

Was this solution helpful?