File format reference

File Format Guide

Explore common image, document, audio and video formats. Compare how they are structured, how they store data and where each format is commonly used.

Images

Raster images, photographs, graphics and vector artwork.

JPEG

.jpg · .jpeg

Images

A widely supported raster image format commonly used for photographs.

Structure
Raster image
Compression
Usually lossy

Key characteristics

Broad compatibility and compact photographic files. Standard JPEG does not provide an alpha transparency channel.

Metadata and embedded information

Depending on the file and application, JPEG images can contain EXIF, IPTC, XMP and ICC profile data in marker segments.

Common uses

Photographs and general-purpose image sharing.

PNG

.png

Images

A lossless raster format designed for portable images and web use.

Structure
Chunk-based raster image
Compression
Lossless

Key characteristics

Supports indexed, grayscale and truecolor images, plus an optional alpha channel. APNG adds animation using PNG chunks.

Metadata and embedded information

PNG can contain text chunks, EXIF data, ICC profiles and other ancillary chunks. Which fields appear depends on the encoder and file.

Common uses

Graphics, screenshots, interface assets and images that need transparency.

MIME type

image/png

W3C PNG Specification

WebP

.webp

Images

A web image format with lossy and lossless encoding options.

Structure
RIFF-based image container
Compression
Lossy or lossless

Key characteristics

Supports transparency and animation. File size and visual quality depend on the chosen encoding settings.

Metadata and embedded information

The extended container defines chunks for ICC profiles, EXIF and XMP metadata.

Common uses

Web images where browser support and smaller transfers matter.

MIME type

image/webp

RFC 9649: WebP

AVIF

.avif · .avifs

Images

An image format based on AV1 image coding and the ISO Base Media File Format.

Structure
ISO Base Media image container
Compression
Lossy or lossless modes

Key characteristics

Can support alpha transparency, high dynamic range and image sequences. Support varies across software and devices.

Metadata and embedded information

The container can carry properties and associated metadata such as EXIF, XMP and color information when written by an encoder.

Common uses

Efficient image delivery where the target browsers and applications support it.

GIF

.gif

Images

An indexed-color raster format often used for short animations.

Structure
Block-based raster image
Compression
Lossless LZW for indexed image data

Key characteristics

Each frame uses a palette of up to 256 colors. Supports simple animation and binary transparency, not full alpha transparency.

Metadata and embedded information

The format includes comment and application extension blocks. It is not a general-purpose EXIF photo container.

Common uses

Simple animations and small palette-based graphics.

MIME type

image/gif

GIF89a Specification

TIFF

.tif · .tiff

Images

A flexible tag-based wrapper for raster images and different image encodings.

Structure
Tagged raster image container
Compression
Uncompressed or compressed, depending on the selected scheme

Key characteristics

Can store high-bit-depth images, multiple pages or images, and a range of color and compression options.

Metadata and embedded information

Tags can store image properties and descriptive information. Common workflows also use EXIF, IPTC, XMP and ICC profiles.

Common uses

Scanning, image exchange, publishing and archival workflows that need flexible image storage.

MIME type

image/tiff

Library of Congress: TIFF

BMP

.bmp

Images

A raster image format with a simple file header and support for several pixel layouts.

Structure
Bitmap file with pixel data and optional color information
Compression
Uncompressed or compressed, depending on the bitmap header and encoding

Key characteristics

Common BMP files store pixels directly and may include palettes, color masks or a color profile. File size can be large compared with compressed web formats.

Metadata and embedded information

The file header records structural values such as file size and pixel-data offset. DIB headers and optional profile data can describe color and image properties.

Common uses

Compatibility with Windows-oriented applications and simple bitmap exchange.

HEIF / HEIC

.heif · .heic

Images

An image container family based on ISO Base Media File Format. HEIC commonly refers to HEVC-coded HEIF images.

Structure
Item-based image container
Compression
Depends on the image coding format

Key characteristics

Can hold one or more images, image sequences, auxiliary images and related properties. Application support varies.

Metadata and embedded information

The container can associate EXIF and XMP metadata with image items and store color information as properties.

Common uses

