Default Apps ยท File Extensions ยท Windows 10 & 11

File Associations in Windows: How to Configure Default Apps

A practical guide to changing which program opens each file type, choosing defaults by extension, repairing broken associations, and resetting Windows defaults when files open in the wrong app.

โŠž Windows 10 โŠž Windows 11 ๐Ÿ“„ File extensions โš™๏ธ Default apps

What Are File Associations in Windows?

File associations tell Windows which application should open a specific file type or link type. For example, a .pdf file may open in Microsoft Edge, Adobe Acrobat, Foxit Reader, or another PDF viewer depending on the default app configured for that extension.

Windows uses two closely related concepts: file extension associations and protocol associations. File extensions include items such as .jpg, .txt, .docx, and .mp4. Protocols include link types such as http, https, mailto, and ms-settings.

๐Ÿ“„ File type Documents, images, archives, videos
๐Ÿ”— Protocol Web links, email links, system links
๐Ÿงฉ Default app The program Windows uses automatically
โ„น๏ธ
Quick answer To configure file associations, open Settings โ†’ Apps โ†’ Default apps, choose an app or search for a file extension, then select the program that should open that type of file.

When Should You Change File Associations in Windows?

You should change file associations when Windows opens a file in the wrong app, when a newly installed program takes over file types without your preference, or when you want a more suitable default program for daily work.

Common examples

  • PDF files open in the browser instead of a PDF editor.
  • Images open in Paint instead of Photos or another viewer.
  • Music or video files open in an app you do not use.
  • Text files open in Notepad instead of a code editor.

Be careful with

  • Unknown file extensions that may belong to system components.
  • Executable formats such as .exe, .bat, and .cmd.
  • Registry edits copied from old Windows versions.
  • Changing all defaults at once without checking the impact.

How to Change Default Apps in Windows 11 and Windows 10 Settings

The safest and most convenient method is the built-in Default apps page. It lets you configure associations by application, file extension, or protocol without editing the Registry.

โœ“ Windows 11 โœ“ Windows 10 โœ“ Recommended

Windows 11 path

Settingsโ€บ Appsโ€บ Default apps
  1. Press Win + I to open Settings.
  2. Open Apps, then select Default apps.
  3. Use the search box to find an application, a file extension, or a link type.
  4. Select the current default app next to the file type you want to change.
  5. Choose the new application and confirm the change.

Windows 10 path

Settingsโ€บ Appsโ€บ Default apps

In Windows 10, the main Default apps page includes categories such as email, maps, music player, photo viewer, video player, and web browser. For precise file types, use Choose default apps by file type.

How to Change a File Association Using the Open With Menu

The Open with menu is best when you already have a file in front of you and want to change the default program for that exact file type.

  1. Right-click the file you want to open with another program.
  2. Select Open with.
  3. Choose Choose another app or Choose another program.
  4. Select the app you want to use.
  5. Enable Always use this app to open files of this type.
  6. Click OK or Set default.
โœ…
Best for one file type Use this method for extensions such as .pdf, .jpg, .txt, .zip, .mp3, and .mp4. It changes the default for the extension, not only for the selected file.

How to Set Default Apps by File Extension in Windows

If you know the exact file extension, configure it directly. This is the cleanest method when several related formats should open in different apps. For example, you may want .txt to open in Notepad, .log in a log viewer, and .ps1 in a code editor.

  1. Open Settings.
  2. Go to Apps โ†’ Default apps.
  3. In the search field, type the extension including the dot, for example .pdf.
  4. Select the current app shown for that extension.
  5. Choose the preferred program and save the change.
File type Typical extension Common default app choices
PDF document .pdf Microsoft Edge, Adobe Acrobat, PDF-XChange Editor, Foxit Reader
Text file .txt Notepad, Notepad++, Visual Studio Code
Image file .jpg, .png, .webp Photos, Paint, IrfanView, XnView, Photoshop
Archive .zip, .7z, .rar File Explorer, 7-Zip, WinRAR, PeaZip
Video file .mp4, .mkv, .avi Media Player, VLC, MPC-BE, Movies & TV

How to Configure Protocol Associations for Links and Email

Protocol associations control what happens when you click a link. The most common examples are browser links and email links. If clicking an email address opens the wrong application, configure the mailto protocol.

Protocol

http and https

These protocols control the default web browser used when opening website links from apps, documents, and messages.

