What "Open" means and why it matters
Open means to load a file into a program so you can view or edit it. When you open a file, your computer reads the data stored on your hard drive and displays it in an process — like opening a Word document in Microsoft Word, or a photo in an image viewer. The file itself stays on your computer; opening just lets you see and work with what's inside.
Understanding how to open files is foundational because different file types need different programs. A .pdf file won't open properly in Notepad, and a .xlsx spreadsheet won't display correctly in a photo viewer. Your computer has default programs assigned to common file types, but you can change which program opens a file whenever you need to.
Key Takeaways
- Double-clicking a file opens it in the default program your computer has assigned to that file type.
- File extensions like .docx, .jpg, or .pdf tell your computer which program should open the file.
- You can right-click any file and choose "Open with" to pick a different program than the default.
- If a file won't open, you may need to install the program that handles that file type, or try opening it with a different process.
- Setting a new default program changes which process opens that file type every time you double-click it.
The simplest way: double-click the file
Double-clicking a file is the fastest way to open it. Your computer looks at the file extension — the letters after the dot in the filename — and launches the program it has set as the default for that type. For example, double-clicking a file named "budget.xlsx" opens it in Excel (or whatever spreadsheet program you have set as default), and double-clicking "photo.jpg" opens it in your image viewer.
This works because when you install programs like Microsoft Office, Adobe Reader, or Google Chrome, they register themselves as handlers for certain file types. Your operating system remembers which program you want to use for each type, so it can open the right one automatically.
When double-click doesn't work: using "Open with"
Sometimes the default program isn't the one you want, or the file type isn't recognized at all. Right-click the file and select Open with (on Windows) or Open with (on Mac). A menu appears showing programs on your computer that can handle that file type.
For example, you might have a .txt file that normally opens in Notepad, but you prefer to edit it in Visual Studio Code. Right-click the file, choose Open with, and select Visual Studio Code. The file opens there instead. You can also check a box that says "Always use this app to open [file type]" to make that program the new default.
If you don't see the program you want in the list, click Browse or More apps to find it manually on your computer. If the program isn't installed at all, you'll need to install it first before you can open the file with it.
Understanding file extensions and what they tell you
The file extension is the short code after the period in a filename. Common extensions include .docx (Word document), .pdf (portable document), .jpg (image), .mp4 (video), and .xlsx (Excel spreadsheet). The extension tells your computer what kind of data is inside the file and which programs might be able to open it.
On Windows, file extensions are often hidden by default. To see them, open File Explorer, click the View tab, and check the box for File name extensions. On Mac, open Finder, select a file, press Command+I, and look for the file kind. Knowing the extension helps you understand why a file won't open — if you're trying to open a .zip file (compressed archive) in Word, it won't work because Word doesn't handle compressed files.
Changing the 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. On Windows, right-click any file of that type, select Open with, then Choose another app. Find the program you want, check the box that says Always use this app to open [file type] files, and click Open. From then on, double-clicking any file with that extension will use the program you chose.
On Mac, select a file of the type you want to change, press Command+I to open the info window, find the Open with section, click the dropdown, choose your preferred program, and click Change All. This sets the new default for all files with that extension.
You can also change defaults through your system settings. On Windows, go to Settings > Apps > Default apps and choose which program handles each file type. On Mac, go to System Settings > General > Default apps (or use the older method through System Preferences).
What to do when a file won't open at all
If you double-click a file and nothing happens, or you get an error message, the most common reason is that you don't have the program installed that can open it. Check the file extension and search online for what program handles that type — for example, if you have a .psd file, you need Adobe Photoshop or a free alternative like GIMP.
Another possibility is that the file is corrupted or incomplete. If the file downloaded from the internet and stopped partway through, try downloading it again. If you received it from someone else, ask them to resend it. You can also try opening the file with a different program — sometimes a generic text editor or a different viewer can at least show you part of the content.
On Windows, if you see a message saying "Windows can't open this file," click Look for an app in the Microsoft Store or Choose another app on this PC. On Mac, if you get a "cannot open" message, try right-clicking the file, selecting Open, and choosing a different program from the list.
Opening files from inside a program
You don't always have to find a file on your computer first. Most programs let you open files directly from within the process. Click File > Open (or press Ctrl+O on Windows, Command+O on Mac), and a window appears showing your files and folders. 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 remembers where you last opened a file from, so it often starts in the right folder. You can also type the filename directly into the search box if you remember its name but not its location.
Frequently Asked Questions
Why does my file open in the wrong program?
Your computer is using the default program assigned to that file type. Right-click the file, select Open with, choose the program you want, and check "Always use this app" to change the default. If the program you want isn't listed, click Browse to find it manually on your computer.
What does it mean if I see "file type not recognized"?
Your computer doesn't have a program installed that handles that file extension. Search online for the file extension to find out what program opens it, install that program, and try again. You can also try opening the file with a generic program like Notepad or a web browser to see if any content appears.
Can I open a file without installing anything?
Sometimes. Many file types can be opened in a web browser — you can drag a .pdf, .jpg, or .txt file into Chrome or Firefox and view it. Online tools also exist for less common formats. However, if you need to edit the file or use specific features, you'll likely need to install the proper program.
What's the difference between opening and downloading a file?
Downloading saves a file to your computer from the internet. Opening loads that file into a program so you can view or edit it. You read first, then open. If you open a file directly from a website without downloading, your browser usually saves a temporary copy and opens it from there.
How do I open a file if I don't know what program to use?
Right-click the file and select Open with to see what programs your computer suggests. If nothing works, search the internet for the file extension — for example, search ".dwg file opener" to find programs that handle AutoCAD files. Many file types have free viewers available even if the original program costs money.