Efficient photo storage and image workflows that support HEIF-based files.

MIME type

image/heif · image/heic

GDAL HEIF / HEIC Format Notes

SVG

.svg

Images

An XML-based vector graphics format that describes shapes, paths, text and other visual elements.

Structure
Text-based vector document
Compression
Text can be compressed as SVGZ. Rendering is resolution independent

Key characteristics

Scales cleanly, supports styling and scripting features, and can include raster images and linked resources.

Metadata and embedded information

The XML document can contain title, description and metadata elements, along with comments and application-specific data.

Common uses

Logos, icons, diagrams and illustrations that need to scale.

MIME type

image/svg+xml

W3C SVG 2

Documents

Portable documents, editable files and office packages.

PDF

.pdf

Documents

A page-oriented document format designed to preserve layout across viewing and printing environments.

Structure
Structured document with objects and streams
Compression
Varies by object and embedded stream

Key characteristics

Can contain text, vector graphics, images, fonts, links, forms, annotations, attachments and digital signatures.

Metadata and embedded information

Document information can appear in the Info dictionary and in an XMP metadata stream.

Common uses

Sharing documents whose page layout should remain consistent.

MIME type

application/pdf

Library of Congress: PDF

DOCX

.docx

Documents

The Office Open XML package format used by modern Microsoft Word documents.

Structure
ZIP package containing XML parts and related resources
Compression
ZIP package compression

Key characteristics

Can include document text, styles, images, comments, revisions, relationships and embedded objects.

Metadata and embedded information

Package properties include core and custom document properties. Other information can appear in comments, revisions and embedded parts.

Common uses

Editable word-processing documents and collaboration.

MIME type

application/vnd.openxmlformats-officedocument.wordprocessingml.document

ECMA-376 Office Open XML

XLSX

.xlsx

Documents

The Office Open XML package format used by modern Microsoft Excel workbooks.

Structure
ZIP package containing XML parts and related resources
Compression
ZIP package compression

Key characteristics

Can contain worksheets, formulas, tables, charts, styles, comments, drawings and links between package parts.

Metadata and embedded information

Package properties include core and custom properties. Workbook features can also include comments, external connections and other embedded parts.

Common uses

Structured data, calculations, analysis and spreadsheets.

MIME type

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

ECMA-376 Office Open XML

PPTX

.pptx

Documents

The Office Open XML package format used by modern Microsoft PowerPoint presentations.

Structure
ZIP package containing XML parts and related resources
Compression
ZIP package compression

Key characteristics

Can contain slides, layouts, themes, images, media, notes, comments, charts and embedded objects.

Metadata and embedded information

Package properties include core and custom properties. Comments, notes and embedded parts can carry additional information.

Common uses

Editable slide decks and presentations.

MIME type

application/vnd.openxmlformats-officedocument.presentationml.presentation

ECMA-376 Office Open XML

Audio

Music, recordings and audio containers.

MP3

.mp3

Audio

A compressed audio format using MPEG Layer III audio coding.

Structure
Audio bitstream with optional ID3 metadata blocks
Compression
Lossy

Key characteristics

Small files and broad playback compatibility. Repeated encoding can reduce audio quality.

Metadata and embedded information

ID3v1 and ID3v2 tags can store title, artist, album, date, genre, artwork and other descriptive fields.

Common uses

Music and spoken audio distribution where file size matters.

MIME type

audio/mpeg

Library of Congress: MP3

WAV

.wav

Audio

A RIFF-based audio wrapper that can contain PCM and other audio encodings.

Structure
Chunk-based audio container
Compression
Often uncompressed PCM, but other encodings are possible

Key characteristics

Common in recording, editing and production workflows. File size depends on sample rate, bit depth, channels and encoding.

Metadata and embedded information

Information can be stored in RIFF INFO chunks. Broadcast WAVE can add bext data, with other defined chunks such as iXML and aXML.

Common uses

Recording, editing, production and workflows that use PCM audio.

MIME type

audio/wav

Library of Congress: WAVE

FLAC

.flac

Audio

A lossless audio compression format that reconstructs the original audio samples.

