How to Change What Program Opens a File (Windows, Mac & More)

Every operating system has a built-in system for deciding which program launches when you double-click a file. Most of the time it works invisibly — but the moment you install a new app, update your OS, or receive a file type you've never opened before, that system becomes very visible very fast. Understanding how file associations work puts you back in control.

What Is a Default Program (and Why Does It Change)?

When you open a file, your operating system checks the file extension — the letters after the dot in a filename (.pdf, .jpg, .mp4, .docx) — and maps it to a registered application. This mapping is stored in a system registry or preferences database, depending on your OS.

Default programs shift for a few common reasons:

  • A newly installed app claims the association during setup
  • A software update resets preferences back to the developer's defaults
  • You've opened a file type for the first time and the OS made an automatic guess
  • You're working with a less common format that has no registered handler

The association itself is not permanent. It can be changed at any time, as many times as you want.

How to Change Default Programs on Windows

Windows gives you two main paths.

Method 1 — Right-click the file directly:

  1. Right-click the file you want to open differently
  2. Select "Open with""Choose another app"
  3. Select the program from the list
  4. Check "Always use this app to open .[extension] files" if you want it to stick permanently
  5. Click OK

Method 2 — Through Settings:

  1. Go to Settings → Apps → Default Apps
  2. You can search by file extension or by app name
  3. Click the extension or app to reassign it

Windows 10 and Windows 11 handle this slightly differently in the UI layout, but both use the same underlying association logic. Windows 11 in particular routes you through a more granular extension-by-extension view rather than a broad "set defaults for this app" approach.

How to Change Default Programs on macOS

macOS stores file associations per-file-type in the system's Launch Services database.

To change the default for all files of a type:

  1. Right-click (or Control-click) any file with the extension you want to change
  2. Select "Get Info" (or press ⌘ + I)
  3. Expand the "Open with" section
  4. Choose your preferred app from the dropdown
  5. Click "Change All…" to apply it to every file of that type — not just the one you right-clicked

If you skip "Change All," the change only applies to that individual file. This is a detail that trips up a lot of users.

How to Change Default Apps on Android and iOS 📱

Android is more flexible here. Most Android versions let you:

  • Long-press or open a file, then select "Open with"
  • Choose an app and select "Always" to set it as default
  • Clear existing defaults under Settings → Apps → [App Name] → Open by default → Clear defaults

iOS and iPadOS have historically been more restrictive. Apple has opened up default app choices in recent years — you can now change default browsers and email clients in Settings → [App Name] for supported categories. However, iOS still doesn't offer the same granular per-extension control that desktop operating systems do. Many file types on iOS open in whichever app the system determines is most appropriate, with less user override.

File Types, Formats, and Why Some Are More Complicated 🔧

Not all file extensions behave the same way in the association system.

ScenarioWhat Happens
Common format (.jpg, .mp3, .pdf)Many apps compete to be the default; easy to reassign
Proprietary format (.psd, .ai, .indd)Usually only one capable app installed; limited choice
Plain text variant (.csv, .xml, .json)Can open in text editors or specialized apps — both valid
System/executable files (.exe, .dll, .sys)Associations are locked; shouldn't be changed
Unknown extensionOS may show "open with" dialog automatically

Some formats — like .pdf — have dozens of capable applications available. Others, like .psd (Photoshop), are designed around a single vendor's ecosystem, even if third-party tools can read them with varying degrees of accuracy.

What Changes When You Reassign a File Type

Changing a file association only affects how files open going forward from that device. It does not:

  • Alter the file itself
  • Affect how other people's computers open the same file
  • Convert the file to a different format
  • Change what the file contains

If you reassign .docx files to open in Google Docs or LibreOffice instead of Microsoft Word, the file stays a .docx. The content renders in a different program, but the underlying format is unchanged.

Variables That Affect Your Specific Situation

The right default app for any file type depends on factors that vary significantly from user to user:

  • What software you have installed — you can only assign apps that are already on the device
  • OS version — Windows 10, Windows 11, macOS Ventura, macOS Sonoma, and mobile platforms each handle this differently in the UI
  • How often you open that file type — a casual viewer needs something different from someone editing daily
  • File format complexity — some formats preserve perfectly across apps, others lose formatting or features
  • Workflow integrations — if you use cloud storage, collaboration tools, or specific ecosystems, the "best" default may be dictated by what fits the pipeline

What works well for someone who opens PDFs occasionally for reading is a different answer from what works for someone annotating contracts daily. The mechanics of changing the default are straightforward — the question of which app to assign is where individual setup and habits determine the outcome.