Latest Update: UPSC CSE 2025 Notification Out!
Computer Knowledge Notes

File Extensions and Formats Notes for Competitive Exams

Komal Gupta

UPSC Exam Expert & Content Editor

Updated 17 Oct 2026

PDF Notes: File Extensions and Formats Notes for Competitive Exams

Premium PDF · one-time payment of ₹5 · instant access

Every file stored on a computer has a name and, usually, an extension: a short code after a dot at the end of the file name, such as .docx, .pdf or .jpg. The extension tells the operating system what type of data the file contains and which program should open it. For example, "report.pdf" opens in a PDF reader, while "song.mp3" opens in a music player. A file format is the standard way in which data is arranged inside a file. Questions on file extensions and formats appear regularly in the computer awareness sections of IBPS and SBI bank exams, insurance, SSC, railway and state exams. Typical questions ask which extension belongs to a spreadsheet, which image format supports transparency or which file type is executable. This note groups the most important extensions by category with simple explanations.

Quick Facts at a Glance

  • Word documents: .doc (older), .docx (current).
  • Excel spreadsheets: .xls (older), .xlsx (current).
  • PowerPoint presentations: .ppt (older), .pptx (current).
  • Portable Document Format: .pdf, developed by Adobe.
  • Executable programs on Windows: .exe.

1. Document and Office Files

Extension File type Typical program
.txt Plain text (no formatting) Notepad, any text editor
.doc / .docx Word processing document Microsoft Word
.rtf Rich Text Format (basic formatting, widely compatible) WordPad, Word
.odt OpenDocument Text LibreOffice Writer
.pdf Portable Document Format (fixed layout) Adobe Acrobat Reader, browsers
.xls / .xlsx Spreadsheet Microsoft Excel
.csv Comma-Separated Values (simple table data) Excel, text editors, databases
.ppt / .pptx Presentation Microsoft PowerPoint
.accdb / .mdb Database Microsoft Access

The "x" in .docx, .xlsx and .pptx stands for XML. Since Microsoft Office 2007, these formats store data in XML inside a compressed package, making files smaller and more reliable than the older .doc, .xls and .ppt formats.

2. Image Files

Extension Full form Key feature
.jpg / .jpeg Joint Photographic Experts Group Lossy compression; best for photographs
.png Portable Network Graphics Lossless; supports transparency; good for logos and screenshots
.gif Graphics Interchange Format Limited to 256 colours; supports simple animation
.bmp Bitmap Uncompressed; large file size
.tiff / .tif Tagged Image File Format High quality; used in printing and scanning
.svg Scalable Vector Graphics Vector image; scales without losing quality
.webp — Modern web format by Google; smaller files with good quality
.psd Photoshop Document Layered image file in Adobe Photoshop

Raster vs vector: Raster images (JPG, PNG, BMP) are made of pixels and become blurry when enlarged. Vector images (SVG, AI, EPS) are made of mathematical shapes and stay sharp at any size, which is why logos are often designed as vectors.

3. Audio Files

  • .mp3 (MPEG-1 Audio Layer 3): The most common compressed audio format; lossy.
  • .wav (Waveform Audio File): Uncompressed, high quality, large files.
  • .aac (Advanced Audio Coding): Better quality than MP3 at similar sizes; used by many streaming and mobile platforms.
  • .flac (Free Lossless Audio Codec): Compressed but lossless.
  • .midi / .mid: Stores musical instructions (notes, timing), not actual recorded sound.

4. Video Files

  • .mp4 (MPEG-4 Part 14): The most widely used video format on the web and phones.
  • .avi (Audio Video Interleave): An older Microsoft format.
  • .mkv (Matroska Video): Can hold multiple audio tracks and subtitles.
  • .mov: Apple QuickTime format.
  • .wmv: Windows Media Video.
  • .webm: Open format designed for web video.

5. Compressed and Archive Files

Compression reduces file size so that files take less storage and travel faster over the Internet. Common archive formats are .zip (the most widely supported), .rar, .7z, .tar and .gz (common on Linux). Extracting a compressed file is often called "unzipping".

6. Web and Programming Files

Extension Used for
.html / .htm Web pages (HyperText Markup Language)
.css Styling of web pages (Cascading Style Sheets)
.js JavaScript code
.php Server-side web scripts
.xml / .json Structured data exchange
.c / .cpp C and C++ source code
.java / .class Java source and compiled bytecode
.py Python source code
.sql Database queries

7. System and Executable Files

  • .exe: Executable program on Windows.
  • .msi: Windows installer package.
  • .bat: Batch file containing a series of commands.
  • .dll (Dynamic Link Library): Shared code used by many programs.
  • .sys: System or device driver files.
  • .apk: Android application package.
  • .dmg: Disk image used to install software on macOS.
  • .iso: Disk image of an entire CD or DVD.
  • .tmp: Temporary file created by programs.

