How to show file extensions in Windows
Show .pdf, .jpg, or .exe in File Explorer on Windows 10 and 11 so you do not open a file that is not what it looks like.
Steps in pictures
Does a file named invoice.pdf open in some odd program, or can you not tell whether what you downloaded is a picture or an executable?
Applies to: Windows 10 and Windows 11. The File Explorer menu changes; the Folder Options checkbox is the same.
What’s going on
Windows hides the extension of types it already knows. That is why you see report and not report.docx. Showing it does not change the files. It only lets you see the real ending, and that stops an old trick: a file that looks like a PDF and actually ends in .exe.
The extension is the last part of the name, after the dot. .docx is Word, .xlsx is Excel, .jpg is an image, .exe is a program, and .zip is a compressed file. The icon is chosen by the associated program, and it can be imitated. The name can be imitated too: photo.jpg.exe looks like photo.jpg when extensions are hidden, because Windows hides only the final .exe. With extensions in view, the trick is visible.
You do not need a program. It is a checkbox in File Explorer. Leave it on for any PC you use for work or for mail.
Steps
-
On Windows 11, from the File Explorer bar
Open File Explorer with Win + E. At the top, click View › Show › File name extensions. The check mark stays on. Open Downloads and confirm that files show .pdf, .jpg, or whatever they are. If the bar does not look like this, you are on Windows 10: use the next step.
-
On Windows 10, from the View ribbon
In File Explorer, open the View tab. Check the box File name extensions. It takes effect at once. If your Windows 10 has the ribbon hidden, follow the Folder Options step, which works on both versions.
-
Make it stick in Folder Options
In Windows 11 File Explorer, click the three dots › Options. On Windows 10: View › Options. Open the View tab. In the advanced list, clear the check mark on Hide extensions for known file types. Apply and OK. This checkbox is the one that decides. If someone hides extensions again, repeat this step.
-
Read the whole name before you open an attachment
In Downloads, look at the last part. A real PDF ends in .pdf. A spreadsheet ends in .xlsx or .csv. A legitimate installer ends in .exe or .msi, and that already tells you it is a program, not a document. Do not open it only because the icon looks like a PDF. If the mail said invoice and the file ends in .exe, .js, .scr, or .bat, do not run it. Quarantine it or delete it. System protection helps, and you check it in how to confirm Windows protection is on.
-
Do not change the extension by hand to convert a file
Renaming report.docx to report.pdf converts nothing. The file is still Word, and the PDF viewer will say it is damaged. To make a real PDF, use Save as, or Print › Microsoft Print to PDF, inside the program. Changing the extension only makes sense when you know the file is that type and someone removed the ending, for example a .jpg that arrived with no dot.
-
Be careful when you rename, now that you can see the dot
When you press F2 to rename, the name includes .docx. If you delete that part by accident, Windows warns that the file may become unusable. Keep the dot and the extension. If you already lost it and the file will not open, put the extension it used to have back on. It is not deleted. It is named wrong. If you really did delete it, see how to recover deleted files.
If this doesn’t work
The checkbox clears itself
Go back to Folder Options and accept with the box cleared, meaning extensions are not hidden. A cleanup program sometimes restores folder options. If you use one, remove it. On a work PC, a policy can hide extensions. You will not override the administrator.
I still cannot see the extension of a shortcut
Shortcuts (.lnk) stay hidden on purpose on the desktop, and Microsoft Store shortcuts behave differently too. In Downloads and Documents you should see the rest. Create a test document in Notepad, save it as test.txt, and confirm that you see the .txt.
A file with no dot at all
Some notices and downloads arrive with no extension. Do not invent one at random. Open it only if you know where it came from. You can see the type in Properties: right-click › Properties, next to Type of file. If it says the file is a program, treat it as a program.
You want to sort by type
Visible extensions make that easier, and File Explorer can also sort by the Type column. Right-click the list header › Type, then click that column. It helps separate photos from installers in a crowded folder. If the folder is crowded because the disk is tight, continue with how to free up disk space.
Frequently asked questions
Does this delete or rename my files?
No. It only changes what File Explorer shows. The names on disk already had the extension. It was hidden.
Why does Windows hide them?
So the desktop looks simpler. The cost is that you cannot tell a document from a program. On a PC where you download attachments, seeing them is better.
Does it apply to every folder?
Yes. It is a setting for the user, not for one folder. Every File Explorer window starts showing them.
Can an .exe be safe?
It can, if you downloaded it yourself from the program’s official site. The risk is an .exe disguised as a document. Seeing the extension runs nothing. It gives you a second look before the double-click.