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
Overview
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 typeDocuments, images, archives, videos
๐ProtocolWeb links, email links, system links
๐งฉDefault appThe 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.
Use cases
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.
Method 1
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
Press Win + I to open Settings.
Open Apps, then select Default apps.
Use the search box to find an application, a file extension, or a link type.
Select the current default app next to the file type you want to change.
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.
Method 2
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.
Right-click the file you want to open with another program.
Select Open with.
Choose Choose another app or Choose another program.
Select the app you want to use.
Enable Always use this app to open files of this type.
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.
Method 3
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.
Open Settings.
Go to Apps โ Default apps.
In the search field, type the extension including the dot, for example .pdf.
Select the current app shown for that extension.
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
Method 4
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
Open Settings โ Apps โ Default apps.
Search for the protocol name, such as mailto.
Select the current default app.
Choose the application you want Windows to use for that link type.
Classic tools
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.
Reset
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.
Open Settings.
Go to Apps โ Default apps.
Scroll down to the reset section.
Click Reset next to the option that restores Microsoft recommended defaults.
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
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.
Troubleshooting
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
Make sure the program is installed for the current user or for all users.
Use Look for another app on this PC if Windows offers that option.
Repair or reinstall the application so it registers supported file types again.
Check whether the file type is actually supported by that app.
Problem: files still open in the wrong program
Change the association by extension instead of by app category.
Restart File Explorer or sign out and sign in again.
Uninstall conflicting apps that keep reclaiming the file type.
Reset default apps, then configure only the file types you need.
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
FAQ
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.