TechBuzzPro

How to Restore Windows Photo Viewer in Windows 11

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Windows Photo Viewer is not included by default in Windows 11, but you can restore it by re-enabling its built-in registry entries and file associations. This brings back the lightweight, full-screen image viewer used in older Windows versions. No extra downloads or third-party tools are needed—just registry edits and a one-time file association reset. Proceed with caution: editing the registry affects system behavior, but these steps use only safe, Microsoft-documented keys. Always back up the registry first.

What You'll Need

  • Administrator access to your Windows 11 PC
  • Registry Editor (regedit.exe)
  • File Explorer (to reset file associations)
  • Optional: A backup of your registry (via File > Export in Registry Editor)

Step-by-Step

  1. Press Windows + R to open the Run dialog, type regedit, and press Enter. If User Account Control prompts you, click Yes to allow Registry Editor to run as administrator.
  2. Navigate to the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer. If the Windows Photo Viewer key does not exist (common in Windows 11), proceed to step 3 to create it manually.
  3. Right-click Shell (under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows), select New > Key, and name it PhotoViewer. Then right-click PhotoViewer, create another key named FileAssoc.
  4. Inside HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\FileAssoc, right-click the right pane, select New > String Value, and name it SupportedTypes.
  5. Right-click SupportedTypes and select Modify. In the Value data field, paste this exact list (including the vertical bars): .bmp|.dib|.gif|.jpe|.jpg|.jpeg|.png|.tif|.tiff|.wdp. Click OK.
  6. Still inside HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer, right-click the right pane, create a new String Value named Shell.
  7. Right-click Shell and select Modify. Set Value data to open. Click OK.
  8. Now navigate to HKEY_CLASSES_ROOT\SystemFileAssociations\Image\Shell\Open. If the Open key under Shell does not exist, right-click Shell (under SystemFileAssociations\Image), create a new key named Open.
  9. Inside HKEY_CLASSES_ROOT\SystemFileAssociations\Image\Shell\Open, create a new key named Command.
  10. Inside the Command key, double-click the (Default) value in the right pane. Set its Value data to: "C:\Windows\System32\rundll32.exe" "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll",DllInstall %1 %. Ensure the path uses double quotes and the %ProgramFiles% variable is included exactly as shown (it resolves to the correct Program Files folder on your system).
  11. Press Windows + I to open Settings, go to Apps > Default apps > Default apps by file type.
  12. Scroll down and find file extensions like .jpg, .jpeg, .png, and .bmp. For each, click the current default app (usually Photos), then select Windows Photo Viewer from the list.
  13. Restart your PC to ensure all changes take effect. After rebooting, double-click an image file to verify Windows Photo Viewer opens instead of the Photos app.

Common Mistakes

Typical errors include typos in the registry command path (especially missing quotes or incorrect use of %ProgramFiles%), skipping the SupportedTypes registry entry (which prevents Viewer from listing supported formats), or assuming the Photos app association resets automatically (it does not—manual reassignment in Settings is required). Another frequent mistake is editing the wrong hive: all paths must use HKEY_LOCAL_MACHINE and HKEY_CLASSES_ROOT, not HKEY_CURRENT_USER, to ensure system-wide functionality. Also, some users forget to restart after editing—changes often require a reboot to propagate fully.

Tips

Before editing the registry, export the HKEY_CLASSES_ROOT\SystemFileAssociations key as a backup (.reg file). This lets you quickly restore file associations if something goes wrong. If you use multiple user accounts, repeat step 12 for each user profile to ensure consistency—some systems apply defaults per-user. For faster testing, open Registry Editor as administrator and use Edit > Find to locate PhotoViewer if you lose track of where you are. Finally, avoid installing third-party "Photo Viewer restore" tools; they often bundle adware and are unnecessary since Windows 11 retains the core files.

Troubleshooting

If Windows Photo Viewer still does not appear in the default apps list, first confirm the registry command path in step 11 is correct. A single missing quote or space can cause the entry to fail silently. Next, check if PhotoViewer.dll exists in C:\Windows\System32 or C:\Program Files\Windows Photo Viewer (though it may be missing on some clean installs—see below). If missing, run the System File Checker: open Command Prompt as administrator, type sfc /scannow, and wait for completion. This restores missing system files, including PhotoViewer.dll. After scanning, reapply the registry steps. If the Photos app continues to override your choice, uninstall updates for the Photos app via Settings > Apps > Installed apps > Photos > Uninstall. Alternatively, reset the Photos app: Settings > Apps > Installed apps > Photos > Advanced options > Reset. If all else fails, try the registry fix in Safe Mode—some third-party security software blocks registry edits in normal mode. To enter Safe Mode, hold Shift while clicking Restart in the Start menu, then navigate to Startup Settings > Restart and press 4 or F4.

Frequently Asked Questions

Is Windows Photo Viewer available as a download from Microsoft?

No. Microsoft removed the standalone installer and does not offer it for download. The method described here reactivates the built-in, pre-existing files that remain on your system after installation.

Will restoring Windows Photo Viewer affect the Photos app?

No. The Photos app remains installed and functional. You can switch between them anytime by changing the default app for each image file type or right-clicking an image and selecting Open with > Choose another app.

Does this work on Windows 11 Home, Pro, and Enterprise editions?

Yes. The registry and file association methods are identical across all consumer and professional editions of Windows 11.

Why does Windows Photo Viewer open the Photos app instead?

This usually means the file association was not properly reassigned in Settings > Default apps by file type. Double-check each image extension (.jpg, .png, etc.) and ensure Windows Photo Viewer is selected. Also, verify the registry Command value does not include extra spaces or missing quotes.

Can I use Windows Photo Viewer for RAW images or HEIC files?

Not natively. The restored viewer only supports basic formats: BMP, JPEG, PNG, GIF, TIFF, and WDP. RAW (e.g., .CR2, .NEF) and HEIC files require the Photos app or third-party software with appropriate codecs.

Will Windows updates remove my restored Photo Viewer setup?

Possibly. Major feature updates (e.g., 23H2 to 24H2) may reset file associations or overwrite registry keys. If this happens, simply repeat the steps above. The process is quick and does not require reinstalling anything.