Registry Key to Show File Extensions in Windows
This article explains the exact Windows Registry setting that
controls whether Windows Explorer hides or displays known file type
extensions. By modifying a specific DWORD value within the Registry
Editor (regedit), you can configure Windows to always show
or hide file extensions such as .txt, .exe, or
.docx for the current user.
The Registry Entry Details
The setting that governs file extension visibility in File Explorer is defined by the following registry entry:
- Registry Path:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced - Value Name:
HideFileExt - Value Type:
REG_DWORD(DWORD 32-bit Value)
Value Data Settings
The HideFileExt DWORD accepts two values:
0: Shows known file extensions (file extensions are visible in Explorer).1: Hides known file extensions (Windows default behavior).
How to Change the Setting via Registry Editor
Press
Windows Key + R, typeregedit, and press Enter to launch the Registry Editor.In the address bar at the top, paste the following path and press Enter:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AdvancedLocate
HideFileExtin the right-hand pane.Double-click
HideFileExtto open its edit window.In the Value data field:
- Enter
0to make file extensions visible. - Enter
1to hide file extensions.
- Enter
Click OK.
Applying the Changes
After updating the registry value, the change may take effect immediately, or you may need to refresh File Explorer:
- Press
Ctrl + Shift + Escto open Task Manager. - Locate Windows Explorer under the Processes tab.
- Right-click it and select Restart.