The fastest way depends on what you're trying to open
Opening a file usually means finding it and telling your device which program should read it. On most computers and phones, you can do this three ways: double-click the file itself, right-click and choose a program, or open the program first and then open the file from inside it. Which method works fastest depends on whether you know where the file is, whether your device recognizes what type of file it is, and whether you have the right program installed.
The most common mistake is trying to open a file type your device doesn't have a program for — for example, trying to open a Photoshop file (.psd) when you only have basic image viewers installed. This guide covers how to open files on Windows, Mac, and phones, what to do when nothing happens, and how to change which program opens a file by default.
Key Takeaways
- Double-clicking a file opens it with whatever program your device has set as the default for that file type.
- If double-clicking does nothing, your device probably doesn't have a program installed that can read that file type.
- Right-clicking a file and choosing "Open with" lets you pick a different program if the default one isn't working.
- You can change which program opens a file type by default through your device settings, so the same file type always opens the way you want.
- File extensions (the letters after the dot, like .pdf or .docx) tell your device what type of file it is and which program should open it.
Opening a file on Windows by double-clicking
On Windows, the simplest method is to find the file and double-click it. Your computer looks at the file extension — the letters after the dot in the filename — and opens the file with whatever program you've set as the default for that type. For example, double-clicking a .pdf file opens it in Adobe Reader or Microsoft Edge, depending on what you've chosen before.
If double-clicking does nothing, your computer doesn't have a program installed for that file type. You'll see the file highlighted but nothing will open. This is the most common reason people think their file is broken when it's actually just missing the right program. The solution is either to install a program that can read that file type, or to right-click the file and manually choose a different program.
If you see an error message like "Windows cannot find a program to open this file," that's the same problem — you need to install the right software first. Search online for the file extension (for example, ".dwg files") and you'll find what programs can open it.
Opening a file on Mac by double-clicking
On Mac, double-clicking works the same way as Windows. Your Mac looks at the file extension and opens it with the default program for that type. Most common file types — .pdf, .jpg, .docx, .xlsx — have programs built in, so double-clicking usually works immediately.
If double-clicking doesn't work on Mac, try right-clicking the file (or Control+click if you don't have a right-click button) and look for "Open" or "Open with." This shows you what programs Mac thinks can open this file type. If the list is empty or shows only programs you don't want to use, you'll need to install new software.
On newer Macs with Apple Silicon chips, some older programs may not work. If you see a message saying a program "cannot be opened because it is not from an identified developer," that's a security setting, not a broken file. You can usually override this by going to System Settings > Privacy & Security and allowing the program to run.
Opening a file on iPhone or Android
On phones, files are usually stored in a Files app (iPhone) or Files by Google (Android). Open that app, find your file, and tap it. Your phone will open it with the default program for that file type, just like on a computer.
If tapping does nothing, your phone doesn't have a program that can read that file type. Phones have fewer programs installed by default than computers do, so this happens more often. You may need to download an app from the App Store (iPhone) or Google Play (Android) that can open that file type. For example, if you're trying to open a .zip file on iPhone, you'll need to download an app like Archive Utility or The Unarchiver.
Some files can only be opened on a computer, not on a phone. If you can't find an app that opens your file type, try opening it on a computer instead, or ask whoever sent you the file what program they used to create it.
Right-clicking to choose a different program
If the default program isn't working or isn't the one you want, right-click the file (Windows and Mac) or long-press it (phone). You'll see a menu with options. Look for "Open with" or "Open with..." and you'll see a list of programs your device thinks can open this file type.
Choose the program you want to use. If the program you want isn't in the list, you may need to install it first. On Windows, you can sometimes click "Choose another app" or "More apps" to see programs that aren't shown by default. On Mac, click "Open With" and then look for the program in the full list.
If you want that program to become the default — so this file type always opens with it from now on — look for a checkbox or option that says "Always use this app" or "Set as default." Not all programs offer this option, but most do.
Changing the default program for a file type
If you want all .pdf files to open in Chrome instead of Adobe Reader, or all .docx files to open in Google Docs instead of Microsoft Word, you can change the default. The steps are different on each device.
On Windows: Right-click any file of that type and choose "Open with" > "Choose another app." Find the program you want and check the box that says "Always use this app to open [file type] files." Click OK. From now on, that file type will open with that program by default.
On Mac: Right-click the file and choose "Get Info." Under "Open with," click the dropdown menu and choose the program you want. Then click "Change All..." to set that program as the default for all files of that type.
On iPhone: Go to Settings > [App Name] and look for a "Default Mail App" or similar option. Not all file types let you change the default on iPhone, so this option may not be available for every file type.
On Android: Open the file with the program you want to use. You'll see a popup asking if you want to use this app by default. Tap "Always" or "Set as default." If you don't see this popup, go to Settings > Apps > Default Apps and look for the file type you want to change.
What to do when a file won't open
If you've tried double-clicking, right-clicking, and choosing different programs, and nothing works, the problem is usually one of these: your device doesn't have the right program installed, the file is corrupted, or the file extension is wrong or hidden.
First, check the file extension. On Windows, go to View and check the box for "File name extensions" so you can see what type the file actually is. On Mac, right-click the file and choose "Get Info," then look at the "Kind" line. If the extension doesn't match what you expected (for example, a photo file that says .txt instead of .jpg), the file may be mislabeled or corrupted.
Second, try opening the file with a different program. Right-click it and choose "Open with," then try every program in the list. Sometimes a file can be opened by multiple programs, and one might work when another doesn't. For example, you can open many image files in a web browser, a photo viewer, or an image editor.
Third, search online for the file extension plus the word "open" (for example, "how to open .heic files"). You'll find what programs can read that type and where to download them. Many programs are free.
Understanding file extensions and file types
A file extension is the short code after the dot in a filename. It tells your device what type of file it is and which program should open it. Common extensions include .pdf (documents), .jpg and .png (images), .mp4 (videos), .docx (Word documents), and .xlsx (Excel spreadsheets).
Your device uses the extension to decide what program to use, so if the extension is wrong or missing, the file won't open. For example, if you rename a photo from photo.jpg to photo.txt, your computer will try to open it as a text file and fail, even though the photo itself is fine.
On Windows, file extensions are often hidden by default. If you can't see the extension, go to View and check "File name extensions." On Mac and phones, extensions are usually visible. If you need to change a file's extension, right-click it, choose "Rename," and change the letters after the dot. Be careful — changing the extension doesn't change what the file actually is, it just changes what program your device tries to use to open it.
Frequently Asked Questions
Why does double-clicking do nothing?
Your device doesn't have a program installed that can open that file type. Right-click the file and look at the extension (the letters after the dot). Search online for how to open that file type, and you'll find what programs can read it. Many are free to download.
Can I open a file on my phone that was created on a computer?
Usually yes, but not always. Common file types like .pdf, .jpg, and .docx open on phones. Specialized files like .psd (Photoshop) or .dwg (AutoCAD) usually don't have phone apps. If you can't open it on your phone, try opening it on a computer instead, or ask whoever created the file what program they used.
What does "this file type is not supported" mean?
Your device doesn't have a program that can read that file type. You need to download a program that supports it. Search online for the file extension to find what programs can open it, then download one from your device's app store or software website.
How do I open a file if I don't know what program created it?
Look at the file extension (the letters after the dot). Search online for that extension — for example, ".ai files" — and you'll find what programs can open it. Try right-clicking the file and choosing "Open with" to see if any installed programs can read it. If not, download a program that supports that file type.
Can I change what program opens a file without changing the default?
Yes. Right-click the file, choose "Open with," and pick a different program. That file will open with that program this time only. The default stays the same, so the next file of that type will still open with the original program. To change the default permanently, look for a checkbox that says "Always use this app" when you choose a different program.