📖 What is a File Extension?
A file extension (also called a filename extension or file suffix) is a set of characters added to the end of a filename after a period (dot). It typically consists of 3-4 letters and serves as an identifier for the file type.
Example Filename:
document.pdf
| Filename: | document |
| Extension: | .pdf |
| File Type: | PDF Document |
Purpose of File Extensions
🎯 Identification
Tells users and applications what type of data the file contains (text, image, video, etc.)
🔗 Association
Links files to default programs. Double-clicking a .pdf opens your PDF reader automatically.
🔒 Security
Helps identify potentially dangerous files (.exe, .bat) that could harm your system.
document.pdf.exe might appear as document.pdf. We recommend enabling file extension visibility in your system settings.⚙️ How File Extensions Work
File extensions are part of a broader system that helps computers manage files. Here's how the process works:
1. File Creation
When software saves a file, it adds the appropriate extension based on the format chosen (Save as PDF → .pdf)
2. MIME Type Mapping
Extensions map to MIME types (e.g., .pdf → application/pdf) which define how data should be handled
3. OS Recognition
Operating systems maintain a registry of extensions and their associated programs
4. Program Launch
Double-clicking opens the file with the registered default application for that extension
Extension vs Format vs MIME Type
| Concept | Definition | Example |
|---|---|---|
| File Extension | Visible suffix in filename | .jpg, .pdf, .docx |
| File Format | Internal structure/encoding of data | JPEG, PDF, Office Open XML |
| MIME Type | Internet standard identifier | image/jpeg, application/pdf |
photo.jpg to photo.png doesn't convert it to PNG format - it just confuses the operating system. Use proper conversion software for format changes.📚 File Extension Categories
File extensions are organized into categories based on their purpose and the type of data they contain. Click any category to explore all extensions within it.
📄 Document Files
Document files contain formatted text, tables, images, and other content for reading, editing, and sharing information.
📊 Spreadsheet Files
.XLSX.XLS.XLSM.XLSB.ODS.CSV.TSV.NUMBERS📽️ Presentation Files
.PPTX.PPT.PPTM.PPSX.ODP.KEY🖼️ Image Files
Image files store visual information including photographs, graphics, icons, and artwork.
✏️ Vector Graphics
.SVG.AI.EPS.CDR.WMF.EMF📷 RAW Camera Formats
.RAW.CR2.CR3.NEF.ARW.DNG.ORF🎭 Design Software Formats
.PSD.PSB.XCF.SKETCH.FIG.INDD🎵 Audio Files
Audio files contain sound recordings, music, voice, and other audio content.
🎧 Compressed Audio
.MP3.AAC.M4A.OGG.OPUS.WMA🎼 Lossless Audio
.WAV.FLAC.AIFF.ALAC.APE🎹 MIDI & Musical
.MID.MIDI.SF2🎛️ Audio Projects & Playlists
.ALS.FLP.AUP.M3U.PLS.CUE🎬 Video Files
Video files contain moving images, often with audio.
📹 Common Video Formats
.MP4.M4V.AVI.MKV.MOV.WMV.FLV.WEBM.3GP.OGV🎥 Professional & Broadcast
.MXF.MPG.MPEG.M2TS.TS.VOB🎬 Video Projects & Subtitles
.PRPROJ.AEP.SRT.SUB.VTT.ASS📦 Archive Files
Archive files combine multiple files into one and often compress them to save space.
🗜️ Compressed Archives
.ZIP.RAR.7Z.GZ.TAR.TGZ.BZ2.XZ.CAB.ZST📁 Package Archives
.PKG.DEB.RPM.APK.IPA.JAR🗄️ Data Files
Data files store structured information used by applications for configuration, databases, and data exchange.
📊 Structured Data
.JSON.XML.YAML.YML.CSV.TSV.TOML.INI🗃️ Database Files
.SQL.DB.SQLITE.MDB.ACCDB.DBF📧 Email Files
Email files store electronic messages, mailboxes, contacts, and calendar information.
📬 Email Messages
.EML.EMLX.MSG.OFT🌐 Web Files
Web files are used to create and deliver content on the internet.
📄 Markup Languages
.HTML.HTM.XHTML.XML.PHP.ASP.JSP🎨 Stylesheets
.CSS.SCSS.SASS.LESS⚡ Scripts & Web Apps
.JS.MJS.TS.TSX.JSX.VUE.SVELTE💻 Programming Files
Programming files contain source code, scripts, libraries and configuration used to build software.
📓 Notebooks
.IPYNB☕ Java & JVM
.JAVA.CLASS.JAR.KT.GROOVY.SCALA⚙️ C/C++/C#
.C.CPP.H.HPP.CS.SLN🦀 Other Languages
.GO.RS.RB.SWIFT.R.PL.LUA.DART.HS.VB🔧 Shell & Scripts
.SH.BASH.PS1.BAT.CMD.VBS⚡ Executable Files
Executable files contain programs that can run on your computer. Handle with caution.
🖥️ Windows Executables
.EXE.MSI.DLL.COM.SCR.SYS🍎 macOS Executables
.APP.DMG.PKG.DYLIB🐧 Linux Executables
.BIN.RUN.DEB.RPM.APPIMAGE.SO🔤 Font Files
Font files contain typeface data used to display text in specific styles.
✒️ Desktop & Web Fonts
.TTF.OTF.WOFF.WOFF2.EOT.FON📚 eBook Files
eBook files contain digital publications including books, magazines, and comics.
📖 eBook Formats
.EPUB.MOBI.AZW.AZW3.FB2.CBZ.CBR.DJVU📐 CAD & 3D Files
CAD and 3D files store technical drawings, 3D models, and design specifications.
📏 CAD Drawings
.DWG.DXF.DWF.SKP.RVT.STEP.IGES🎮 3D Models
.OBJ.FBX.STL.DAE.3DS.BLEND.GLTF.GLB.USDZ💿 Disk Image Files
Disk image files contain exact copies of storage media content.
💾 Disk & Virtual Images
.ISO.IMG.DMG.BIN.CUE.NRG.VDI.VMDK.VHD.QCOW2🔧 System Files
System files are used by operating systems for configuration, drivers, and core functionality.
⚙️ Configuration & Libraries
.INI.CFG.CONF.REG.PLIST.LOG.DLL.SO.SYS🔐 Security Certificates
.CER.CRT.PEM.KEY.P12.PFX🎮 Game Files
Game files include saves, ROMs, mods, and game-specific data formats.
💾 ROM & Game Data
.NES.SNES.GBA.NDS.N64.NSP.SAV.PAK.WAD🔤 Alphabetical Index
Browse all file extensions alphabetically.
A
.AAC.ACCDB.AI.AIFF.APK.APP.ARW.AVI.AVIF.AZWB
.BAK.BAT.BIN.BLEND.BMP.BZ2C
.C.CAB.CDR.CPP.CR2.CS.CSS.CSVE
.EML.EPS.EPUB.EXEF
.FBX.FLAC.FLVH
.H.HEIC.HTMLI
.ICO.ICS.INDD.INI.IPYNB.ISOK
.KEY.KTL
.LOG.LUAN
.NEFQ
.QCOW2R
.R.RAR.RAW.RB.RPM.RS.RTFS
.SH.SKP.SQL.SRT.STL.SVG.SWIFTT
.TAR.TIF.TIFF.TS.TTF.TXTU
.USDZX
.XLS.XLSX.XML.XZY
.YAML.YMLZ
.ZIP.ZST# (Numbers)
.3DS.3GP.7Z❓ Frequently Asked Questions
A file extension is a suffix at the end of a filename, typically 3-4 characters after a period (e.g., .txt, .jpg, .pdf). It tells the operating system and users what type of file it is and which program should be used to open it.
Windows 10: Open File Explorer → Click the "View" tab → Check "File name extensions"
Windows 11: Open File Explorer → Click "View" → "Show" → "File name extensions"
Yes, you can rename a file to change its extension. However, this does NOT convert the file to a different format. The file's internal structure remains the same. To properly convert files, use conversion software.
File Extension: The visible suffix in the filename (e.g., .jpg, .pdf, .docx).
File Format: The actual internal structure and encoding specification (e.g., JPEG, PDF, Office Open XML).
Common reasons: No compatible program installed, corrupted file, wrong file extension, or the file requires specialized software. Try identifying the correct file type and installing appropriate software.
Windows: Not case-sensitive (.JPG = .jpg)
Linux/Unix: Case-sensitive (.JPG ≠ .jpg)
macOS: Usually not case-sensitive
For cross-platform compatibility, use lowercase extensions.
MIME (Multipurpose Internet Mail Extensions) type is an internet standard identifier for file formats. Examples: text/html for HTML, image/jpeg for JPEG, application/pdf for PDFs.
📝 Summary: Understanding File Extensions
- File extensions identify file types and associated programs
- They appear after the period in filenames (e.g., .pdf, .jpg)
- Changing the extension doesn't convert the file format
- Extensions map to MIME types for internet use
- Over 500+ extensions exist across 16+ categories
- Common categories: documents, images, audio, video, archives
- Be cautious with executable files (.exe, .bat, .sh)
- Keep extensions visible for security awareness