Structure
FLAC stream with metadata blocks
Compression
Lossless

Key characteristics

Reduces file size without discarding audio information. Compression level changes encoding effort and size, not decoded quality.

Metadata and embedded information

Metadata blocks can include Vorbis comments, pictures, seek tables and stream information.

Common uses

Music libraries, archiving and lossless audio exchange.

MIME type

audio/flac

FLAC Format Specification

Ogg / Opus

.ogg · .opus

Audio

Ogg is a container format. Opus is an audio codec that can be carried in Ogg or other supported transports.

Structure
Container and codec pairing
Compression
Depends on the codec. Opus is lossy

Key characteristics

Ogg can carry different media streams. Opus is designed for interactive speech and general audio across a wide bitrate range.

Metadata and embedded information

Ogg streams can include codec-specific comment headers. Metadata fields depend on the codec and application.

Common uses

Streaming, voice, music and open media workflows using supported players.

MIME type

audio/ogg · audio/opus

RFC 7845: Ogg Opus

Video

Video containers and web media formats.

MP4

.mp4

Video

A widely used media container based on the ISO Base Media File Format.

Structure
Container for timed media tracks
Compression
Depends on the video and audio codecs inside

Key characteristics

Can hold video, audio, timed text, subtitles, chapters and other tracks. The extension does not specify which codec is used.

Metadata and embedded information

File-level and track-level boxes can carry timing, descriptive, location, device and other metadata depending on the file.

Common uses

Video sharing, web playback and general media delivery.

MOV

.mov

Video

The QuickTime File Format, a container used for video, audio and related media tracks.

Structure
QuickTime / ISO media container
Compression
Depends on the codecs in its tracks

Key characteristics

Can contain multiple tracks, time-based media, references and metadata. Playback compatibility depends on the codecs and application.

Metadata and embedded information

QuickTime atoms and metadata structures can describe creation time, device, location and other media properties.

Common uses

Apple and professional media workflows that use QuickTime-compatible containers.

MIME type

video/quicktime

Library of Congress: QuickTime

Matroska

.mkv

Video

An extensible multimedia container based on EBML.

Structure
EBML-based media container
Compression
Depends on the codecs in its tracks

Key characteristics

Can combine video, audio, subtitles, chapters, attachments and selectable tracks in one file.

Metadata and embedded information

Matroska supports structured tags and other segment-level information. Contents depend on the muxing application.

Common uses

Flexible media libraries and files that need multiple tracks or subtitle streams.

MIME type

video/x-matroska

RFC 9559: Matroska

WebM

.webm

Video

A web-oriented audiovisual container based on a subset of the Matroska format.

Structure
EBML-based media container
Compression
Depends on supported WebM codecs

Key characteristics

Designed for web delivery and browser playback with a defined set of media codecs and container constraints.

Metadata and embedded information

Container-level elements and tags can hold track and segment information. Actual fields depend on the file and muxer.

Common uses

Web video and audio delivery in environments that support WebM.

MIME type

video/webm

WebM Container Guidelines

Common format comparisons

Key differences to consider when choosing a file type.

JPEG vs PNG

Main difference

JPEG is commonly lossy and suited to photographs. PNG is lossless and supports alpha transparency.

Choosing between them

Choose JPEG for many photos and PNG for sharp graphics or transparency.

WebP vs AVIF

Main difference

Both support modern web image features. Encoding efficiency and software support vary by workflow.

Choosing between them

Compare visual quality and compatibility in the browsers and applications you use.

MP3 vs WAV

Main difference

MP3 uses lossy audio coding. WAV is a container that commonly carries uncompressed PCM but can hold other encodings.

Choosing between them

Choose based on delivery size, editing needs and the audio encoding inside the file.

MP4 vs MOV

Main difference

Both are containers. The actual codecs and supported features depend on the tracks and applications.

Choosing between them

Check the codec and playback target rather than relying only on the extension.

Metadata in file formats

A format defines how data is organized. The metadata present in an individual file depends on its specification, the application that created it and the export settings. Containers can also hold separate audio, video, image or text streams.

Browse the Library of Congress format descriptions