What "Open a File" means and why it matters

Opening a file means telling your computer to read the contents of a file and display it in a program you can use. When you double-click a document, photo, or video, you are opening it. The computer looks at the file's type — whether it is a Word document, a JPEG image, or an MP3 song — and launches the program designed to show that type of file.

Understanding how to open files matters because files are how you store and share almost everything on a computer: documents you write, photos you take, spreadsheets with numbers, videos you download. If you cannot open a file, you cannot use what is inside it. Sometimes a file will not open because the right program is not installed, or because the file itself is damaged. Knowing what to try first saves time and frustration.

Key Takeaways

  • Double-clicking a file opens it in the default program your computer has assigned to that file type.
  • If a file will not open, the program that reads that file type may not be installed on your computer.
  • You can right-click a file and choose "Open With" to pick a different program than the default one.
  • File extensions (the letters after the dot, like .docx or .jpg) tell you what type of file it is and which programs can open it.
  • If a file is corrupted or incomplete, no program will be able to open it, and you may need to get a fresh copy.

The simplest way: double-click the file

On Windows, Mac, or Linux, double-clicking a file is the fastest way to open it. Your computer remembers which program you use most often for each file type and launches that program automatically. If you double-click a file named "Budget.xlsx", your computer opens it in Excel or another spreadsheet program. If you double-click "Photo.jpg", it opens in your default image viewer.

This works because every file has a file extension — the letters after the dot at the end of the name. The extension tells the computer what the file contains. Common extensions include .docx (Word document), .pdf (PDF document), .jpg (photo), .mp4 (video), and .txt (plain text). Your computer uses this extension to find the right program.

When double-click does not work: finding the right program

Sometimes you double-click a file and nothing happens, or you see an error message saying the program is not found. This usually means the program that reads that file type is not installed on your computer. For example, if you receive a file ending in .pptx (PowerPoint), but you do not have PowerPoint or a free alternative installed, your computer will not know what to do with it.

The solution is to install a program that can open that file type. For many common file types, free programs exist. If you need to open a .docx file and do not have Microsoft Office, you can install LibreOffice (free, works on Windows, Mac, and Linux) or use Google Docs online. If you need to open a .pdf, most computers come with a PDF reader already, but if yours does not, Adobe Reader is free. For images, videos, and audio files, your operating system usually includes a basic viewer or player.

Before you install anything, check what program you already have. On Windows, right-click the file, select "Properties", and look for "Type of file" — this tells you what kind of file it is. On Mac, right-click (or Control-click) the file, select "Get Info", and look for "Kind". This tells you what program your computer thinks should open it.

Opening a file with a different program: "Open With"

Sometimes you have more than one program that can open a file, and you want to choose which one. Right-click the file (on Mac, Control-click), and you will see an option called "Open With" or "Open With...". Click it, and your computer shows you a list of programs installed on your computer that can read that file type.

For example, you might have both Photoshop and GIMP (a free image editor) on your computer. If you right-click a .jpg file, you can choose to open it in Photoshop one time, or in GIMP another time, without changing which program opens it by default. This is useful when you want to edit a photo in one program but view it quickly in another.

If you want to change which program opens a file type every time, you can set a new default. On Windows, right-click the file, select "Open With", then "Choose another app", then pick the program you want and check the box that says "Always use this app to open [file type]". On Mac, right-click the file, select "Get Info", find "Open With", pick your program, and click "Change All".

File types and which programs open them

File TypeExtensionWhat It IsPrograms That Open It
Word document.docxText document with formattingMicrosoft Word, LibreOffice, Google Docs
PDF.pdfDocument that looks the same on any computerAdobe Reader, most web browsers, Preview (Mac)
Spreadsheet.xlsxTable with numbers and formulasMicrosoft Excel, LibreOffice Calc, Google Sheets
Photo.jpg, .pngImage fileDefault image viewer, Photoshop, GIMP, web browsers
Video.mp4, .avi, .movMovie or video clipWindows Media Player, VLC, QuickTime (Mac)
Audio.mp3, .wavMusic or sound fileWindows Media Player, iTunes, VLC
Plain text.txtText with no formattingNotepad, TextEdit, any text editor
Compressed folder.zipMultiple files packed into one smaller fileWindows (built-in), Mac (built-in), 7-Zip

When a file will not open no matter what you try

If you have installed the right program and the file still will not open, the file itself may be damaged or incomplete. This can happen if a download was interrupted, if the file was corrupted during transfer, or if it was damaged by a virus or malware. A corrupted file cannot be repaired by opening it in a different program — the data inside is broken.

Your best option is to get a fresh copy of the file. If someone sent it to you, ask them to send it again. If you downloaded it, try downloading it again. If it is a file you created yourself and it will not open, you may have a backup copy on an external drive or in cloud storage like OneDrive, Google Drive, or Dropbox. Check your backup before assuming the file is permanently lost.

If you suspect a file might contain malware, do not open it. Instead, run a scan with your antivirus program first. Windows Defender (built into Windows) and Malwarebytes are both free options. If the scan finds a threat, the program will quarantine or delete the file automatically.

Opening files from email and the internet safely

Files you receive by email or download from the internet work the same way as files on your computer — double-click to open them. But files from unknown sources carry a small risk. Before you open a file from someone you do not know, check that the file extension matches what you expect. If someone claims to send you a photo but the file ends in .exe or .scr, do not open it — those are program files, not images.

On Windows, when you open a file downloaded from the internet, you may see a security warning asking if you want to run it. This is normal. If you trust the source, click "Run" or "Open". If you are not sure, click "Cancel" and do not open it. On Mac, the first time you open a downloaded program, you may see a warning that the file is from an unknown developer. Again, this is normal — click "Open" if you trust it, or "Cancel" if you do not.

Frequently Asked Questions

What does the file extension mean?

The file extension is the letters after the dot at the end of a file name. It tells your computer what type of file it is and which program should open it. For example, .docx means Word document, .jpg means photo, and .mp4 means video. You can see the extension by looking at the full file name in your file manager.

Can I change a file extension to make it open in a different program?

Changing the extension does not change what the file actually is — it only changes what your computer tries to open it with. If you rename "Photo.jpg" to "Photo.txt", your computer will try to open it as text, but the file is still a photo and will look like garbage. Only change an extension if you are sure the file is actually that type.

Why does my computer ask me to choose a program every time I open a file?

This usually means your computer does not have a default program 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" (Windows) or click "Change All" (Mac). After that, the file will open in that program automatically.

Is it safe to open files from the internet?

Files from trusted sources are safe to open. Before opening a file from an unknown source, check that the file extension matches what you expect — if someone claims to send a photo but it ends in .exe, do not open it. If you are unsure, run a virus scan first using Windows Defender or Malwarebytes.

What should I do if a file is too large to open?

Very large files sometimes take a long time to open or may not open at all if your computer does not have enough memory. Try closing other programs first to free up space. If the file is a video or image, try opening it in a simpler program — for example, use the default image viewer instead of Photoshop. If it is a spreadsheet with thousands of rows, try opening it in a text editor first to see if it is actually corrupted.