Common File Formats Explained: What JPG, PDF, MP3, and More Actually Are

File extensions are everywhere, but it's easy to use them for years without knowing what actually separates a JPG from a PNG, or a DOCX from a PDF. Here is a quick reference.

JPG vs PNG: photos vs graphics

JPG uses lossy compression well suited to photos with lots of colors and gradients, trading a little quality for a much smaller file. PNG uses lossless compression and supports transparency, which is why it's the better choice for logos, screenshots, and graphics with sharp edges or text.

PDF: a fixed layout for sharing and printing

A PDF preserves exact formatting, fonts, and layout no matter what device or printer opens it, which is why it has become the standard for official documents, forms, and anything meant to look identical everywhere.

DOCX and DOC: editable word processing documents

.docx is the modern Microsoft Word format, essentially a small package of XML files, while the older .doc format is its predecessor. Most word processors, including free ones, can open and edit both.

MP3 vs WAV: compressed vs uncompressed audio

MP3 compresses audio by discarding sound information the human ear notices least, producing far smaller files at some quality cost. WAV is uncompressed and much larger, generally reserved for professional audio editing rather than everyday listening.

MP4: the standard video container

MP4 is a "container" format that bundles a compressed video track and an audio track together into one file. It is broadly supported across phones, browsers, and streaming platforms, which is why it has become the default choice for most online video.

ZIP: a compressed bundle of other files

A ZIP file compresses one or more files into a single, smaller archive for easier sharing or storage. Most current operating systems can open a ZIP natively, without any extra software.

Why so many formats exist for similar content

Each format makes a different trade-off among file size, quality, compatibility, and how easily the content can be edited later. A format optimized for tiny file size (like a compressed JPG or MP3) usually gives up some quality or editability, while a format optimized for exact fidelity (like WAV or a lossless image format) gives up file-size efficiency in return.

The extension is a label, not a guarantee

Renaming a file's extension does not actually convert it — a video file renamed from .mp4 to .mp3 does not become playable audio, since the underlying data inside was never changed. Programs generally identify a file's real type by reading its internal structure, not just its extension, which is why a mismatched extension can cause it to fail to open.

Frequently Asked Questions

Which image format should I use for a logo?

PNG, since it preserves sharp edges and text clearly and supports a transparent background, both of which matter for a logo placed over different-colored backgrounds.

Can I convert between these formats without losing quality?

Converting from a lossless format to a lossy one (like PNG to JPG, or WAV to MP3) loses some quality at that step. Converting the other direction, from lossy to lossless, does not restore any detail that was already discarded — it just repackages the existing, already-reduced quality into a bigger file.