The fastest way depends on what file you're opening
The method changes based on whether you have the right program installed, where the file is stored, and what kind of file it is. Most files open by double-clicking them if the program is already set up. If that doesn't work, you can right-click the file and choose a program from the menu, or drag the file onto a program icon. For files you download from the internet, you may need to unzip them first or move them from your Downloads folder to find them later.
Windows, Mac, and Linux each handle this slightly differently, but the basic idea is the same: the computer needs to know which program should open the file. If you've never opened that file type before, the computer will ask you to choose one.
Key Takeaways
- Double-clicking a file opens it with the program your computer has set as the default for that file type.
- If double-clicking doesn't work, right-click the file, select "Open with," and choose a program from the list.
- Downloaded files often land in your Downloads folder and may need to be moved or unzipped before you can use them.
- File extensions (the letters after the dot, like .pdf or .docx) tell your computer what kind of file it is and which program to use.
Opening a file by double-clicking
Double-clicking is the simplest method if your computer already knows which program opens that file type. Find the file on your desktop, in a folder, or in your file manager, then click it twice quickly. The program should launch and display the file.
This works because your computer has a default program assigned to each file type. On Windows, common defaults include Notepad for .txt files, Microsoft Edge for .pdf files, and Windows Media Player for .mp3 files. On a Mac, Preview opens images and PDFs, and TextEdit opens text files. These defaults can be changed if you install a different program.
If double-clicking opens the wrong program, or if nothing happens, the file type may not have a default set yet. Move to the "right-click method" section below.
Using right-click to choose a program
Right-clicking a file shows a menu with options. Look for "Open with" or "Open with..." and you'll see a list of programs installed on your computer that can read that file type. Click the program you want to use.
On Windows, the menu says "Open with" and shows several options. On a Mac, it says "Open With" and lists programs by name. If you don't see the program you want, look for an option like "Choose Another App" or "More Apps" at the bottom of the list — this opens a full list of every program on your computer.
If you want that program to become the default for this file type going forward, look for a checkbox that says "Always use this app" (Windows) or "Always Open With" (Mac) before you click the program name. This saves you from right-clicking every time.
Finding and moving downloaded files
Files you download from the internet usually land in your Downloads folder. On Windows, click the folder icon in your taskbar or open File Explorer and select Downloads from the left sidebar. On a Mac, click the Finder icon in the dock, then click Downloads in the sidebar.
Once you find the file, you can open it from there, or move it to a folder where you keep similar files. To move it, right-click the file, select "Cut" (Windows) or "Move" (Mac), navigate to the folder you want, right-click again, and select "Paste." This keeps your Downloads folder from getting cluttered.
Some downloaded files are compressed (zipped) to make them smaller. These have a .zip extension and show a zipper icon. Double-click a .zip file to unzip it — your computer will create a new folder with the contents. Then you can open the files inside.
Understanding file extensions and file types
A file extension is the short code after the dot in a filename — for example, .pdf, .docx, .jpg, or .mp4. This tells your computer what kind of file it is and which programs can open it. A .pdf file is a document, a .jpg is a picture, and a .mp4 is a video.
On Windows, file extensions are sometimes hidden by default. If you can't see the extension, open File Explorer, click the View tab at the top, and check the box next to "File name extensions." On a Mac, extensions are usually visible, but if you want to hide them, select the file, press Command+I, and uncheck "Hide extension."
If you try to open a file and nothing happens, the extension may be wrong or corrupted. Check that the filename ends with a real extension like .txt, .pdf, or .mp3. If it ends with something unfamiliar or has no extension at all, the file may be damaged or saved in a format your computer doesn't recognize.
What to do when a file won't open
If double-clicking does nothing, try right-clicking and choosing a program manually. If no programs appear in the "Open with" menu, you may need to install a program that reads that file type. For example, if you have a .psd file (Photoshop format) and Photoshop isn't installed, you'll need to install it or use a free alternative like GIMP.
If you see an error message, search for the file extension online along with the word "open" — for example, "how to open .heic files." This usually shows you which programs work with that format. Many file types have free options available.
Another common problem is that the file itself is corrupted or incomplete. If you downloaded it, try downloading it again. If someone sent it to you, ask them to resend it. If the file came from a USB drive or external hard drive, try copying it to your computer first — sometimes files don't open correctly from external storage.
Opening files from cloud storage and email
Files stored in cloud services like Google Drive, OneDrive, or Dropbox can usually be opened directly in your web browser without downloading them first. Click the file in the cloud service, and it opens in a preview or editor window. You can also download the file to your computer if you want to edit it offline.
Email attachments work the same way. Click the attachment in your email, and it opens in your default program or a preview window. You can also right-click the attachment and select "Download" or "Save" to put it in your Downloads folder for later.
Frequently Asked Questions
Why does my file open in the wrong program?
Your computer has a default program set for that file type. To change it, right-click the file, select "Open with," choose the program you want, and check the box to make it the default. On Windows, you can also go to Settings > Apps > Default Apps and set defaults by file type.
What does "unzip" mean and how do I do it?
Unzipping extracts files from a compressed folder. On Windows and Mac, double-click the .zip file and your computer automatically creates a new folder with the contents. On Windows, you can also right-click and select "Extract All." The original .zip file stays in place.
Can I open a file on my phone the same way as on my computer?
The basic idea is the same, but phones work differently. Tap a file to open it with the default app, or long-press it to see other options. Phone file managers are simpler than computer ones, and not all file types are supported on mobile devices.
What if a file has no extension or the wrong extension?
Right-click the file and try opening it with different programs to see which one works. If you know what type of file it should be, you can rename it and add the correct extension — for example, changing "document" to "document.pdf" — though this only works if the file is actually in that format.
How do I open a file that's password-protected?
Double-click or open the file normally, and your computer will prompt you to enter the password. If you don't know the password, you cannot open the file — there's no way around this for security reasons. Contact whoever created or sent you the file to ask for the password.