The basic ways to open a file on your Mac

On a MacBook, you open a file by finding it first, then telling your Mac which program should open it. The most direct route is to locate the file in Finder — the folder icon in your dock — double-click it, and your Mac will open it in the program it thinks belongs there. If that program is wrong, you can right-click the file, choose "Open With", and pick a different one.

You can also open a file by opening the program first. Launch the application you want to use, go to File in the menu bar, click Open, and browse to find your file. This method is useful when you know which program you need but are not sure where the file lives on your computer.

A third way is to drag the file directly onto a program icon in your dock or Applications folder. Your Mac will open that file in whichever program you dropped it on. This works for most file types, though some programs will reject files they cannot handle.

Key Takeaways

  • Double-clicking a file in Finder opens it in the default program your Mac has assigned to that file type.
  • Right-clicking a file and selecting "Open With" lets you choose a different program if the default one is wrong.
  • You can open a program first, then use File > Open to browse for the file you want to work with.
  • Dragging a file onto a program icon in your dock or Applications folder will open that file in that program.
  • If a program refuses to open a file, the file type may not be compatible with that program, and you will need to choose a different one.

Finding files in Finder

Finder is the file manager built into every MacBook. Click the Finder icon in your dock — it looks like a blue and white face — and a window opens showing your files and folders. By default, Finder shows you the Recents view, which displays files you have used recently. To find a specific file, click Locations on the left side and choose where to look: Desktop, Documents, Downloads, or any folder you have created.

If you know the file name but not where it is stored, use Spotlight search. Press Command and Space at the same time, type the file name or part of it, and Finder will show you every file matching that name on your Mac. Click the one you want and Finder will open the folder containing it.

Once you have found the file, double-click it. Your Mac will launch the program associated with that file type and open the file inside it. If nothing happens when you double-click, the file may be corrupted, or your Mac may not have a program that can open it.

Changing which program opens a file by default

Every file type on a Mac — .pdf, .jpg, .docx, .mp3 — has a default program assigned to it. When you double-click a PDF, it opens in Preview by default. When you double-click a Word document, it opens in Microsoft Word if you have it installed, or in Pages if you do not. You can change these defaults.

Right-click the file you want to change, and select "Open With". A submenu appears showing all the programs on your Mac that can open that file type. Click the program you want to use. To make that program the default for all files of that type, click "Open With" again, but this time hold down Option while you click the program name. The menu will change to say "Always Open With", and from that point forward, all files of that type will open in the program you chose.

You can also change defaults without opening a file. Right-click any file of the type you want to change, select "Get Info", and look for the "Open With" section. Click the dropdown menu, choose your preferred program, then click "Change All". This changes the default for every file of that type on your Mac.

Opening files from inside a program

Many people find it easier to open the program first, then open the file from within it. Click the program icon in your dock or Applications folder to launch it. Once the program is open, look at the menu bar at the top of your screen. Click File, then click Open. A dialog box will appear showing your folders and files. Navigate to the location where your file is stored, click the file name, and click Open.

This method is especially useful if you are not sure which program can open your file, or if you want to open multiple files in the same program without closing and reopening it each time. Most programs — Microsoft Word, Google Chrome, Preview, Photos — follow this same File > Open pattern, so once you learn it in one program, you know how to do it in most others.

Some programs also show a list of recently opened files when you first launch them. You may see a "Recent" or "Open Recent" option in the File menu. Click it to see files you have worked with recently in that program, and click one to open it immediately.

Dragging files onto programs

You can open a file by dragging it directly onto a program icon. Locate the file in Finder, then click and hold on it. While holding the mouse button down, drag the file over to your dock and hover it over the program icon you want to use. Release the mouse button, and your Mac will open that file in that program.

This method works with programs in your dock, programs in your Applications folder, or even program icons on your desktop. Not every program accepts every file type — if you drag a video file onto a text editor, for example, the program will refuse to open it. When that happens, you will see a small circle with a line through it appear under your cursor, telling you that program cannot open that file.

Dragging is fastest when you already know which program you need. If you are unsure, right-clicking and choosing "Open With" gives you a list of compatible programs to choose from.

What to do when a file will not open

If you double-click a file and nothing happens, or you see an error message, the problem is usually one of three things: your Mac does not have a program that can open that file type, the file is corrupted, or the file is in a format your Mac does not recognize.

First, try right-clicking the file and selecting "Open With" to see what programs are available. If the list is empty or shows only programs you know cannot open that file type, you may need to install a new program. For example, if you have a .psd file (Photoshop format) and you do not have Photoshop or a compatible program installed, you will not be able to open it. Search the Mac App Store or the internet for a program that handles that file type.

If you see a message saying the file is damaged or cannot be opened, the file itself may be corrupted. This sometimes happens if a file was not downloaded completely, or if it was damaged during transfer. Try downloading or copying the file again. If the problem persists, the original file may be permanently damaged.

If you are unsure what type of file you have, right-click it, select "Get Info", and look at the "Kind" field. This tells you the file type. You can then search for programs that open that type of file.

Understanding file extensions and file types

A file extension is the short code at the end of a file name, after the period. A file named "photo.jpg" has the extension .jpg. A file named "letter.docx" has the extension .docx. The extension tells your Mac what kind of file it is and which programs might be able to open it.

By default, MacBooks hide file extensions in Finder. If you want to see them, open Finder, click Finder in the menu bar, select Preferences, click the Advanced tab, and check the box next to "Show all filename extensions". From that point forward, you will see the extension on every file.

Knowing the extension is useful when troubleshooting. If you have a file named "document" with no extension visible, you cannot tell whether it is a Word document, a PDF, or something else. Turning on extensions solves this. It also helps you spot files that may have been renamed incorrectly — if someone sent you a file named "photo.txt" but it is actually a JPEG image, you can rename it to "photo.jpg" and your Mac will open it correctly.

Frequently Asked Questions

Why does my file open in the wrong program?

Your Mac has assigned a default program to that file type, and it chose the wrong one. Right-click the file, select "Open With", and choose the correct program. To make that program the default for all files of that type, hold Option while clicking the program name, then click "Always Open With".

Can I open a file that was created on a Windows computer?

Yes, most files created on Windows open on a Mac without any problem. Word documents, PDFs, images, and videos all work the same way. The main exception is files created in Windows-only programs — some specialized software does not have a Mac version. If you cannot open a Windows file, try searching for a Mac program that handles that file type.

What does it mean when I see a question mark icon on a file?

A question mark means your Mac does not have a program installed that can open that file type. Right-click the file, select "Get Info", and look at the "Kind" field to see what type of file it is. Then search the Mac App Store or the internet for a program that opens that file type.

How do I open a file that is inside a compressed folder?

MacBooks automatically decompress .zip files when you download them. The decompressed folder and its contents will appear in the same location as the .zip file. If this does not happen automatically, double-click the .zip file and your Mac will extract it. You can then open the files inside normally.

Can I change the default program for just one file, or does it change for all files of that type?

Right-clicking and choosing "Open With" opens that one file in a different program without changing the default. To change the default for all files of that type, hold Option while clicking the program name in the "Open With" menu, then click "Always Open With".