How Do I Fix File Associations So Files Open in the Right Program?

A file association is the link between a file extension (like .PDF or .JPG) and the program your computer uses to open it. When that link is wrong or missing, files open in the wrong app or don't open at all. You can fix it by checking the current association, then changing the default program for that extension on Windows or macOS. If no program is associated, first identify the file type, then either install a compatible app or inspect the file with a universal viewer.

What a file association actually is

Every file has an extension — the letters after the last dot in its name. Your operating system keeps a table that maps each extension to a default program. That mapping is the file association.

For example, .PDF is typically associated with a PDF reader, and .JPG with an image viewer. FileInfo.com maintains a searchable database of over 10,000 file extensions with details about the associated file types, so you can look up what a given extension is and which programs open it.

Problems happen in three common ways:

  • Wrong program: The extension is linked to an app you didn't intend, so double-clicking opens the wrong thing.
  • Broken association: The linked program was uninstalled or moved, so nothing opens.
  • No association: The extension was never linked to any program, so the system asks you to choose one.

Check the current association

Before changing anything, confirm what's actually linked.

On Windows

  1. Right-click the file and choose Properties.
  2. Look at Opens with to see the current default program.
  3. To change it, click Change next to that field and pick a different app.

You can also check by extension: open Settings → Apps → Default apps, then search for the extension (for example, .pdf) to see and change its handler.

On macOS

  1. Right-click the file and choose Get Info.
  2. Expand Open with to see the current app.
  3. Choose a different app from the dropdown, then click Change All to apply it to every file of that type.

Change the default program for a file type

The goal is to set one program as the default for all files sharing an extension.

Windows:

  • Right-click any file of that type → Properties → Change → select the app → confirm.
  • Or use Settings → Apps → Default apps and set the association by extension or by app.

macOS:

  • Right-click a file → Get Info → Open with → pick the app → Change All → confirm.

After the change, double-click a file of that type to verify it opens in the program you chose.

Reset a broken association

If a file won't open because the associated program is gone, the fix is to re-point the extension to a working app.

  • Windows: Reinstall the intended program, or use Default apps to assign a different one. If the association is stuck, choosing a new default app for that extension usually overrides the broken link.
  • macOS: Use Get Info → Open with → Change All to reassign the extension to an installed app.

The key point: an association can only point to a program that's actually installed. If the original app is missing, install it again or pick a replacement.

When no program is associated

If nothing opens the file and no app is linked, you have two paths:

  1. Identify the file type first. Look up the extension in a database like FileInfo.com to learn what the file is and which programs can open it. This prevents installing the wrong software.
  2. Inspect it with a universal viewer. FileInfo.com recommends universal file viewers for exactly this situation:
    • File Viewer Plus — for Windows
    • File Viewer — for Mac
    • File Viewer — for Android

A universal viewer lets you open and inspect a file even when you don't have the specific program that created it, which is useful for unknown or uncommon formats.

Quick reference

Situation What to do
File opens in the wrong app Change the default program for that extension
File won't open, program missing Reinstall the app or assign a new default
No association at all Identify the extension, then install a compatible app
Unknown format Look up the extension, then use a universal viewer

Common pitfalls

  • Changing one file vs. all files: On macOS, picking an app in Open with without clicking Change All only affects that single file. On Windows, Properties → Change sets the default for the whole extension.
  • Assuming the extension is correct: A file can have a misleading extension. If it won't open even with the "right" program, verify the actual format.
  • Skipping identification: Installing software for the wrong format wastes time. Confirm the file type before choosing a program.
fileinfo.com
FileInfo is the central file extensions registry and contains a database of over 10,000 file types.