Windows 11 shows file extensions by default, but you can turn that off in one setting

File extensions like .txt, .docx, and .jpg tell Windows what program should open each file. By default, Windows 11 displays these extensions in File Explorer so you know exactly what you are looking at. If you find them cluttering your view, you can hide them globally — or remove the extension from a single file's name.

The quickest route is the View menu in File Explorer. Open any folder, click the View tab at the top, then uncheck "File name extensions" in the ribbon. This hides extensions for every file on your computer. If you want to hide extensions only sometimes, or rename a single file to remove its extension, the process is slightly different and takes about 30 seconds.

Key Takeaways

  • The View menu in File Explorer has a checkbox to hide all file extensions at once — uncheck "File name extensions" and they disappear from every folder.
  • Hiding extensions does not change the files themselves; Windows still knows what type each file is and will open it with the correct program.
  • To remove an extension from a single file, right-click it, select Rename, delete the extension from the name, and press Enter — but the file type does not actually change.
  • Some files should keep their extensions visible: system files, files you share with other people, and files you plan to email, because removing the extension can cause problems.

Hide extensions for all files at once

Open File Explorer by pressing Windows key + E, or click the folder icon on your taskbar. Navigate to any folder — it does not matter which one, because this setting applies everywhere.

At the top of the window, click the View tab. In the ribbon below it, look for a checkbox labeled "File name extensions". Click it to uncheck it. All file extensions disappear when ready from every folder and every file on your computer.

To turn extensions back on, follow the same steps and check the box again. This setting stays in place until you change it, so if you hide extensions, they remain hidden the next time you open File Explorer.

Remove the extension from a single file's name

If you want to keep extensions visible for most files but remove one from a specific file, right-click that file and select Rename. The filename appears highlighted in a text box, including the extension.

Delete the period and the extension letters from the end of the name. For example, change "document.txt" to "document". Press Enter. Windows will ask if you are sure you want to change the file type — click Yes.

The file still works the same way. Windows recognizes what type of file it is based on its internal structure, not its name. If you double-click it, the correct program will still open it. However, the extension no longer appears in File Explorer, and if you share the file with someone else, they may not know what program to use to open it.

Why you might want to hide extensions

Extensions can make a file list look cluttered, especially in folders with many files. Hiding them gives you a cleaner view of just the filenames. If you work with files you created yourself and know what type each one is, hiding extensions reduces visual noise.

Some people also hide extensions to make their desktop or folders look more organized visually. Since Windows still knows what each file is, hiding the extension does not affect how the files work.

Why you should keep extensions visible

Extensions tell you and other people what program a file needs. If you share a file with a coworker or friend and they do not see the extension, they may not know how to open it. This is especially important for files you email or upload to shared drives.

System files and program files should always show their extensions so you do not accidentally rename or delete them. If you work with files from different sources — downloads, email attachments, files from other computers — keeping extensions visible helps you spot problems. For example, a file named "invoice.txt.exe" is clearly suspicious, but if extensions are hidden, you would only see "invoice.txt".

What happens to the file when you remove its extension

Removing the extension from a filename does not change what the file actually is. A text file remains a text file whether it is named "notes.txt" or "notes". Windows identifies files by their internal structure, not their name. When you double-click a file, Windows looks inside it to determine what program should open it.

However, some programs rely on the extension to recognize files. If you remove the extension and then try to open the file with a program that does not recognize its type, the program may refuse to open it or display it incorrectly. This is rare with common file types like .txt and .docx, but it can happen with specialized formats.

Hiding extensions versus changing file types

Hiding an extension in File Explorer is not the same as changing what type of file it is. If you hide the .txt extension, the file is still a text file — you have only changed how it appears in the folder view. The file works exactly the same way.

If you actually want to change a file from one type to another — for example, converting a .txt file to a .docx file — you need to open it in the correct program and save it in the new format. straightforward removing the extension or renaming it does not convert the file.

Frequently Asked Questions

If I hide extensions, will Windows still open files with the right program?

Yes. Windows identifies files by their internal structure, not their filename. Hiding the extension in File Explorer does not change how Windows recognizes or opens files. Double-clicking a file will still launch the correct program.

Can I hide extensions for only certain file types?

No. The View menu setting hides all extensions or shows all extensions — there is no option to hide only .txt files or only images. You can hide extensions globally or remove the extension from individual files by renaming them.

What if I remove an extension and the file will not open?

Right-click the file, select Rename, and type the extension back in at the end of the filename. For example, change "document" back to "document.txt". Press Enter and click Yes. The file should open normally again.

Does hiding extensions make my computer less find?

It can. Malware sometimes uses double extensions like "invoice.txt.exe" to hide its true type. If extensions are hidden, you would only see "invoice.txt" and might run it thinking it is a text file. For security, keep extensions visible, especially for files from email or downloads.

Will hiding extensions affect how I search for files?

No. Windows search finds files by their full filename, including the extension, even if extensions are hidden in the view. Hiding extensions only changes what you see in File Explorer — it does not affect searching or how Windows finds files.