Change Default App for File Types on macOS
In this article
To change the default application that opens a specific file type on macOS, you use the “Get Info” window in Finder. Select the file, press Command-I, choose a new app from the “Open with” section, then click “Change All…” to apply it to every file of that type. This guide covers the steps, how the system decides which app to use, common problems, and related settings like Finder extensions and Quick Look.
Why macOS Picks a Certain App
macOS uses two layers to decide which app opens a file. The first is a global registry of file types and their default apps, managed by Launch Services. The second is per-file metadata stored in the file system, which can override the global default. When you double-click a file, the system checks the file’s extension (like .pdf, .jpg, .txt) and its UTI (Uniform Type Identifier), then looks up the registered handler. If you have multiple apps that can open the same type, the one listed first in the registry wins unless a per-file override exists.
Most of the time you don’t need to touch this registry directly. The Get Info method updates both the per-file setting and, when you click “Change All…”, the global default for that extension. However, some apps (like Adobe products or Microsoft Office) may register themselves aggressively and reset defaults after updates, which is why the problem keeps coming up.
Step-by-Step: Change Default for One File Type
- In Finder, locate any file with the extension you want to change (for example, a .pdf or .mp4).
- Right-click the file and select Get Info, or select it and press Command-I.
- In the Info window, scroll to the Open with section. Click the dropdown and choose the app you want to use.
- If you want this to apply to all files of that type, click the Change All… button directly below the dropdown. A confirmation dialog appears; click Continue.
- Close the Info window. The change takes effect immediately for new double-clicks.
That’s the core workflow. It works for documents, images, videos, and most other file types. It does not work for folders or disks, which have their own settings.
What “Change All…” Actually Does
When you click “Change All…”, macOS updates the Launch Services database for that file extension and UTI. It does not modify the files themselves, and it does not change the per-file override for files you’ve already opened with a different app manually. So if you previously set a specific file to open with Preview, that one file will still open with Preview even after you change the global default. To fix that, you’d need to reset that file’s override individually (using Get Info again) or use the terminal command mdls to inspect the metadata, though the GUI method is simpler for most users.
Another subtlety: some file types share the same UTI. For example, .jpg and .jpeg are the same UTI, so changing one changes the other. Similarly, plain text files (.txt, .text) may share a UTI, so a change applies to all of them. This is usually what you want, but it can surprise you if you only wanted to change one extension.
Common Problems and Fixes
The App Isn’t in the List
If the app you want doesn’t appear in the “Open with” dropdown, click Other… at the bottom of the list. This opens a file picker where you can navigate to the app in your Applications folder. You can also enable “All Applications” in the sidebar to see every app, including ones that don’t declare support for that file type. Choosing an app that doesn’t support the file may result in an error or a blank window.
Changes Don’t Stick After App Update
Some apps re-register themselves as the default when they update. This is common with browsers and media players. To re-apply your preference, repeat the Get Info steps. If it happens repeatedly, you can try deleting the app’s preference files, but that’s rarely worth the effort. A more permanent solution is to use a third-party tool like RCDefaultApp (free) or SwiftDefaultApps, which gives a more direct interface to Launch Services, though these tools require separate installation.
File Always Opens in the Wrong App
If a file opens in an unexpected app despite your changes, check whether the file has a custom icon or extension. Sometimes files have a hidden extension (like .txt vs .rtf) or a double extension (like .tar.gz) where the system reads the last one. Also check if the file is actually a package (a folder that looks like a file), such as .app or .rtfd. For packages, the “Open with” setting may not apply; you might need to use the terminal command open -a to force a specific app.
Alternatives: Terminal and Third-Party Tools
If you prefer the command line, you can use the duti utility (installable via Homebrew) to set defaults for file extensions. For example, duti -s com.apple.Preview pdf sets Preview as the default for PDF files. This is useful for scripting or for changing many types at once. However, it requires knowing the bundle identifier of each app, which you can find with mdls -name kMDItemCFBundleIdentifier on an app file.
Third-party GUI tools like RCDefaultApp (older, may not work on recent macOS) or SwiftDefaultApps (actively maintained) provide a table of all file types and their current default, letting you change them in bulk. These are especially handy if you’re a power user who wants to see the whole registry at once. They are free and open source, but you should download them from the official GitHub repositories to avoid malware.
Related Settings: Quick Look, Spotlight, and Finder Extensions
Changing the default app doesn’t affect other system features. Quick Look (press Space to preview a file) uses its own set of Quick Look plugins, which are separate from the default app. If Quick Look shows the wrong preview, you need to install or reorder plugins, which is a different topic. Spotlight search results also use their own handlers to preview files, but they generally respect the default app when you press Return to open a result.
Finder extensions (right-click menu items) are provided by apps and are not tied to the default handler. For example, you might have a “Compress” option from a third-party archiver even if your default for .zip is Archive Utility. These extensions are managed in System Settings > Privacy & Security > Extensions, and they are independent of the default app setting.
Resetting All Defaults to Factory
If you’ve made many changes and want to start over, you can reset Launch Services to its initial state. Open Terminal and run:
lsregister -kill -r -domain local -domain system -domain user
This command rebuilds the Launch Services database, restoring Apple’s default associations. It does not delete any files or apps, but it will clear all your custom “Open with” choices. You’ll need to re-apply any preferences you want. This is a safe operation, but it can take a minute and may require you to log out and back in for all changes to take effect.
Frequently Asked Questions
Why does my Mac keep opening PDFs in Safari instead of Preview?
Safari registers itself as a PDF handler when you use it to view PDFs. To change it back, use Get Info on any PDF, select Preview, and click “Change All…”. If Safari updates, it may re-register, so you might need to repeat this. You can also disable Safari’s PDF viewing in Safari’s settings under Websites > PDF, but that only affects Safari’s internal viewer, not the default app for double-clicking PDF files.
Can I set a default app for all files with a certain extension, not just one file?
Yes. Use Get Info on any file with that extension and click “Change All…”. This updates the global default for that extension. If the file type has multiple extensions (like .htm and .html), you may need to repeat the process for each one, unless they share the same UTI, in which case one change covers all.
What if the app I want doesn’t appear in the “Open with” list?
Click “Other…” at the bottom of the list and navigate to the app in your Applications folder. If the app doesn’t support the file type, it may still open but show an error. You can also enable “All Applications” in the file picker to see every installed app, even those that don’t declare support.
Does changing the default app affect the file itself?
No. The file’s content and metadata are not modified. The change only updates the system’s preference for which app should handle that file type. The file’s creation date, size, and contents remain untouched.
How do I make a file always open with a specific app, even after a reboot?
The Get Info method persists across reboots. It’s stored in the Launch Services database and per-file metadata, both of which survive restarts. If an app update overrides your choice, you’ll need to reapply it, but a normal reboot won’t change anything.
Can I set a default app for all unknown file types at once?
Not through the standard GUI. macOS doesn’t provide a single setting for “all unknown files.” You can set a default for each extension individually, or use a third-party tool like SwiftDefaultApps to manage them in bulk. For truly unknown extensions, macOS will prompt you to choose an app the first time you open one, and you can select “Always Open With” in that dialog.