Image & Video Format Reference

Looking up an unfamiliar media file or calculating screen dimensions? Use our Interactive File Extension Explorer to identify unknown containers, or test aspect ratios with the Display Resolution & Aspect Ratio Calculator.

IMAGES & VIDEO

Media formats determine how digital images, audio tracks, video frames, and metadata are mathematically compressed and stored on a drive. However, choosing the right format involves much more than just looking at file size.

Different formats are engineered for completely different environments. An image format designed to preserve exact pixel data for professional printing will load terribly on a mobile website. Similarly, a video format meant for smooth editing in a post-production timeline will constantly buffer if you try to stream it over a cellular network. Understanding the underlying traits of these formats—like compression styles, transparency support, and decoding requirements—prevents bloated websites, corrupted saves, and playback errors.

Common Image Formats

Format Compression Transparency Real-World Context & Best Uses
JPEG (.jpg) Lossy No Standard for complex photographs and detailed gradients. It discards hidden visual data to save space (lossy), meaning quality degrades slightly every time you re-save the file.
PNG (.png) Lossless Yes (Alpha Channel) Perfect for logos, screenshots, text-heavy graphics, and cut-out subjects requiring transparent backgrounds. If used for high-res photographs, PNG file sizes become unnecessarily massive.
GIF (.gif) Lossless (but limited colors) Binary (Yes/No only) Used for basic, looping web animations. It is limited to an 8-bit palette (256 colors), which causes harsh banding on smooth gradients. Terribly inefficient for video compared to MP4 or WebM.
WebP (.webp) Lossy or Lossless Yes Developed by Google specifically for web delivery. It generally produces files 25% to 35% smaller than comparable JPEGs or PNGs while retaining similar quality. Now universally supported by modern web browsers.
AVIF (.avif) Lossy or Lossless Yes Next-generation image format derived from the AV1 video codec. Offers significantly better compression than WebP and supports HDR, but older software and legacy hardware may struggle to render it.
SVG (.svg) Vector (Math-based) Yes Unlike pixel-based formats, SVGs are actually written in XML code that draws mathematical shapes. They scale infinitely without losing sharpness, making them perfect for responsive web icons and interface UI.
TIFF (.tiff) Uncompressed / Lossless Yes The standard for professional photography, scanning, and print publishing workflows. File sizes are enormous, making TIFF completely unsuitable for website use.

Common Video Containers

Container Key Characteristics Typical Real-World Context
MP4 (.mp4) The universal multimedia container. Highly standardized. Web uploads, mobile device playback, security cameras, and general consumer distribution. Supported by virtually every screen made in the last 15 years.
WebM (.webm) Open, royalty-free container optimized specifically for HTML5. Web video, browser-based delivery, and embedding videos with transparent backgrounds natively on websites.
Matroska (MKV) Highly flexible container capable of holding unlimited video, audio, and subtitle tracks. Local media libraries, Blu-ray rips, and archival storage. Not universally supported natively by default OS video players or web browsers.
QuickTime (MOV) Developed by Apple. Handles high-bitrate professional streams beautifully. Standard for video production, camera recording (DSLRs/Mirrorless), and professional editing workflows in Final Cut Pro or Premiere.

Common Video Codecs

Codec General Role Important Context & Hardware Demands
H.264 / AVC Standard Video Compression The backbone of digital video. Extremely wide hardware support means even older laptops and smartphones can decode and play it smoothly without draining the battery.
H.265 / HEVC High-Efficiency Compression Designed for 4K and 8K delivery. Offers the same quality as H.264 at half the file size. However, it requires modern processors to decode, and editing it directly can cause older computers to stutter heavily.
VP9 Web Video Compression Developed by Google as a royalty-free alternative to H.265. This is the codec YouTube primarily uses to serve HD and 4K video to compatible web browsers.
AV1 Next-Gen Compression The future of streaming (backed by Netflix, Amazon, and Google). Offers incredible compression efficiency and is royalty-free, but requires very modern computer chips (hardware decoding) to play without spiking CPU usage.

Understanding the "Container vs. Codec" Rule

One of the most common misunderstandings in digital video is treating the file extension (the container) as the actual video format (the codec).

Think of a container (like .mp4 or .mkv) as a shipping box. Inside that box, you pack a video track, an audio track, and maybe a subtitle file. The codec (like H.264 or AV1) is the actual language those tracks are written in.

This is why you might download an .mp4 file that plays perfectly on your phone, and another .mp4 file that only plays audio with a black screen. Your phone recognized the "box" (MP4), but its processor didn't know how to translate the "language" (the specific codec) packed inside it.

Troubleshooting: Renaming File Extensions

A common mistake when trying to fix compatibility issues is manually renaming a file extension (for example, renaming image.webp to image.jpg or video.mkv to video.mp4).

This does not convert the file. It simply mislabels the container. Most modern software will realize the internal data doesn't match the label and will throw a "File Corrupted" or "Unrecognized Format" error. To change a format, the data must be mathematically re-encoded using conversion software, an image editor, or a video encoder like Handbrake.