The fastest way depends on what you're looking for
Opening a file is usually straightforward — double-click it, and the right program launches. But when that doesn't work, or when you need to open something in a different program than the default, you have several options. The method you choose depends on whether you know where the file is, what program should open it, and what operating system you're using.
Most files open by double-clicking. If nothing happens, the file type may not have a default program assigned, or the program that should open it isn't installed. The solutions are different for Windows, Mac, and Linux, and knowing which one to try first saves time.
Key Takeaways
- Double-clicking a file opens it in the default program for that file type, which works for most common files like PDFs, images, and documents.
- If double-clicking doesn't work, right-click the file and select "Open With" to choose a different program manually.
- On Windows, you can change which program opens a file type permanently through Settings, so the same program always launches for that type.
- Dragging a file onto a program icon in your taskbar or dock opens it in that program, even if it's not the default.
- If a file won't open at all, the program that reads that file type may not be installed on your computer.
Opening a file by double-clicking
Double-clicking is the standard method. Find the file in File Explorer (Windows), Finder (Mac), or your file manager (Linux), then double-click it. The operating system looks up what program is set as the default for that file type and launches it automatically.
This works reliably for common file types: .pdf files open in your PDF reader, .jpg images open in your photo viewer, .docx documents open in Word or a compatible program. The file itself doesn't change — the program just reads it and displays it on screen.
If double-clicking opens nothing, or opens the wrong program, the file type either has no default program assigned, or the default is set incorrectly. The next section covers how to fix this.
Using "Open With" to choose a different program
Right-click any file and select "Open With" (Windows and Linux) or "Open With" from the menu (Mac). A list appears showing programs on your computer that can read that file type. Click the program you want, and the file opens in it.
On Windows, the "Open With" menu shows programs Windows thinks can handle that file type. If the program you want isn't listed, select "Choose another app" at the bottom, and Windows shows more options. You can also browse to find a program manually if it's not in the list.
On Mac, right-click the file, hover over "Open With", and a submenu shows compatible programs. If you want to use a program that's not listed, select "Other" and browse your Applications folder to find it.
On Linux, right-click the file and select "Open With" or "Properties". The dialog that opens lets you choose from installed programs or type the command to launch a specific one.
Setting a default program for a file type
If you always want a certain file type to open in a specific program, you can set that program as the default. This way, double-clicking always launches the program you prefer.
On Windows: Right-click a file of that type, select "Open With", then choose the program. At the bottom, check the box that says "Always use this app to open [file type]" before clicking. From then on, that file type opens in that program by default. Alternatively, go to Settings > Apps > Default Apps, scroll to "File type associations", and click the file type to change its default program.
On Mac: Right-click the file, select "Open With", then choose the program. Click "Change All" to set that program as the default for all files of that type. A confirmation dialog appears — click "Continue" to confirm.
On Linux: Right-click the file, select "Properties" or "Open With", and look for an option to set the default. The exact steps vary by file manager, but most show a checkbox or button to make the choice permanent.
Dragging a file onto a program
You can open a file in a specific program by dragging it directly onto the program's icon. Find the file in your file manager, then drag it to the program icon in your taskbar (Windows), dock (Mac), or process menu (Linux). The program launches and opens the file.
This method works even if the program isn't the default for that file type. It's useful when you want to open something in a program you don't normally use for that type of file — for example, opening a text file in Notepad instead of Word, or opening an image in an editor instead of a viewer.
Opening a file from within a program
You can also open a file by launching the program first, then using its File menu. Click File > Open (or Open File), and a dialog appears showing folders on your computer. Navigate to the file you want and double-click it, or select it and click Open.
This method is useful when you know which program you want to use but aren't sure where the file is stored. The Open dialog usually starts in common locations like Documents or Downloads, making it easier to browse. Some programs also show recently opened files, so you can find something you worked on recently without navigating folders.
When a file won't open at all
If a file won't open no matter which method you try, the program that reads that file type probably isn't installed. For example, if you try to open a .psd file (Photoshop format) and nothing happens, Photoshop or a compatible program like GIMP isn't on your computer.
Check what file type you're dealing with by looking at the extension — the letters after the dot in the filename. Search online for "open [file type]" to find programs that can read it. Many file types have free options: PDFs open in free readers like Adobe Reader, images open in free viewers, and documents open in free programs like LibreOffice.
If you know the program should be installed but the file still won't open, try restarting your computer. Sometimes the file type association gets confused, and a restart fixes it. If that doesn't work, uninstall and reinstall the program, which resets the file associations.
Frequently Asked Questions
Why does double-clicking do nothing?
The file type doesn't have a default program assigned, or the program that should open it isn't installed. Right-click the file and select "Open With" to choose a program manually, or install the program that reads that file type.
Can I open a file in a program that's not on the "Open With" list?
Yes. On Windows, select "Choose another app" at the bottom of the "Open With" menu and browse for the program. On Mac, select "Other" and navigate to your Applications folder. On Linux, the steps vary by file manager, but most let you type a command or browse for the program.
What if I want to change the default program for a file type?
Right-click a file of that type, select "Open With", choose the program, and look for a checkbox or button to make it the default. On Windows, check "Always use this app". On Mac, click "Change All". The setting applies to all files of that type from then on.
Does opening a file in a different program change the file?
No. Opening a file just displays it — it doesn't modify the file unless you make changes and save. You can open the same file in different programs without affecting it.
What's the difference between opening and downloading a file?
Downloading saves a file to your computer from the internet. Opening reads the file that's already on your computer and displays it in a program. You read first, then open.