How to Show File Extensions in Windows 11 (and Windows 10)
To show file extensions in Windows 11, open File Explorer, click View in the toolbar, point to Show, and click File name extensions so it has a check mark. Every file now shows its extension, such as report.pdf or photo.jpg. The setting applies to all folders and stays on until you turn it off.
Windows hides extensions for "known file types" by default, so most people see report instead of report.pdf. Below are the three ways to turn them on in Windows 11, the Windows 10 steps, why it's worth doing for safety, and the equivalent setting on a Mac.
Method 1: File Explorer View menu (fastest)
- Open File Explorer: press Windows+E or click the folder icon on the taskbar.
- Click View in the toolbar at the top.
- Point to Show at the bottom of the menu.
- Click File name extensions.
A check mark appears next to the option and extensions appear immediately. Repeat the same steps to hide them again.
While you are in that menu, Hidden items is the option just below; it shows hidden files and folders, which is a separate setting.
Method 2: Folder Options ("Hide extensions for known file types")
This is the classic setting, and it's the one to use if a guide or your IT department refers to "Hide extensions for known file types":
- Open File Explorer.
- Click the See more button (three dots, ...) at the right end of the toolbar and choose Options.
- In the Folder Options window, open the View tab.
- Under Advanced settings, clear the check box Hide extensions for known file types.
- Click OK.
Method 1 and Method 2 change the same setting, so turning on File name extensions in the View menu clears this box and vice versa.
You can also open Folder Options without File Explorer: press Windows+R, type control folders and press Enter.
Method 3: Windows Settings
Recent versions of Windows 11 also expose the setting in the Settings app:
- Open Settings (press Windows+I).
- Go to System > Advanced and open the File Explorer section. On some earlier Windows 11 builds this page is called For developers instead of Advanced.
- Turn on Show file extensions.
If you don't see the toggle, your version doesn't have it; use Method 1, which works on every Windows 11 build.
Method 4: Command line or registry (for admins and scripts)
The setting is stored in the registry value HideFileExt (1 hides extensions, 0 shows them). This command turns extensions on for the current user:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t REG_DWORD /d 0 /fOpen File Explorer windows may not pick up the change until you close and reopen them or sign out and back in. In managed environments, administrators usually deploy the same value with Group Policy preferences or Intune instead.
Show file extensions in Windows 10
Windows 10's File Explorer has a ribbon instead of the Windows 11 toolbar:
- Open File Explorer.
- Click the View tab in the ribbon.
- In the Show/hide group, check File name extensions.
The Folder Options route also works in Windows 10: View tab > Options > View tab > clear Hide extensions for known file types > OK.
Why you should show file extensions
It protects you from disguised files
This is the main reason. With extensions hidden, a malicious file called invoice.pdf.exe appears in File Explorer as invoice.pdf: Windows hides the real extension, .exe, and leaves the fake one visible. Attackers rely on this in email attachments and downloads. With extensions showing, you see the full name and the trailing .exe, .scr, .js or .lnk gives it away. Many security teams recommend leaving extensions visible for this reason.
The icon is not a reliable check either, because a program can use any icon it likes, including a PDF icon.
You know exactly what a file is
report.docx, report.pdf and report.txt look identical when extensions are hidden and the icons are similar. Seeing the extension tells you which app will open it and whether it's the editable original or an export. The filename extension guide explains what the common extensions mean.
Renaming and changing extensions works properly
When extensions are hidden, File Explorer only lets you edit the visible part of the name. Typing notes.txt as a new name for a file whose real extension is .txt gives you notes.txt.txt, a common source of "file not found" problems. To change a file's type label, for example .jpeg to .jpg, you need to see the extension first. The how to change a file extension guide walks through it, including the warning Windows shows.
Other ways to see a file's extension without changing the setting
- Details view: in File Explorer, choose View > Details. The Type column describes the file type, such as "PDF Document" or "JPEG image".
- Properties: right-click the file, choose Properties, and the General tab shows Type of file with the extension in brackets, for example "Text Document (.txt)".
- Command line:
dirin Command Prompt andGet-ChildItemin PowerShell always show full names with extensions.
Show file extensions on a Mac
macOS also hides many extensions by default. To show them all:
- Click the desktop or a Finder window so Finder is the active app.
- Choose Finder > Settings from the menu bar (called Preferences on macOS Monterey and earlier).
- Click Advanced.
- Select Show all filename extensions.
Individual files can still have their extension hidden: select the file, press Command+I to open Get Info, and in Name & Extension clear Hide extension. While you're in Finder Settings > Advanced, Show warning before changing an extension controls the prompt you see when you rename .jpeg to .jpg.
Bulk-fixing extensions once you can see them
Turning extensions on often reveals a mess: .JPG next to .jpg and .jpeg, files with no extension, or double extensions like .pdf.pdf. To fix many at once, our bulk file extension guide covers PowerShell and dedicated tools, and the free online bulk renamer can lowercase or change extensions in your browser without uploading anything. If the names in front of the extension are the real problem (IMG_4821.jpg, scan0007.pdf), File Renamer AI suggests descriptive names based on what each file contains.
Frequently Asked Questions
How do I show file extensions in Windows 11?
Open File Explorer, click View in the toolbar, point to Show and click File name extensions so it is checked. Extensions such as .pdf and .jpg then appear on every file in every folder. Repeat the steps to hide them again.
Where is "Hide extensions for known file types" in Windows 11?
In File Explorer, click the three-dot See more button, choose Options, open the View tab and look under Advanced settings. Clear Hide extensions for known file types and click OK to show extensions. You can also open this window by pressing Windows+R and running control folders.
Why can't I see file extensions in Windows?
Windows hides extensions for known file types by default. Turn them on with View > Show > File name extensions in Windows 11, or View > File name extensions in the Windows 10 ribbon. If the option is unavailable, it may be locked by your organisation's policy.
Is it safe to show file extensions?
Yes, and it is safer than hiding them. Showing extensions lets you spot disguised files such as invoice.pdf.exe, which appears as invoice.pdf when extensions are hidden. It only changes how names are displayed and does not modify any files.
Does showing file extensions change my files?
No. It is a display setting only. Your files keep exactly the same names and contents; File Explorer simply shows the part of the name after the last dot. Changing an extension only happens if you rename a file and edit that part yourself.
How do I show file extensions on a Mac?
In Finder, choose Finder > Settings, click Advanced and select Show all filename extensions. To show the extension for a single file, select it, press Command+I and clear Hide extension under Name & Extension.
Free tools
Related Posts
How to Change a File Extension on Windows, Mac, Linux, iPhone and Android
How to change a file extension on Windows 11, Mac, Linux, iPhone and Android, how to rename many at once, and when you need a converter instead of a rename.
WindowsHow to Bulk Rename File Extensions in Windows 10 & 11
Change file extensions for multiple files at once. Learn safe methods using Command Prompt, PowerShell, and Bulk Rename Utility.
TutorialHow to Rename a Bluetooth Device on iPhone, Mac, Android and Windows 11
How to rename a Bluetooth device on iPhone (Settings > Bluetooth > info > Name), Mac, Android and Windows 11, and why some car kits keep their name.
Ready to organize your files?
Try AI renaming right away. No sign-up needed until you download.
Try It Free