File Explorer add-ons: choose which preview handler Windows uses for each file type
Description of the new feature / enhancement
Add a page (in File Explorer add-ons, or as a small utility of its own) that lets users choose which installed preview handler File Explorer uses for each file type.
Proposed behaviour:
- List file extensions and their effective preview handler: the handler Explorer will actually load after HKCU and HKLM and the extension and ProgID keys are combined, with the source key shown.
- For any extension, offer a dropdown of every handler registered under
Software\Microsoft\Windows\CurrentVersion\PreviewHandlers(HKCU and HKLM), including third-party ones, not only PowerToys' own. - By default, write the choice as a per-user override under
HKCU\Software\Classes\<ext>\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}, so no elevation is needed and "Reset" simply deletes the override. Offer an "Apply for all users" option (elevated) that writes the HKLM registration instead, since some hosts, such as Outlook and Office, only read preview handlers from HKLM (see #17273). - Optionally, a "Keep my choice" toggle that notices when an installer or app update changes the handler for a pinned type and restores the user's choice (or notifies them).
The same pattern would extend naturally to thumbnail providers ({e357fccd-a995-4576-b01f-234630154e96}), but this request is only for preview handlers.
Scenario when this would be used?
Windows has no UI for this. Whichever app registered last owns the preview pane for a file type, so installing or updating one app silently replaces another's previewer. For example, with both PDF-XChange Editor and SumatraPDF installed, the PDF preview switches between them depending on which one was most recently installed or updated. Users who notice have to find and edit shellex registry keys by hand.
PowerToys is part of this problem as well as being the obvious place to fix it. Its own Settings page warns that enabling its preview handlers "will override other preview handlers already installed" (#17273). #17546 is a concrete case: enabling developer file previews replaces a rendering HTML previewer with a source view, and the only fix is to turn the whole feature off.
Windows already protects default apps from installer hijacking (the protected UserChoice). Preview handlers, thumbnail providers, and other shell extensions never got the same treatment, so this gap affects PDFs, images, video, Office files, CAD formats, and anything else where more than one app ships a previewer.
Supporting information
- The only GUI that has ever done this, Stephen Toub's Preview Handler Association Editor (2007), is no longer downloadable from its official link (the attachment now returns 403): https://learn.microsoft.com/en-us/archive/blogs/toub/preview-handler-association-editor. A comment on #3799 also reports that it doesn't list PowerToys' handlers, likely because those register per-user in HKCU.
- Registration model this would read and write: https://learn.microsoft.com/windows/win32/shell/how-to-register-a-preview-handler
- Prior discussion: #17546 (a commenter suggested an "extension-to-handler GUI ... as its own PowerToy" that could set both HKCU and HKLM, subject to admin), #3799 (the "tool to manage them" half was closed with the Monaco work), #17683, #17273.
- Relation to #26726: this feature manages Windows' preview handler registrations in general, not PowerToys' own previewers, so it stays useful whatever happens to the PowerToys preview pane handlers. It sits close to Registry Preview and the File Explorer add-ons page, both of which already exist.
My strong support for that, whatever it may mean.
PS: Archived Preview Handler Editor: https://web.archive.org/web/20190126083948/https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/01/28/65/88/PreviewHandlerEditor.zip
A real example of this from today, on PowerToys 0.102.2933:
- I'd chosen PDF-XChange as my PDF previewer. Its handler is registered machine-wide (
HKLM\Software\Classes\.pdf\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}={9B68BDF7-95F9-4A1F-851C-27D822F8E3E9}). On 2026-10-14 there was no per-user override for.pdf, and PDF-XChange handled previews. - PowerToys' PDF previewer toggle had been on since September, but it wasn't in effect for PDFs at that point.
- After PowerToys updated to 0.102 on 2026-10-21,
HKCU\Software\Classes\.pdf\shellex\{8895b1c6-…}was set to{A5A41CC7-02CB-41D4-8C9B-9087040D6098}(served byPowerToys.FileExplorerDLLExporter.dll). The user-level key takes priority, so PowerToys silently replaced PDF-XChange for PDF previews. Nothing told me the handler had changed; I only noticed because previews looked different. - Turning the toggle off removed the HKCU override, and PDF-XChange came back.
The toggle works as designed, but it shows the gap: the only way to find out which handler is active, and who set it, is reading the registry. The picker proposed above would have shown "PowerToys (per-user override)" next to .pdf, and a "Keep my choice" option would have caught the update re-registering it.