How to Show File Extensions in Windows and Mac
What Are File Extensions and Why They Matter A file extension is a short code at the end of a file name that tells your computer what type of file it is and...
What Are File Extensions and Why They Matter
A file extension is a short code at the end of a file name that tells your computer what type of file it is and which program should open it. For example, when you see a file named "document.docx," the ".docx" part is the extension. It signals that this file is a Microsoft Word document. File extensions typically consist of a period followed by two to four letters or numbers.
Windows and Mac computers use extensions to determine which application opens when you double-click a file. A .pdf file opens in a PDF reader, a .jpg file opens in an image viewer, and a .mp4 file opens in a video player. Without extensions, your computer would have difficulty identifying what each file contains or what program should handle it.
Many common file extensions include .txt (plain text), .xlsx (Excel spreadsheet), .jpg (image), .mp3 (audio), .html (web page), and .zip (compressed file). Understanding extensions helps you identify file types at a glance and troubleshoot problems when files won't open properly.
By default, both Windows and Mac hide file extensions from view. This design choice was made to simplify the user experience for casual computer users. However, showing extensions provides several benefits. You can see exactly what type of file you're working with, spot suspicious files more easily, and understand compatibility issues. For example, if someone sends you a file that appears to be an image but has a .exe extension (executable), showing extensions would reveal that it's actually a program file, which might be unsafe.
Practical takeaway: Knowing what file extensions are and why they exist is the foundation for managing your computer effectively. Displaying extensions gives you more information about your files and helps you make better decisions about which files to open.
How to Show File Extensions in Windows 10 and 11
Revealing file extensions in Windows involves accessing the View settings in File Explorer. The process is straightforward and takes less than a minute. File Explorer is the file management application that comes built into all Windows computers, similar to the Finder app on Mac.
To show file extensions in Windows 10, follow these steps: First, open File Explorer by pressing the Windows key and E together, or by clicking the folder icon on your taskbar. Once File Explorer opens, look at the top menu bar. Click on the "View" tab. You should see various options appear in a ribbon below the menu. Look for a checkbox labeled "File name extensions" and click it. The checkbox should now be marked, and file extensions will appear on all your files immediately.
For Windows 11, the process is very similar but the menu layout has changed slightly. Open File Explorer using the same method. At the top of the window, you'll see a menu bar with options like "File," "Home," "Share," and "View." Click on "View." A dropdown menu will appear. Look for an option called "Show" or "Display options," and click it. From the submenu that appears, select "File name extensions." Once you do this, all files in Windows 11 will display their extensions.
After enabling file extensions, you'll notice that previously unnamed-looking files now have visible extensions. A file you thought was simply called "Resume" now shows as "Resume.docx." A photo file labeled "Vacation" now displays as "Vacation.jpg." This change applies to File Explorer throughout your entire computer and persists even after you restart your system.
Practical takeaway: The View menu in File Explorer is your control center for display settings. Learning to navigate it gives you access to other useful options like changing how files are sorted or displayed, making file management more efficient.
Showing File Extensions on Mac Computers
On Mac computers, file extensions are hidden by default in the Finder application, which is Mac's equivalent to Windows File Explorer. Revealing them follows a different process than Windows, but it's equally simple. The Finder is the central hub for accessing files and folders on your Mac.
To show file extensions on any Mac running macOS, begin by opening the Finder application. You can do this by clicking the Finder icon (which looks like a smiling face) in the Dock at the bottom of your screen, or by pressing Command and Spacebar together, typing "Finder," and pressing Enter. Once Finder is open, look at the menu bar at the very top of your screen. You'll see "Finder," "File," "Edit," "View," and other options. Click on "Finder" in the top-left corner of the menu bar. A dropdown menu will appear with several options.
Look for and click on "Preferences" in this dropdown menu. A Preferences window will open. At the top of this window, you'll see several tabs or icons. Click on the "Advanced" tab, which is typically the rightmost tab. In the Advanced preferences window, you'll see several checkboxes. One of them reads "Show all filename extensions." Click this checkbox to enable it. You can now close the Preferences window by clicking the red X button in the top-left corner of the window.
The change takes effect immediately across all Finder windows and your entire Mac. All files will now display with their extensions visible. This setting remains active until you manually disable it through the same Preferences window. If you ever want to hide extensions again, you can return to Finder > Preferences > Advanced and uncheck the box.
Practical takeaway: Mac's Finder Preferences menu controls many important file display settings. Familiarizing yourself with the Advanced tab helps you customize how you view and interact with your files.
Understanding Common File Extensions and Their Uses
Learning to recognize common file extensions helps you understand what type of content each file contains and what program should open it. Different file types serve different purposes, and extensions provide a quick way to categorize your files mentally.
Document and text files use extensions like .doc, .docx (Microsoft Word), .txt (plain text), .pdf (portable document format), and .rtf (rich text format). These files contain written content and can typically be opened with word processors or document readers. Spreadsheet files use extensions such as .xls, .xlsx (Microsoft Excel), and .csv (comma-separated values). These files contain data organized in rows and columns and are used for calculations, data analysis, and record-keeping.
Image files use extensions including .jpg (joint photographic experts group), .png (portable network graphics), .gif (graphics interchange format), .bmp (bitmap), and .svg (scalable vector graphics). Each image format serves different purposes; .jpg is commonly used for photographs, .png for images that need transparency, and .gif for animated images. Audio files use extensions like .mp3 (MPEG audio), .wav (waveform audio), and .flac (free lossless audio codec). Video files use extensions such as .mp4 (MPEG-4), .avi (audio video interleave), .mov (QuickTime), and .mkv (Matroska).
Compressed or archived files use the .zip extension most commonly, though .rar and .7z also exist. These files contain multiple files bundled together and compressed to reduce size. Executable files use extensions like .exe (Windows executable) and .app (Mac application). Web-related files include .html (hypertext markup language) for web pages, .css (cascading style sheets) for styling, and .js (JavaScript) for web functionality. Knowing these categories helps you quickly understand what you're looking at when you browse your files.
Practical takeaway: Familiarizing yourself with common extensions allows you to make informed decisions about files. You'll recognize when something looks unusual, like a .txt file that should be an image, which could indicate a security concern or a mislabeled file.
Troubleshooting File Extension Problems
Sometimes, even after enabling file extensions in your display settings, you may encounter situations where extensions don't appear or files don't behave as expected. Understanding how to troubleshoot these issues can help you resolve problems quickly.
One common issue in Windows is when a file appears to have no extension even after enabling the display option. This often occurs when a file is intentionally created without an extension by the application that made it. Text editors, for example, sometimes create files without extensions. If you need to add an extension to such a file, you can rename it by right-clicking the file, selecting "Rename," and typing the full name with the extension
Related Guides
More guides on the way
Browse our full collection of free guides on topics that matter.
Browse All Guides โ