When browsing the folders on our PC, it's common to see filenames that end with a few letters separated by a period. Although we sometimes overlook this detail, those letters are file extensions , a key component that prevents the operating system from becoming confused and ensures it knows exactly what to do with each piece of data we save on the hard drive.
Basically, they function like an identity tag. Without them, Windows wouldn't know if a file is a photo, a song, or malware, and would have to try to guess or ask us every time we double-clicked. Understanding how these little letters work allows us to better manage our information and, above all, navigate the system much more securely.
How do these labels actually work?
The extension is a suffix that is usually between two and four characters long. Its main purpose is to link the file to a specific application. For example, if you have a file called "vacation.jpg", the system recognizes the ".jpg" and automatically launches the photo viewer or Paint program. If the file ended in ".docx", it would know to open Microsoft Word.
It's very important to differentiate between file type and extension. Although they may seem the same, the file type refers to the nature of the data (like a text document), while the extension is the textual representation of that type. A common misconception is that if you rename "document.txt" to "document.pdf," the file has magically become a PDF; this is false, as the internal content remains plain text , and any program that tries to open it will return an error because the data doesn't match the file type.
Viewing and managing in Windows Explorer
By default, Microsoft has decided it's best to hide these extensions to prevent users from accidentally deleting them. However, this is a double-edged sword. To enable their visibility in Windows 10 or 11, simply go to File Explorer, click the View tab , and check the "File name extensions" box . For those seeking more power, there are excellent alternatives to the Windows 11 File Explorer.
Having this enabled is vital for cybersecurity. Many viruses disguise themselves by changing their icon to look like an image, but if we have file extensions enabled, we'll see that the file is called "photo.jpg.exe". Noticing that it ends in .exe (an executable file) , we'll immediately know that it's not a photo and that it's best not to open it to prevent malware from infecting the computer.
Association of default programs and applications
Windows uses an internal registry that tracks which program opens each file extension. However, you can have several applications capable of reading the same format. If you want to change the default application, simply right-click on the file, choose "Open with," and select "Choose another app," checking the box to always use it.
This is especially useful when installing professional software. For example, someone who uses Photoshop will prefer that all their ".psd" files open with that program rather than a generic viewer, thus optimizing their daily workflow.
Comprehensive dictionary of common extensions
The universe of formats is immense, but we can group them to understand them better. Below, we detail the most relevant ones according to their function:
Documents and Office Automation
- .txtPlain text without formatting, the most basic of all.
- .docx / .doc: The Microsoft Word standard for rich documents.
- .xlsx / .xlsExcel spreadsheets, essential for numerical data.
- .pptx / .pptPowerPoint presentations.
- . Pdf: Adobe's universal format that maintains the original design on any device.
- .rtfRich text format compatible with almost any word processor.
- .odt / .ods / .odpOpen formats used by LibreOffice and OpenOffice.
Images and Graphics
- .jpg / .jpeg: The most used in photography due to its balance between quality and weight.
- . PngIdeal for websites as it allows transparent backgrounds.
- . GifFamous for its simple animations and limited colors.
- .bmp: Old, very heavy and rarely used bitmap.
- .tiffHigh quality, very common in the world of professional printing.
- .svgVector images that do not lose quality when enlarged.
- .webpGoogle's new standard for optimizing image loading on the internet.
- .psd: Adobe Photoshop native working file.
Audio and video
- .mp3The king of compressed music.
- .wav: Uncompressed audio, with maximum quality but huge files.
- .aac / .m4aOptimized formats, very common on Apple devices.
- ogg: Open and free format, widely used by Spotify.
- .mp4The current standard for video compatible with almost everything.
- .avi: Classic Windows format, although it has lost ground to mp4.
- .mov: The native format of QuickTime (Apple).
- . MkvA versatile container that can hold multiple audio tracks and subtitles.
Systems, Executables and Compressed Files
- .exe: Executable files that install or start programs.
- . MSIWindows Installer installation packages.
- '.bat'Batch files that execute a series of commands in sequence.
- . DllLibraries that contain functions shared by several programs.
- .sys: Critical operating system files.
- .zipThe most universal compression format.
- .rar: Highly efficient compression characteristic of WinRAR.
- . 7zA very powerful open-source alternative created by 7-Zip and PeaZip.
- . IsoAn exact image of a CD or DVD disc.
Web and Other Formats
- .html / .htmThe basic language of all web pages.
- . CssStyle sheets that define the appearance of a website.
- . JsJavaScript files to add interactivity.
- . Xml: Markup language for structuring data.
- . PhpServer-side programming language.
Comparison with other operating systems
Unlike Windows, systems like macOS and Linux use the MIME protocol . This means that information about the file type is stored in the file's internal header (the so-called "magic numbers"). Therefore, on systems like Linux, where file attributes can be managed from the terminal , a file can have no extension and the system will still know perfectly well that it's an image or a video, since it reads the actual content and not just the name.
Mastering the use of file extensions allows you to better organize your computer and avoid security risks by identifying disguised executables. From simple ".txt" files to complex ".mkv" containers, each extension fulfills a specific role that facilitates communication between hardware and software, ensuring that each piece of data is processed with the correct tool.



