How to Change What App Opens a File on Windows, Mac, and Mobile

When you double-click a file and the wrong app launches, it's because your operating system has a default app association tied to that file type. Changing it is straightforward — but the exact steps, and how permanent the change turns out to be, depends on a handful of factors specific to your setup.

What Are File Associations and Why Do They Exist?

Every file has an extension — the letters after the dot in a filename (.pdf, .jpg, .mp4, .docx). Your operating system maintains a registry or lookup table that maps each extension to a default application. When you open a file, the OS checks that table and launches whichever app is assigned.

These associations are set automatically when you install software. Install a new PDF reader, and it may immediately claim .pdf files. Install a media player, and it might reassign .mp4 or .mkv. This is how apps end up opening files you never explicitly chose them for.

You can override these assignments at any time — either for a one-time open or permanently.

How to Change the Default App on Windows

One-Time Override

Right-click any file and select "Open with", then choose an app from the list. This opens the file without changing your default.

Permanent Change

  1. Right-click the file and select "Open with" → "Choose another app"
  2. Select the app you want
  3. Check "Always use this app to open .[extension] files"
  4. Click OK

Alternatively, go to Settings → Apps → Default Apps (Windows 10/11). Here you can browse by file type or by app and reassign associations in bulk. This is useful if you want to swap your default browser, media player, or image viewer across multiple file types at once.

⚙️ Windows 11 note: Microsoft added an extra confirmation step that makes changing defaults slightly more involved — particularly for web-related file types. You may need to assign each extension individually rather than switching an entire app category at once.

How to Change the Default App on macOS

One-Time Override

Hold Option (or right-click) and select "Open With", then pick an app. macOS will ask you to confirm since the file is being opened by a non-default app.

Permanent Change

  1. Right-click (or Control-click) the file
  2. Select "Get Info" (or press Command + I)
  3. Expand the "Open with" section
  4. Choose your preferred app from the dropdown
  5. Click "Change All…" to apply it to all files of that type

Without clicking "Change All," the change only applies to that single file — a quirk of macOS that catches many users off guard.

How to Change Default Apps on iPhone and Android 📱

Android

Android has long supported user-defined defaults. If two apps can handle the same file type and you open a file, you'll see a prompt asking which to use, with an option to set it as default. To reset or change an existing default:

  • Go to Settings → Apps
  • Select the app currently set as default
  • Tap "Open by default" and clear the defaults

The next time you open that file type, Android will prompt you to reassign.

iPhone (iOS)

iOS historically locked default apps to Apple's own software, but this has changed over time. Users can now set third-party defaults for browsers, email clients, and some other categories via Settings → [App Name] → Default [Browser/Mail] App. However, iOS does not offer the same granular file-extension-level control that Windows and macOS provide. For document types like PDFs, the behavior is more context-dependent — some apps allow you to set a preference within the app itself rather than system-wide.

Factors That Affect How This Works for You

Changing a default app isn't always a permanent, clean fix. Several variables determine how reliable your changes will be:

FactorWhy It Matters
OS versionWindows 11 imposes friction on some default changes; older macOS versions handle "Get Info" differently
App installation behaviorSome apps reset file associations when they update
File type specificitySome extensions (.jpg, .pdf) are standard; others are proprietary and tied to one app
User account permissionsOn managed work or school devices, IT policy may lock certain defaults
Multiple apps supporting the same typeMore competition between apps means more chance of reassignment after updates

It's also worth knowing that some file types have layered associations. A .docx file might open in one app when double-clicked from your desktop but behave differently when opened from an email attachment, a browser download, or a cloud storage app — because those environments have their own handling rules separate from your OS defaults.

When the Change Doesn't Stick

If you've changed a default and it keeps reverting, the most common cause is an app silently reclaiming the association during an update. Some software — particularly browsers and media suites — are aggressive about reasserting themselves as defaults. Checking the app's own settings for a "Set as default" or "Check on startup" toggle can disable this behavior.

On Windows, third-party tools like Default Programs Editor give more granular control if the built-in settings panel isn't holding your changes. On macOS, the command-line tool duti is an option for users comfortable with Terminal.

The Part That Varies by Setup

The mechanical steps above work for most standard configurations — but whether the change behaves the way you expect long-term depends on the specific apps installed, how your device is managed, and what you're actually trying to accomplish. Opening a video file for casual playback is a different situation than reassigning a proprietary format used by a work application, and the right approach in each case isn't the same.