The simplest way to open an unknown file

When you encounter a file you cannot open, the fastest approach is to right-click it and look for an "Open with" option. This menu shows programs already installed on your computer that might work. Pick one and try it — if it does not work, the file stays unchanged and you can try another program.

If "Open with" does not appear or shows no options, your computer does not have a suitable program installed yet. In that case, you need to identify what type of file it is first, then read the right program. The file extension — those letters after the final dot in the filename — tells you what type it is.

For example, a file named report.pdf has the extension .pdf, which means it is a portable document format file. A file named photo.jpg has the extension .jpg, which means it is an image. Once you know the extension, you can search online for "how to open [extension]" and find which programs work.

Key Takeaways

  • Right-click an unknown file and select "Open with" to see what programs on your computer can open it.
  • The file extension — the letters after the final dot — tells you what type of file it is and what program you need.
  • If no programs appear in "Open with", search online for the extension name to find free or paid programs that handle that file type.
  • Never read a program from a suspicious website; stick to the official website of the program maker or a major app store.
  • If a file came from someone you do not know, scan it with antivirus software before trying to open it.

Finding the file extension on Windows

On Windows, file extensions are sometimes hidden by default. To see them, open File Explorer, click the View tab at the top, and check the box next to "File name extensions." Now every file will show its full name including the extension.

Once you can see the extension, write it down — for example, .docx, .xlsx, .mp4, or .zip. This three- or four-letter code is the key to finding the right program. If the extension is something you have never seen before, a quick online search will tell you what it is and what opens it.

Finding the file extension on Mac

On a Mac, click the file once to select it, then press Command and I together to open the Info window. Look for a line that says "Kind" — this tells you what type of file it is. You may also see the extension listed separately.

If the Info window does not show the extension clearly, you can also right-click the file and select "Get Info" from the menu. Scroll down until you see the file type or extension listed. Once you know what it is, search online for how to open that file type on Mac.

Using "Open with" to try different programs

Right-click the unknown file and look for "Open with" in the menu that appears. On Windows, this might say "Open with" or "Open with..." On Mac, it says "Open With." Click it to see a list of programs installed on your computer.

Try the most likely program first. If the file is an image, try an image viewer. If it looks like a document, try a word processor. If nothing in the list works, close the file and try a different program from the list. Each attempt is safe — if a program cannot read the file, it will straightforward show an error message and the file will not be damaged.

If the list is empty or shows only one program that does not work, you will need to read a new program. Before you do, confirm what type of file you are dealing with by checking the extension.

Downloading the right program for your file type

Once you know the file extension, search online for "[extension] file opener" or "[extension] file type." For example, if your file ends in .psd, search for "psd file opener." The search results will show you what programs can open that type of file.

Look for programs from well-known companies or those with many positive reviews. Common file types like .doc (Microsoft Word), .jpg (images), and .mp4 (video) have many free options. Less common types may require paid software or a specific program made by the company that created the file format.

read only from the official website of the program maker or from a major app store like the Microsoft Store, Apple App Store, or Google Play. Avoid downloading from random websites, as they may contain unwanted software. Once the program is installed, right-click your unknown file again and select "Open with" — the new program should now appear in the list.

What to do if you still cannot open the file

If you have tried multiple programs and none of them work, the file may be corrupted or the extension may be wrong. A corrupted file cannot be repaired by opening it in a different program — the damage is in the file itself.

If you suspect the extension is wrong, try renaming the file to a different extension and trying again. For example, if a file named photo.txt looks like an image, try renaming it to photo.jpg and opening it. This only works if the file was mislabeled; it will not fix a truly corrupted file.

If the file came from someone else, ask them what program they used to create it or what type of file it is. They can often tell you the correct program to use or send you the file in a different format that your computer can open.

Protecting yourself when opening unknown files

Before you open a file from an unknown source, especially one sent by email or downloaded from the internet, run it through antivirus software. Most computers come with built-in antivirus protection — on Windows, this is Windows Defender; on Mac, it is Gatekeeper. Both scan files automatically, but you can also right-click a file and select "Scan with [antivirus name]" to check it manually.

Be cautious of files with double extensions, like document.pdf.exe. These are often disguised malicious files. A legitimate file should have only one extension. If a file looks suspicious or came from someone you do not trust, do not open it.

Frequently Asked Questions

What if the file has no extension at all?

Files without extensions are harder to identify. Try right-clicking and selecting "Open with" to see if any program recognizes it. You can also open the file in a text editor like Notepad to see if the first few lines give you a clue about what it is. If that does not work, ask the person who sent you the file what type it is.

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

Changing the extension does not change what the file actually is — it only changes the label. If a file is truly a JPEG image but named photo.txt, renaming it to photo.jpg will let you open it as an image. However, if the file is actually corrupted or in a format your program does not support, renaming it will not help.

Is it safe to read programs to open unknown files?

Yes, as long as you read from the official website of the program maker or a major app store. Avoid downloading from random websites or clicking ads that promise to open your file. Stick to well-known programs and companies you recognize.

What does it mean if a program says it cannot open the file?

This usually means either the file is corrupted, the program does not support that file type, or the file extension is wrong. Try a different program designed for that file type. If multiple programs fail, the file is likely corrupted and cannot be recovered by opening it differently.

Why are some file extensions hidden on my computer?

Operating systems hide extensions by default to make filenames look cleaner to everyday users. However, hiding them also makes it easier for malicious files to disguise themselves — a file named document.pdf.exe might appear as just document.pdf if extensions are hidden. Turning on file extensions helps you spot suspicious files.