How to Reset File Associations to Defaults in Windows 11

File type associations in Windows 11 determine which application launches automatically when you double-click a specific file format. Over time, third-party software installations, uninstalls, or accidental misconfigurations can hijack standard file extensions like PDF, JPG, or TXT. When an association breaks, files may fail to open or trigger an unexpected application loop. Restoring default file associations resets these mappings to the original Microsoft recommended applications across the operating system.

Resetting All File Associations via Windows 11 Settings

The quickest and most reliable method to restore system-wide defaults is through the Windows 11 Settings application. This resets all file extensions, URL protocols, and application handlers in a single operation.

  1. Open Settings by pressing Windows + I on your keyboard.
  2. Select Apps from the left-hand navigation menu.
  3. Click on Default apps in the right-hand pane.
  4. Scroll down to the bottom of the page to find the Related settings section.
  5. Locate the option labelled Reset all default apps and click the Reset button.
  6. A confirmation prompt will appear stating: “Resetting will revert all default apps and recommended app defaults”. Click OK to confirm.

Windows 11 will immediately revert file types and protocol handlers (such as HTTP, MAILTO, and PDF) back to Microsoft-recommended applications such as Microsoft Edge, Photos, and Media Player.

Resetting Individual File Types and Protocols

If only a single file format (such as .html or .png) has been improperly mapped, resetting the entire operating system is unnecessary. You can target individual extensions directly.

  1. Navigate to Settings > Apps > Default apps.
  2. In the search box labelled Set a default for a file type or link type, type the extension you want to reconfigure (for example, .pdf or .docx).
  3. Click on the current default application displayed next to the extension.
  4. Choose your preferred program from the list of installed applications or select Look for an app in the Microsoft Store.
  5. Click Set default to save your selection.

Resetting File Associations via Command Prompt and PowerShell

For administrative environments or automated system recovery, Windows includes internal association tools via the command line. You can inspect and reassign associations using administrative PowerShell or Command Prompt.

# Query the current file type mapping for an extension
assoc .txt

# Query the executable path assigned to the file type
ftype txtfile

# Reassign a file type association manually
assoc .txt=txtfile
ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE "%1"

To repair corrupted shell associations across user profiles, you can also restart the Windows Explorer process to flush cached icon and association handlers:

Stop-Process -Name explorer -Force; Start-Process explorer

Troubleshooting Stubborn or Corrupted File Extensions

When an uninstalled program leaves orphaned registry keys, the Settings app may display a blank icon or refuse to retain your selected default. This issue stems from the User Choice registry branch retaining invalid permissions.

  1. Press Windows + R, type regedit, and press Enter to launch the Registry Editor.
  2. Navigate to the following path:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
  3. Locate the subkey corresponding to your problematic extension (for example, .pdf).
  4. Expand the key and look for a subfolder named UserChoice.
  5. Right-click the UserChoice key and select Delete.
  6. Restart your PC or restart Windows Explorer to allow Windows to re-create a clean UserChoice key with default system permissions.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.