File Extension Reference

Want to search or filter file types interactively? Use the Interactive File Extension Explorer to inspect specific extensions, default programs, and security risks.

FILES & SOFTWARE

A file extension is the suffix at the end of a computer filename (like .pdf or .jpg). It acts as a set of instructions for your operating system, telling it what kind of data the file contains and which software application should be used to open it.

However, an extension is only a label—it does not dictate reality. Changing a file's name from photo.png to photo.jpg does not magically re-encode the image, it just confuses your computer. Furthermore, malicious software often uses fake or hidden extensions to trick users into running dangerous code.

Documents, Data & Text

Extension Format Real-World Context & Typical Use
.txtPlain textContains completely unformatted text. Cannot hold bolding, italics, or images. Universal across all operating systems.
.mdMarkdownA lightweight syntax used heavily by developers (like GitHub readmes) to format text using standard keyboard symbols (like **bold**).
.csvComma-separated valuesStrips away all Excel formatting to store raw database tables. The standard for moving contact lists or financial data between incompatible software.
.pdfPortable Document FormatLocks in fonts, layouts, and graphics so a document looks identical whether it is opened on a Windows PC, a Mac, or a mobile phone.
.docxWord Open XMLThe modern standard for Microsoft Word. Unlike older .doc files, it is actually a zipped folder containing XML text files and images.
.xlsxExcel Open XMLEditable spreadsheet containing complex formulas, charts, and multiple sheets.
.jsonJavaScript Object NotationA lightweight text format used primarily by web applications and APIs to transmit structured data between a server and a web browser.

Images & Graphics

Extension Format Real-World Context & Typical Use
.jpg / .jpegJPEGThe internet standard for photographs. Uses "lossy" compression to discard hidden visual data and keep file sizes small.
.pngPNGRetains sharp edges and supports transparent backgrounds. Ideal for logos, web UI, and screenshots, but creates massive files if used for photos.
.svgSVGUnlike JPEGs which are made of pixels, SVGs are made of mathematical code. They can scale up to the size of a billboard without losing quality.
.webpWebPGoogle's modern web format. Provides the transparency of a PNG and the quality of a JPEG at a fraction of the file size.

Audio & Video Containers

Extension Format Real-World Context & Typical Use
.mp3MP3Highly compressed digital audio. Strips out frequencies the human ear can barely hear to save space.
.flacFLACLossless audio compression. Offers CD-quality sound without discarding any acoustic data. The standard for audiophiles.
.mp4MPEG-4 ContainerThe universal video container. Plays natively on practically every smartphone, tablet, web browser, and smart TV made in the last decade.
.mkvMatroska ContainerAn open-source container popular for movie backups because it can hold unlimited video, audio, and subtitle tracks in a single file.

Executables & System Files (Handle with Care)

Extension Format Real-World Context & Security Notes
.exeWindows ExecutableThe standard format for software installers and programs on Windows. Never open an unknown .exe file from an email.
.msiMicrosoft InstallerA dedicated installation package used by Windows to install, maintain, or remove enterprise software cleanly.
.apkAndroid PackageThe format used to install apps on Android devices outside of the Google Play Store (sideloading).
.shShell ScriptA text file containing a sequence of commands for Unix-based operating systems (Linux/macOS) to execute in the terminal.
.batBatch FileA script file used in Windows DOS to automate repetitive command-line tasks. Can be dangerous if downloaded blindly.

Archives & Compressed Files

Extension Format Real-World Context & Typical Use
.zipZIP ArchiveThe universal standard for bundling multiple files or folders into a single compressed package for easy emailing.
.7z7-Zip ArchiveUses a much more advanced compression algorithm than ZIP, resulting in significantly smaller file sizes, but requires third-party software to open.
.tar.gzTarball + GzipThe standard way software source code and backup archives are distributed and compressed on Linux servers.

Security Warning: The "Hidden Extensions" Trick

By default, the Windows operating system hides file extensions for "known file types" to make folders look cleaner. This creates a massive security vulnerability that phishing campaigns exploit daily.

A hacker will name a malicious virus program: Invoice_Overdue.pdf.exe. Because Windows hides the final .exe extension, the user only sees Invoice_Overdue.pdf. Believing it is a safe document, the user clicks it, unwittingly executing malware on their machine.

Best Practice: Always open your File Explorer settings and check the box that says "File name extensions" so you can verify exactly what you are clicking on.