Every day you work with files on your computer — documents, photos, music, videos, and programs. But have you ever noticed the small suffix at the end of every file name? Things like .jpg, .mp3, .docx, .pdf, or .exe? Those small suffixes are called file extensions, and they are much more important than most people realize.
File extensions are how your computer knows what type of file it is dealing with and which program should open it. Without file extensions, your computer would not know whether a file is a photo, a document, a song, or a program. It would be like receiving a package with no label — you would have no idea what is inside or how to use it.
In this complete guide, we will explain everything about file extensions in simple, easy-to-understand English. We will cover what file extensions are, why they are important, all the different categories with a comprehensive list, how to show hidden file extensions in Windows, important facts, and 40 FAQ. Whether you are a student, a beginner, or someone who uses computers daily — this guide has everything you need.
What Is a Computer File?
Before understanding file extensions, let us first understand what a file is. A computer file is a block of information or data stored on a computer’s storage device (hard drive, SSD, USB drive, etc.) that can be accessed and used by computer programs.
Files can contain any type of information — a letter you typed, a photo you took, a song you downloaded, a video you recorded, a program you installed, or a spreadsheet you created. Every piece of data on your computer is stored as a file.
Simple definition: A computer file is a block of arbitrary information stored on durable storage (like a hard drive), available to computer programs for reading, writing, and processing.
What Is a File Extension?
A file extension (also called a filename extension) is a suffix added to the end of a file name, after a period (dot). It indicates what type of file it is and what format the data inside is stored in.
Simple definition: A file extension is a suffix to the name of a computer file that tells the operating system what kind of file it is and which program should open it.
For example, in the filename image.png — the part .png is the file extension. It tells Windows that this is a PNG image file and should be opened with an image viewer or photo editor.
Another example: report.docx — the extension .docx tells Windows this is a Microsoft Word document and should open with MS Word or a compatible program.
File extensions help the Microsoft Windows operating system identify the type of a file. When you double-click a file, Windows looks at the extension to decide which program to use to open it. This is called file association.
Why Are File Extensions Important?
File extensions serve several important purposes. Here is why they matter:
- Identify file type: Extensions immediately tell you what kind of file you are dealing with — a document, photo, audio, video, or program.
- Open with correct program: Windows uses the extension to automatically open the file with the right program. A .mp3 file opens in a music player. A .docx file opens in Word.
- Prevent mistakes: Extensions help prevent accidentally opening the wrong type of file with the wrong program — which could cause errors or data corruption.
- Security: Knowing file extensions helps protect you from malware. A file named photo.jpg.exe is not a photo — the .exe extension reveals it is an executable program that could be dangerous.
- File format information: Extensions tell you how data is encoded inside the file — which helps when sharing files with others to ensure compatibility.
- Compatibility: Different programs save files in different formats. Knowing extensions helps you choose the right format for sharing — like saving a document as .pdf for universal viewing.
How Do File Extensions Work in Windows?
When you save a file in any application, the program automatically adds the appropriate extension to the filename. For example:
- When you save a painting in MS Paint → it adds .png or .bmp to the filename.
- When you save a document in MS Word → it adds .docx to the filename.
- When you save a spreadsheet in Excel → it adds .xlsx to the filename.
Windows then stores the file with that extension and uses it to determine the correct program for opening. This is called file association. Each extension is associated (linked) with a specific program in Windows.
By default, Windows hides file extensions to make filenames look cleaner. But it is a good idea to show file extensions so you can always see what type of file you are dealing with — especially for security reasons.
How to Show File Extensions in Windows
- Open File Explorer (Windows key + E)
- Click on the View tab in the menu bar
- Check the box that says File name extensions
- File extensions will now be visible on all files
This is a highly recommended setting for all users — knowing the extension of every file helps you stay safe and work more efficiently.
1. Text File Extensions
Text file extensions are used for files that contain written text — documents, notes, reports, spreadsheets, and presentations.
- .docx — Microsoft Word Document (Word 2007 and later for Windows, 2008 for Mac). The most widely used document format for office work, reports, and essays.
- .doc — Older Microsoft Word document format (Word 97-2003). Still used for compatibility with older systems.
- .txt — Plain text file. Contains only basic text with no formatting. Opens in Notepad. Used for simple notes, code, and configuration files.
- .rtf — Rich Text Format. Supports basic text formatting (bold, italic, fonts) but is compatible with almost all word processors.
- .pdf — Portable Document Format. Created by Adobe. Preserves formatting perfectly on any device. Best format for sharing final documents.
- .xlsx — Microsoft Excel Spreadsheet (Excel 2007 and later). Used for data, calculations, charts, and financial records.
- .xls — Older Microsoft Excel format. Used for compatibility with Excel 97-2003.
- .pptx — Microsoft PowerPoint Presentation (2007 and later). Used for slide presentations.
- .csv — Comma Separated Values. A simple text file where each line is a row and values are separated by commas. Used for data import/export.
- .dat — Data file. Contains raw data used by various programs. Not meant to be opened directly by users.
- .odt — OpenDocument Text. Used by LibreOffice Writer and Google Docs. Open-source alternative to .docx.
2. Image File Extensions
Image file extensions identify photo and graphic files. Each format has different characteristics for quality, file size, and use case.
- .jpg / .jpeg — Joint Photographic Experts Group. The most widely used image format on the internet. Compresses photo files to a smaller size. Best for photographs. Some image quality is lost during compression.
- .png — Portable Network Graphics. Supports transparency (transparent backgrounds). Higher quality than JPEG. Best for logos, graphics, and screenshots. Larger file size than JPEG.
- .gif — Graphics Interchange Format. Supports simple animations (animated GIFs). Limited to 256 colors. Used for small web animations and memes.
- .bmp — Bitmap file. Uncompressed image format developed by Microsoft. Very high quality but very large file size. Mainly used in Windows.
- .tif / .tiff — Tagged Image File Format. Very high quality, lossless image format. Used in professional photography, printing, and scanning. Very large file size.
- .webp — Modern image format developed by Google. Smaller file size than JPEG and PNG with similar quality. Widely used on modern websites.
- .svg — Scalable Vector Graphics. Uses mathematical formulas instead of pixels. Can be resized to any size without losing quality. Best for logos and icons.
- .heic — High Efficiency Image Container. Default photo format on Apple iPhones. Better quality and smaller size than JPEG.
- .raw — Raw image format used by digital cameras. Contains all original unprocessed data captured by the camera sensor. Largest quality but very large file size.
3. Audio File Extensions
Audio file extensions identify music, voice recordings, and sound files.
- .mp3 — MPEG Audio Layer 3. The most popular audio format worldwide. Compresses audio files to a small size with good quality. Compatible with virtually all devices and players.
- .wav — Waveform Audio File. Uncompressed, lossless audio format by Microsoft. Very high quality but very large file size. Used in professional audio production.
- .aac — Advanced Audio Coding. Better quality than MP3 at the same file size. Default format for Apple iTunes, iPhones, and YouTube. Usually stored in an MPEG-4 container.
- .wma — Windows Media Audio. Developed by Microsoft. Used in Windows Media Player. Compresses audio with good quality.
- .flac — Free Lossless Audio Codec. Compresses audio without any quality loss. Preferred by audiophiles who want the best quality. Larger than MP3 but smaller than WAV.
- .ogg — Ogg Vorbis. Open-source audio format. Used in web browsers, games, and Linux. Good quality at small file sizes.
- .m4a — MPEG-4 Audio. Used by Apple products. Better quality than MP3 at the same bitrate.
- .amr — Adaptive Multi-Rate codec. Used for voice recordings on GSM-based mobile phones. Small file size optimized for speech.
- .ra — Real Audio file. Developed by RealNetworks for streaming audio over the internet.
- .midi / .mid — Musical Instrument Digital Interface. Does not store actual audio — stores musical note instructions. Very small file size. Used for electronic music and keyboard instruments.
4. Video File Extensions
Video file extensions identify movie files, recordings, and video clips.
- .mp4 — MPEG-4 Video. The most widely used video format today. Excellent quality at relatively small file sizes. Compatible with virtually all devices, browsers, and platforms.
- .mkv — Matroska Video. An open container format that can hold video, audio, subtitles, and detailed metadata together in one file. Supports any video codec like H.264 or H.265.
- .avi — Audio Video Interleave. Developed by Microsoft. One of the oldest video formats. High quality but large file size. Still widely supported.
- .mov — Apple QuickTime Movie. Used by Apple devices and QuickTime player. High quality. Common format for video recorded on iPhones and Mac computers.
- .wmv — Windows Media Video. Developed by Microsoft. Used by Windows Media Player. Good compression with decent quality.
- .flv — Flash Video. Encodes video to run inside a Flash animation player. Was widely used for online video (YouTube used it early on). Now largely replaced by MP4.
- .3gp — 3GPP format. The most common video format for cell phones. Very small file size, lower quality. Designed for mobile video sharing.
- .webm — Open web video format developed by Google. Used for HTML5 video on websites. Small file size with good quality.
- .mpg / .mpeg — Moving Picture Experts Group format. An older video standard. Used for DVDs and broadcast television.
- .rm — Real Media. Used for streaming video and audio online. Developed by RealNetworks.
5. Web File Extensions
Web file extensions are used for files that make up websites and web applications.
- .html — HyperText Markup Language. The standard language for creating web pages. Every website you visit is built with HTML files.
- .htm — Same as HTML — an older version of the .html extension used for HTML files.
- .css — Cascading Style Sheets. Controls the visual design and layout of web pages — colors, fonts, spacing, and positioning.
- .js — JavaScript file. Adds interactive behavior and dynamic functionality to websites.
- .php — Hypertext Preprocessor. A server-side scripting language used to create dynamic websites. WordPress websites run on PHP.
- .xml — Extensible Markup Language. Used for storing and transporting data in a structured, readable format.
- .xhtml — Extensible HyperText Markup Language. A stricter, XML-based version of HTML.
- .asp — Microsoft Active Server Page. A server-side scripting format used on Microsoft web servers.
- .aspx — Microsoft Active Server Page (Extended). A newer version of ASP used in ASP.NET web applications.
- .jsp — Java Server Pages. A server-side technology for creating dynamic web content using Java.
- .json — JavaScript Object Notation. A lightweight data format used for exchanging data between web servers and browsers.
6. Compressed File Extensions
Compressed file extensions identify archive files that contain one or more files packed together and compressed to save space.
- .zip — The most common compressed archive format. Can contain multiple files and folders compressed together. Supported natively by Windows. No extra software needed to open .zip files.
- .rar — WinRAR archive. Better compression ratio than ZIP. Requires WinRAR or 7-Zip software to open. Can be split into multiple parts for large files.
- .7z — 7-Zip archive. Very high compression ratio — best for reducing file size. Free and open-source. Requires 7-Zip software.
- .tar — Tape Archive. Bundles multiple files into one file (no compression). Often combined with gzip as .tar.gz (also called .tgz) for compression. Common in Linux.
- .gz — GZip compressed file. Uses gzip compression. Common on Linux and Unix systems.
7. Executable and System File Extensions
These file extensions are associated with programs and system files. Be very careful with executable files from unknown sources — they can contain malware.
- .exe — Executable file. When you double-click an .exe file, it runs a program. All Windows programs are launched from .exe files. Never run an .exe from an unknown source.
- .msi — Microsoft Software Installer. Used to install software on Windows. Similar to .exe but uses Windows Installer.
- .dll — Dynamic Link Library. Contains code and data used by multiple programs simultaneously. Missing .dll files cause application errors.
- .sys — System file. Core Windows operating system files. Do not delete or modify .sys files.
- .drv — Device Driver file. Controls how hardware devices (printer, graphics card, etc.) communicate with Windows.
- .bat — Batch file. A text file containing a series of Windows commands that run automatically in sequence.
- .cmd — Windows Command Script. Similar to .bat files. Runs in the Windows command prompt.
- .cab — Cabinet file. Used by Windows installation processes to store compressed installation files.
8. Backup and Temporary File Extensions
- .bak — Backup file. Automatically created by programs as a backup copy of an important file. If your main file gets corrupted, you can restore from the .bak file.
- .tmp — Temporary file. Created by programs during their operation for temporary storage. Should be automatically deleted when the program closes, but sometimes remain. Safe to delete .tmp files if the program is not running.
- .old — Old backup file created by Windows Update or other processes to preserve previous versions.
9. Database File Extensions
- .mdb — Microsoft Access Database. The older database format used by Microsoft Access.
- .accdb — Microsoft Access Database (2007 and later). The newer Access database format.
- .sql — Structured Query Language file. Contains database commands and data used by SQL databases.
- .db — Generic database file. Used by various programs to store structured data.
- .sqlite — SQLite database file. A lightweight, self-contained database used by many apps and browsers.
10. Other Common File Extensions
- .torrent — BitTorrent file. Contains information about files to be downloaded using BitTorrent peer-to-peer sharing software.
- .iso — Disc image file. An exact copy of a CD, DVD, or Blu-ray disc stored as a single file. Can be mounted as a virtual drive.
- .apk — Android Package Kit. The installation file format for Android apps. Like .exe but for Android phones.
- .ipa — iOS App file. The installation format for iPhone and iPad apps.
- .dmg — Apple Disk Image. Used to distribute software on Mac computers. Like an .iso but for macOS.
- .lnk — Windows Shortcut file. A link that points to a file, folder, or program. The shortcuts on your desktop are .lnk files.
- .ini — Initialization file. Configuration file that stores settings for Windows and applications in a simple text format.
- .log — Log file. Records events, errors, and activities from programs and Windows. Useful for troubleshooting problems.
File Extensions and Computer Security
Understanding file extensions is essential for staying safe online. Many malware attacks exploit people’s lack of knowledge about file extensions. Here is what you need to know:
- Dangerous extensions: .exe, .bat, .cmd, .scr, .vbs, .js — these can run code on your computer. Never open these from unknown sources or email attachments.
- Double extension trick: Hackers often name malware files like photo.jpg.exe — if extensions are hidden, you only see photo.jpg and think it is safe, but it is actually an executable program.
- Always show extensions: Enable file extension visibility in Windows so you can always see the true extension of every file.
- Antivirus protection: Many antivirus programs monitor suspicious file extensions and block dangerous files from running. Always keep antivirus software updated.
- Email attachments: Be very cautious about email attachments with .exe, .zip, .rar, or .docm extensions — these are common vectors for malware.
Important Facts About File Extensions
Here are important facts about file extensions commonly tested in exams and interviews:
- A file extension is a suffix after the dot in a filename that identifies the file type — for example, .png in image.png.
- File extensions help the Microsoft Windows operating system identify the type of file and which program should open it.
- .exe is the extension for executable (program) files in Windows — double-clicking runs the program.
- .pdf (Portable Document Format) was created by Adobe and is the universal format for sharing documents.
- .jpg and .jpeg are the same format — JPEG stands for Joint Photographic Experts Group.
- .docx is the default save format for Microsoft Word 2007 and later documents.
- .mp3 (MPEG Audio Layer 3) is the most popular audio file format in the world.
- .mp4 (MPEG-4 Video) is the most widely used video format on modern devices and platforms.
- .zip is the most common compressed archive format — supported natively by Windows.
- .html (HyperText Markup Language) is the standard format for all web pages.
- .dll (Dynamic Link Library) files are shared code libraries used by multiple Windows programs.
- .sys files are core Windows system files — never delete them as it can crash Windows.
- .tmp (temporary) files can usually be safely deleted if the program that created them is not running.
- .bak files are automatic backup copies created by programs to protect important data.
- By default, Windows hides file extensions — it is recommended to enable ‘File name extensions’ in File Explorer for security.
Related Topics on FixingGeek.com
Want to learn more about computers and technology? Check out these helpful guides on FixingGeek:
- Learn about Computer Basics — complete beginner guide to computers.
- Check the Monitor Guide — types of monitors and how they work.
- Understand Computer Hardware — all physical components explained.
- Learn about Storage Devices — where your files are actually stored.
- Free up space: 6 Ways to Free Up Space in Windows 10 — manage your files better.
- Explore Computer Abbreviations — full forms of all important computer terms.
- Test your knowledge with the Computer Basic Quiz.
Trusted External Resources
- FileInfo.com — Complete File Extension Database — the most comprehensive online database of file extensions and their associated programs.
- Adobe PDF Guide — official resource for the PDF format.
- 7-Zip Free Download — free, open-source tool to open ZIP, RAR, 7Z and all compressed file formats.
File Extensions — 40 Frequently Asked Questions (FAQ)
Here are 40 most commonly asked questions about file extensions with short, clear answers:
Q1. What is a file extension?
A: A file extension is a suffix at the end of a filename (after the dot) that tells the operating system what type of file it is. Example: .jpg in photo.jpg.
Q2. Why are file extensions important?
A: They tell the OS what type of file it is, which program should open it, and help identify potentially dangerous files.
Q3. What is the most common document file extension?
A: .docx (Microsoft Word) and .pdf (Portable Document Format) are the most commonly used document file extensions.
Q4. What does .exe stand for?
A: .exe stands for Executable file — a program that runs when you double-click it.
Q5. What does .pdf stand for?
A: .pdf stands for Portable Document Format — created by Adobe for universal document sharing.
Q6. What does .jpg stand for?
A: .jpg stands for Joint Photographic Experts Group — a compressed image format for photos.
Q7. What is the difference between .jpg and .png?
A: .jpg is a compressed format best for photos. .png supports transparency and is better for graphics and logos.
Q8. What does .mp3 stand for?
A: .mp3 stands for MPEG Audio Layer 3 — the most popular audio format.
Q9. What does .mp4 stand for?
A: .mp4 stands for MPEG-4 Video — the most widely used video format.
Q10. What does .zip stand for?
A: .zip is a compressed archive format that bundles multiple files into one smaller file.
Q11. What does .docx stand for?
A: .docx is the default Microsoft Word document format used in Word 2007 and later.
Q12. What does .xlsx stand for?
A: .xlsx is the Microsoft Excel spreadsheet format used in Excel 2007 and later.
Q13. What does .pptx stand for?
A: .pptx is the Microsoft PowerPoint presentation format used in PowerPoint 2007 and later.
Q14. What is the difference between .doc and .docx?
A: .doc is the older Word 97-2003 format. .docx is the newer XML-based format from Word 2007+. .docx is smaller and more compatible.
Q15. What does .html stand for?
A: .html stands for HyperText Markup Language — the standard format for web pages.
Q16. What does .txt stand for?
A: .txt is a plain text file containing only basic text with no formatting.
Q17. What does .rar stand for?
A: .rar is a WinRAR archive file format. Offers better compression than ZIP but requires WinRAR or 7-Zip to open.
Q18. What does .gif stand for?
A: .gif stands for Graphics Interchange Format — supports simple animations and limited 256 colors.
Q19. What is an .mkv file?
A: .mkv is a Matroska Video container format that can hold video, audio, subtitles, and metadata together in one file.
Q20. What is a .sys file?
A: .sys files are core Windows system files. They control hardware and OS functions. Never delete them.
Q21. What is a .dll file?
A: .dll stands for Dynamic Link Library — shared code files used by multiple Windows programs simultaneously.
Q22. What does .bak stand for?
A: .bak is a backup file automatically created by programs to protect important data.
Q23. What does .tmp stand for?
A: .tmp is a temporary file created by programs during operation. Usually safe to delete when the program is closed.
Q24. What is a .csv file?
A: .csv stands for Comma Separated Values — a simple text file where each row is data separated by commas. Used for data import/export.
Q25. What is a .bat file?
A: .bat is a batch file containing Windows commands that run automatically in sequence when double-clicked.
Q26. What is a .json file?
A: .json stands for JavaScript Object Notation — a lightweight data format used to exchange data between web servers and browsers.
Q27. What is a .iso file?
A: .iso is a disc image file — an exact copy of a CD/DVD stored as a single file. Can be mounted as a virtual drive.
Q28. What is an .apk file?
A: .apk is an Android Package Kit — the installation file format for Android apps. Like .exe but for Android.
Q29. What does .flv stand for?
A: .flv stands for Flash Video — a video format that runs inside a Flash player. Largely replaced by .mp4 today.
Q30. What does .3gp stand for?
A: .3gp is the most common video format for cell phones — small file size optimized for mobile devices.
Q31. What is an .amr file?
A: .amr stands for Adaptive Multi-Rate — a voice recording format used on GSM-based mobile phones.
Q32. What is .midi or .mid?
A: .midi or .mid is a Musical Instrument Digital Interface file — stores musical note data rather than actual audio. Very small file size.
Q33. How do I show file extensions in Windows?
A: Open File Explorer → View tab → check ‘File name extensions’ checkbox. Extensions will now be visible on all files.
Q34. Why does Windows hide file extensions?
A: Windows hides extensions by default to make filenames look cleaner, but this can be a security risk.
Q35. Can file extensions be dangerous?
A: Yes. .exe, .bat, .cmd, .vbs files can run code. Never open these from unknown email attachments or downloads.
Q36. What is a .webp file?
A: .webp is a modern image format by Google — smaller than JPEG/PNG with similar quality. Used on modern websites.
Q37. What is a .svg file?
A: .svg is a Scalable Vector Graphics file — uses mathematical formulas so it can be resized to any size without quality loss.
Q38. What is a .log file?
A: .log is a log file that records events, errors, and activities from programs and Windows — useful for troubleshooting.
Q39. What is a .ini file?
A: .ini is an initialization (configuration) file that stores settings for Windows and applications in simple text format.
Q40. What is the difference between .rar and .zip?
A: .zip is more universal (no extra software needed in Windows). .rar has better compression but requires WinRAR or 7-Zip to open.
Conclusion
File extensions are small but mighty — they are the key to understanding every file on your computer. That tiny suffix after the dot in a filename tells your computer (and you) exactly what the file contains, how it is formatted, and which program should handle it.
In this complete guide, we covered everything about file extensions — from the basic definitions of files and extensions, to a comprehensive list of all file types (text, image, audio, video, web, compressed, executable, system, database), security tips, how to show extensions in Windows, important facts, and 40 FAQ.
We hope this guide was helpful and easy to understand. If you have any questions, feel free to comment below. Stay tuned with FixingGeek.com for more simple and useful computer guides. Do not forget to share this article with your friends and classmates!


