What "opening a file" means and why it matters
Opening a file means telling your computer to read it and display it on your screen. Your computer stores files in different formats — Word documents, PDFs, photos, videos, spreadsheets — and each format needs a specific program to open it. When you double-click a file, your computer looks at its extension (the letters after the dot, like .docx or .jpg) and launches the right program automatically. If that program is not installed, or if your computer is set to use the wrong one, the file will not open.
Understanding how to open files is the foundation of using your computer. You might receive a file from someone else, download something from the internet, or need to look at something you saved months ago. Knowing what to do when a file will not open — and why — saves you from frustration and keeps you from accidentally installing the wrong software.
Key Takeaways
- Double-clicking a file launches the program your computer thinks should open it, based on the file extension (the letters after the dot).
- If a file will not open, the program that reads that file type is probably not installed on your computer.
- You can right-click a file and choose "Open with" to pick a different program, or change which program opens that file type permanently.
- Common file types like .pdf, .docx, .jpg, and .mp4 each need their own program, and many are free to download.
- If you do not recognize a file extension, searching for it online tells you what program you need and whether it is safe.
The basic method: double-click and let your computer choose
The simplest way to open a file is to double-click it. Your computer reads the file extension and automatically launches the program it thinks should open it. This works most of the time if the program is already installed. For example, double-clicking a .docx file opens Microsoft Word (or a free alternative like LibreOffice if that is what you have), and double-clicking a .jpg opens your default photo viewer.
If nothing happens when you double-click, or if you see an error message, the program you need is not installed. Do not panic — this is fixable. Write down the file extension (the part after the dot) and move to the next section.
When a file will not open: finding and installing the right program
If double-clicking does nothing, your computer does not have a program set up to read that file type. The solution is to install the correct program. Start by identifying what the file is. Look at the file extension — for example, .pdf, .xlsx, .mp3, or .pptx. If you do not recognize it, type the extension into Google along with the word "file type" (for example, "what is a .webp file"). This tells you what the file is and what programs can open it.
Once you know what program you need, search for it by name. Most common file types have free programs available. For PDFs, download Adobe Reader or use your web browser (most modern browsers open PDFs directly). For Word documents, you can use Microsoft Word, Google Docs, or free alternatives like LibreOffice. For photos and videos, Windows comes with built-in viewers, but you might prefer free programs like VLC (which plays almost any video format) or IrfanView (for photos).
Download the program from the official website only — not from a random download site. Once installed, restart your computer, then try double-clicking the file again. It should now open.
Using "Open with" to choose a different program
Sometimes you have multiple programs that can open the same file type, and your computer is using the wrong one. For example, you might have both Photoshop and Paint installed, but your computer opens all .jpg files in Paint when you want to use Photoshop. The "Open with" menu lets you pick a different program without changing the default.
Right-click the file and look for an option that says "Open with" or "Open with..." (the exact wording depends on your operating system). A menu appears showing all the programs your computer thinks can open that file. Click the one you want to use. The file opens in that program.
If you want to change the default permanently — so that file type always opens in your chosen program — right-click the file, select "Open with," then look for an option that says "Choose another app" or "Select default program." Pick your program and check the box that says "Always use this app to open [file type]." From now on, double-clicking that file type will use your chosen program.
Opening files from email and the internet
Files you receive in email or download from websites work the same way as files on your computer. When you download a file, it lands in your Downloads folder (usually on the left side of your file manager, or in a folder called Downloads on your desktop). From there, you open it the same way — double-click it, or right-click and choose "Open with" if you want to pick a specific program.
Be cautious with files from people you do not know. If someone sends you a .exe file (a program installer), do not open it unless you trust them completely. Malicious software often travels this way. If you are unsure whether a file is safe, do a web search for the file name or ask the person who sent it what the file does.
Email attachments sometimes open in a preview window instead of the full program. If you need to edit the file, look for a button that says "Open" or "Open in [program name]" to launch it properly.
Common file types and what opens them
| File Type | What It Is | Programs That Open It |
|---|---|---|
| Document (read-only, looks the same on any computer) | Adobe Reader (free), your web browser, Preview (Mac) | |
| .docx | Word document | Microsoft Word, Google Docs, LibreOffice (free) |
| .xlsx | Spreadsheet | Microsoft Excel, Google Sheets, LibreOffice (free) |
| .jpg, .png | Photo or image | Windows Photos, Preview (Mac), any web browser |
| .mp4, .avi, .mov | Video | Windows Media Player, VLC (free), QuickTime (Mac) |
| .mp3, .wav | Audio | Windows Media Player, iTunes, VLC (free) |
| .zip | Compressed folder (multiple files bundled together) | Windows File Explorer (built-in), 7-Zip (free) |
| .txt | Plain text document | Notepad (built-in), any text editor |
Troubleshooting: what to do when nothing works
If you have installed the correct program and the file still will not open, try these steps. First, restart your computer — this fixes many problems. Second, check that the file is not corrupted. If someone sent it to you, ask them to send it again. If you downloaded it, try downloading it once more. Third, make sure the file extension is correct. Sometimes a file gets renamed or the extension gets hidden. Right-click the file, select "Rename," and check that the extension is there and spelled correctly.
If the file is very old or in an unusual format, you might need a specialized program. Search the web for "[file extension] file opener" to find options. Some older formats (like .wma audio files or .wmv videos) need specific programs that do not come with modern Windows.
If you still cannot open it, try opening the file from inside the program itself instead of double-clicking. Launch the program, go to File menu, click "Open," and browse to find your file. Sometimes this works when double-clicking does not.
Frequently Asked Questions
What does the file extension mean?
The file extension is the letters after the dot at the end of the file name — for example, .docx, .pdf, or .jpg. It tells your computer what kind of file it is and what program should open it. The extension is part of the file name, not something you add separately.
Can I change a file extension to open it in a different program?
Changing the extension does not work and can break the file. The extension describes what the file actually is inside. If you want to convert a file from one format to another (for example, from .docx to .pdf), use the "Save As" or "Export" option inside the program that opens it, not by renaming the file.
Why does my computer ask me to choose a program every time I open a file?
This means no default program is set for that file type. Right-click the file, select "Open with," pick the program you want, and check the box that says "Always use this app." After that, double-clicking will use that program automatically.
Is it safe to download programs to open files?
Yes, if you download from the official website. Search for the program name directly, go to its official site (check the URL carefully), and download from there. Avoid random download sites that offer the program — they sometimes bundle unwanted software. When in doubt, use free, well-known programs like VLC, LibreOffice, or Adobe Reader.
What is a .zip file and how do I open it?
A .zip file is a compressed folder that holds multiple files bundled together to save space. Windows can open it without installing anything — just double-click it and it shows you the files inside. You can then copy those files to your computer. If you want to compress your own files into a .zip, right-click them, select "Send to," and choose "Compressed (zipped) folder."