Browser links
Protocol

mailto

This protocol controls the mail app used when clicking an email address or contact link.

Email links
Protocol

ms-settings

This protocol opens Windows Settings pages. It is normally handled by Windows and should not be changed manually.

System links
  1. Open Settings โ†’ Apps โ†’ Default apps.
  2. Search for the protocol name, such as mailto.
  3. Select the current default app.
  4. Choose the application you want Windows to use for that link type.

Can You Still Use Control Panel to Change File Associations?

Modern Windows versions mainly route file association management through Settings. The classic Control Panel may still show related app and program options, but for default apps and file extensions, the Settings app is the recommended place to make changes.

Practical rule: use Settings โ†’ Apps โ†’ Default apps for normal configuration. Use classic tools only when working with legacy programs or older Windows builds.

How to Reset File Associations to Microsoft Defaults

If many file types open in the wrong apps, reset default apps instead of fixing each extension manually. This returns common defaults such as browser, mail, photos, music, and video to Microsoft-recommended choices.

  1. Open Settings.
  2. Go to Apps โ†’ Default apps.
  3. Scroll down to the reset section.
  4. Click Reset next to the option that restores Microsoft recommended defaults.
  5. After the reset, manually set your preferred browser, PDF reader, media player, and archive tool again.
โš ๏ธ
Important Resetting defaults may undo custom associations for many extensions. Use it when the system is messy, not when only one file type opens in the wrong app.

Advanced File Association Management with DISM

On managed PCs, administrators can export and import default app associations. This is useful for preparing a standard configuration for multiple computers. For personal computers, the Settings app is usually safer.

Export current default app associations

Command Prompt as Administratordism /online /Export-DefaultAppAssociations:"C:\AppAssociations.xml"

Import default app associations

Command Prompt as Administratordism /online /Import-DefaultAppAssociations:"C:\AppAssociations.xml"
๐Ÿ› ๏ธ
Code vs text-mark Full commands and file paths are placed in code blocks. Short file extensions, protocol names, and UI fragments such as .pdf or mailto are marked with text-mark for better inline readability.

How to Fix Broken File Associations in Windows

Broken file associations usually happen after uninstalling an app, installing several programs that handle the same file type, importing old Registry tweaks, or using system cleaners that removed association entries.

๐Ÿ”
Reassign the extension
Search for the extension in Default apps and select the correct program again.
Best first step
๐Ÿงน
Reset defaults
Use reset when many common file types open incorrectly after software changes.
Broad fix
๐Ÿ“ฆ
Reinstall the app
If the desired app does not appear in the list, reinstall or repair it.
Missing app

Problem: the app does not appear in the list

Problem: files still open in the wrong program

Problem: a file has no extension

Enable file name extensions in File Explorer, confirm the real file type, and rename the file only if you are sure what format it uses.

File Explorerโ€บ Viewโ€บ Showโ€บ File name extensions

File Associations in Windows: Frequently Asked Questions

Q How do I change what app opens PDF files in Windows? โŒ„
Open Settings โ†’ Apps โ†’ Default apps, search for .pdf, select the current default app, and choose your preferred PDF reader.
Q How do I make Chrome, Firefox, or Edge the default browser? โŒ„
Go to Settings โ†’ Apps โ†’ Default apps, select the browser, and set it as the default for web-related file types and protocols such as http and https.
Q Why does Windows keep asking what app to use? โŒ„
Windows asks this when no stable default app is registered for the file type, when the associated program was removed, or when the file extension is unusual. Assign the extension manually in Default apps.
Q Can I change file associations through the Registry? โŒ„
It is technically possible, but not recommended for normal use. Modern Windows protects user-choice defaults, and direct Registry edits can be ignored or cause inconsistent behavior. Use Settings or administrative deployment tools instead.
Q Does changing a file association modify the file itself? โŒ„
No. Changing the association only changes which app Windows launches by default. The file content and format remain unchanged.

๐ŸŽฏ Summary & Key Takeaways

To configure file associations in Windows, start with Settings โ†’ Apps โ†’ Default apps. Search for the extension or protocol you want to change, choose the preferred application, and confirm the default.

Use Open with when you need a quick fix for one file type, use the extension search when you need precision, and use Reset only when many associations are broken. Keep full commands in code blocks, but format short inline items such as .txt, .pdf, and mailto with text-mark for cleaner article typography.