Security tip: Executable files (.exe, .bat, .apk, .msi) can install software and run commands, so cybercriminals often disguise malware as such files. Be cautious of email attachments with names like "invoice.pdf.exe", where a harmless-looking name hides an executable extension.

8. Lossy vs Lossless Compression

Compression is the process of reducing the size of a file. There are two broad kinds, and exams often ask which formats belong to which.

Basis Lossy compression Lossless compression
Data loss Some data is permanently removed No data is lost; original can be fully restored
File size Much smaller Moderately smaller
Quality Slight reduction, often unnoticeable Exactly the same as the original
Examples JPEG, MP3, AAC, MP4 (video codecs) PNG, GIF, FLAC, ZIP, WAV (uncompressed)

Lossy compression works by removing details that human eyes and ears are less likely to notice, such as very high-frequency sounds or tiny colour variations. That is why a photo saved repeatedly as JPEG gradually loses quality. Lossless compression is essential for text, programs and data files, where even one changed bit could make the file unusable.

9. Why File Formats Matter in Governance

Choosing the right format affects how easily information can be shared and preserved. Governments prefer open standards, such as PDF/A for long-term archiving and ODF or CSV for data, so that citizens can open files without buying specific software. India's Policy on Open Standards for e-Governance (2010) and the National Data Sharing and Accessibility Policy (2012), under which datasets are published on data.gov.in, encourage such machine-readable, open formats. Open formats reduce vendor dependence and help researchers, journalists and startups use public data, which is a useful point for UPSC answers on transparency and digital governance.

10. How to Change or View Extensions

By default, Windows may hide known file extensions. You can show them through File Explorer's "View" options by enabling "File name extensions". Renaming a file's extension does not convert its format; for example, renaming "photo.png" to "photo.jpg" does not turn it into a real JPEG. To change formats, you must use "Save As" or a converter program. Showing extensions is also a good security habit, because it helps you spot disguised executable files.

11. Practice Questions

  1. Which extension is used for a PowerPoint presentation? Answer: .pptx (or .ppt).
  2. Which audio format stores musical notes instead of recorded sound? Answer: MIDI.
  3. Which image format is vector-based? Answer: SVG.
  4. Which file type contains shared code used by many Windows programs? Answer: .dll.
  5. Is MP3 lossy or lossless? Answer: Lossy.

12. Choosing the Right Format: Practical Guide

  • Submitting a form or resume online: Use PDF, so the layout stays the same on every device.
  • Sharing an editable draft: Use DOCX or ODT, so others can make changes.
  • Uploading a photograph for an exam application: Use JPG, usually within the size limit specified (often in kilobytes).
  • Saving a logo or screenshot with text: Use PNG for sharp edges and transparency.
  • Sharing data with others or importing into software: Use CSV or XLSX.
  • Sending many files together by email: Compress them into a ZIP file.
  • Archiving documents for many years: Use PDF/A, an archival version of PDF.

Online application portals, including those of UPSC, SSC and banks, specify exact formats and size limits for photographs, signatures and documents. Knowing how to resize images and convert files into the required format can save a lot of stress at the time of applying.

Memory Tricks

Group extensions by the first letter of their category: Documents (docx, pdf, txt), Pictures (jpg, png, gif), Sounds (mp3, wav, aac), Videos (mp4, mkv, avi), Zipped (zip, rar, 7z) and Executables (exe, apk, msi). Remember the phrase "Do People Sing Very Zealous Encores" to recall the six groups in order.

Final tip: When an exam question lists four extensions and asks for the odd one out, first identify the category of each. Usually three belong to the same group (for example, three image formats) and one belongs to another (such as an audio format).

Frequently Asked Questions

What is a file extension?

The letters after the dot in a file name, such as .pdf or .jpg, that indicate the file type and the program used to open it.

What is the extension of a Microsoft Word file?

.docx for current versions and .doc for older versions.

What is the extension of an Excel file?

.xlsx for current versions and .xls for older versions.

What does PDF stand for?

Portable Document Format, developed by Adobe.

Which image format supports transparency?

PNG (and GIF to a limited extent).

Which image format supports animation?

GIF.

What is the difference between JPG and PNG?

JPG uses lossy compression and is best for photos; PNG is lossless and supports transparency.

Which audio format is uncompressed?

WAV.

What is an .exe file?

An executable program file on Windows that runs when opened.

What is a .zip file?

A compressed archive that contains one or more files in reduced size.

What is a CSV file?

A plain-text file that stores table data, with values separated by commas.

What is the extension of an Android app?

.apk.

About the Author

Komal Gupta

UPSC Exam Expert & Content Editor

Komal is a senior UPSC exam strategist with 8+ years of experience helping aspirants crack CSE, CDS and NDA exams. She writes in-depth notification breakdowns, exam pattern guides and preparation strategies.