Image File Formats

The visual internet runs on five or six image formats doing very different jobs — the one you need depends entirely on what you're doing with the image.

Formats 37
Most common .ai, .apng, .arw
About image files

The visual internet runs on five or six image formats doing very different jobs. Some compress photographs. Some preserve every pixel. Some support transparency, animation, or vectors. The format you need depends entirely on what you're doing with the image — and half the problems people have with images come from using the wrong one.

The big divide is lossy versus lossless. JPG throws away data you probably won't notice. PNG keeps everything. WebP and AVIF try to do both, with varying degrees of browser support. Then there's SVG, which isn't pixel-based at all — it's maths. Logos, icons, and illustrations belong in SVG. Photographs belong in JPG or WebP. Screenshots and anything with sharp edges belong in PNG.

The other half of image problems is compatibility. HEIC works brilliantly on iPhones and nowhere else. WebP is perfect in browsers but your desktop apps may not open it. AVIF is the future but the future isn't evenly distributed yet. When in doubt, JPG for photos and PNG for everything else will get you through almost any situation.

All image formats
.ai AI is Adobe Illustrator's native vector format — shapes, pat... .apng APNG is an animated PNG — better colour depth and transparen... .arw ARW is Sony's RAW image format — unprocessed sensor data fro... .avif AVIF is a next-generation image format based on the AV1 vide... .bmp BMP is an uncompressed image format that stores every pixel ... .cr2 CR2 is Canon's RAW image format — unprocessed sensor data fr... .cr3 CR3 is Canon's newer RAW format — replacing CR2 in modern ca... .dds DDS is a texture format optimised for real-time rendering in... .dng DNG is Adobe's open RAW format — a universal standard design... .emf EMF is a Windows vector graphics format used for clipart, pr... .eps EPS is a legacy vector graphics format built on PostScript —... .exr EXR is a high dynamic range image format from Industrial Lig... .fig FIG is Figma's native file format — UI designs, prototypes, ... .gif GIF is an animated image format limited to 256 colours per f... .hdr HDR (Radiance RGBE) is a high dynamic range image format use... .heic HEIC is Apple's default photo format — half the size of JPG ... .heif HEIF is the container format behind HEIC — capable of storin... .ico ICO is the icon file format for Windows — multiple image siz... .jfif JFIF is a variant of JPEG that defines how image data should... .jpeg JPEG is the full-length extension for JPG files — three extr... .jpg JPG is the most widely used photo format in the world — loss... .jxl JPEG XL is a next-generation image format designed to replac... .nef NEF is Nikon's proprietary RAW image format — unprocessed se... .orf ORF is the RAW image format used by Olympus (now OM System) ... .png PNG is a lossless image format with transparency support — e... .psb PSB is Photoshop's large document format for files exceeding... .psd PSD is Adobe Photoshop's native file format — layers, masks,... .qoi QOI is a simple lossless image format designed for extremely... .raw RAW is unprocessed image data captured directly from a camer... .rw2 RW2 is the RAW image format used by Panasonic Lumix digital ... .sketch Sketch is a macOS-only UI/UX design file format — containing... .svg SVG is a vector image format defined by mathematical instruc... .tga TGA is a legacy image format still used in game development ... .tiff TIFF is a high-fidelity image format for professional photog... .webp WebP is Google's modern image format — 25–35% smaller than J... .wmf WMF is the legacy Windows vector format, predecessor to EMF,... .xcf XCF is GIMP's native project file format, preserving layers,...
Format comparison
FormatTypeTransparencyAnimationBest for
.jpgLossyNoNoPhotographs
.pngLosslessYesNoScreenshots, logos, graphics
.gifLossless (256 colours)YesYesSimple animations
.webpBothYesYesWeb images (modern browsers)
.avifBothYesYesWeb images (cutting edge)
.svgVectorYesYesIcons, logos, illustrations
.heicLossyNoNoiPhone photos
.tiffLosslessYesNoPrint, archival
Safety notes
.svg Use caution

SVG files can contain embedded scripts. Only open SVGs from trusted sources.

.wmf Use caution

Legacy format with historical security vulnerabilities. Modern Windows patches mitigate risks, but exercise caution with WMF from untrusted sources.

FAQ
What's the best image format?
It depends on the image. JPG for photographs (small files, good enough quality). PNG for screenshots, logos, and anything with transparency. SVG for icons and illustrations. WebP if you're optimising for the web and your audience uses modern browsers.
What's the difference between lossy and lossless?
Lossy formats (JPG, WebP lossy) discard visual data to make smaller files — you can't get the original back. Lossless formats (PNG, TIFF, WebP lossless) preserve every pixel perfectly but produce larger files. For photos, lossy is usually fine. For graphics with sharp edges or text, use lossless.
Which image format supports transparency?
PNG, WebP, AVIF, SVG, and GIF all support transparency. JPG does not. For web use, PNG is the safest choice. WebP is smaller but slightly less compatible with older software.
Related categories