Compression5 min read·Updated

Which Image Format Has the Smallest File Size?

For photos, AVIF gives the smallest files (often around half the size of a JPEG at similar quality), WebP comes next (about 25–35% smaller than JPEG), and JPEG is the most compatible. For screenshots and flat graphics, lossless WebP or a 256-color PNG wins; for logos and icons SVG is usually smallest; and animated WebP is about 64% smaller than the same GIF.

Smallest format by image type

Image typeSmallestRunner-upSafest fallback
PhotoAVIFWebP (lossy)JPEG
Photo with a transparent backgroundAVIFLossy WebP with transparencyPNG (much larger)
Screenshot, UI, chartLossless WebPPNG-8 (256-color palette)PNG
Logo, icon, simple illustrationSVGLossless WebP or PNG-8PNG
Illustration with gradientsAVIF or lossy WebP at quality 85–90PNG-8 with ditheringPNG
AnimationAVIF or a short MP4/WebM videoAnimated WebPGIF

Typical numbers for one 1600 × 1200 photo at similar visual quality: about 280–360 KB as a JPEG at quality 80, 180–250 KB as WebP and 120–180 KB as AVIF. As a PNG, the same photo would weigh 2.5–4 MB. For a Full HD screenshot, a 150–500 KB PNG typically shrinks by about a quarter as lossless WebP, in line with Google's figure of 26%.

Why is AVIF the smallest for photos, and why not always use it?

AVIF is built on the AV1 video codec, with larger and more flexible blocks, more prediction modes and better entropy coding than WebP's older VP8 base, so it typically squeezes another 20–30% out of a photo compared with WebP. The costs: encoding is much slower, especially for large images, and support outside browsers is patchier. Every current major browser displays AVIF, but many desktop apps, upload forms, email clients and older phones do not. WebP has had near-universal browser support for years and encodes quickly. If your CMS or CDN serves AVIF automatically, take it; when you prepare files yourself, WebP is the dependable choice. The full comparison is in WebP vs AVIF, and WebP vs JPEG covers the more common switch.

What is the smallest format for screenshots and graphics?

A lossless format, because these images are built from flat colors and sharp edges that lossy formats handle badly. Lossless WebP is usually the smallest; Google measures it at about 26% smaller than PNG. A PNG reduced to a 256-color palette comes close and is accepted everywhere. JPEG is the worst option here: it is often no smaller than an optimized PNG, and it leaves halos around text. If a screenshot is mostly a large photo, lossy WebP at quality 85–90 can beat all of them. See why is my PNG file so large for shrinking PNGs that must stay PNG.

What is the smallest format for logos and icons?

SVG. A logo described as shapes and paths is usually 1–10 KB, stays sharp at every size and can be styled with CSS. It loses that advantage only when the artwork is very complex (thousands of paths, embedded photos, effects exported from a design tool), where a 2× PNG or lossless WebP can end up smaller. Where SVG is not accepted, as in many email clients and upload forms, use a PNG at twice the displayed size.

What is the smallest format for animations?

Not GIF. GIF is limited to 256 colors per frame and uses an old compression scheme, so animations come out large and grainy. Google measures animated GIFs converted to lossy WebP at 64% smaller, and 19% smaller as lossless WebP. Animated AVIF and short MP4 or WebM videos (muted, looping, autoplaying) are usually smaller still. Keep GIF only where nothing else plays, such as some email clients. See WebP vs GIF.

When should you keep JPG anyway?

When the destination demands it. A smaller file is only better if it is accepted and displayed.

  • Upload forms for government, job and exam portals often accept only JPG or PNG.
  • Email: JPEG and PNG display everywhere; WebP works in most clients, though Gmail converts it, and AVIF support is patchier. See images for email newsletters.
  • Social and link previews: JPEG or PNG are the safest choice for Open Graph images.
  • Print services and older software: many expect JPEG or TIFF.
  • Files other people will edit: JPEG opens in every app.

In those cases, make the JPG as small as it can be: compress it at quality 75–85 with the JPG compressor, or type the maximum size the form allows. A 3 MB phone photo typically falls to about 2 MB at quality 80 alone, and to roughly 400–600 KB once it is also limited to 2000 px wide.

How do you get the smallest file in practice?

  1. Pick the format from the table above, for the image type and for where it is going.
  2. Resize to the largest size it will be displayed at, times 2 for high-density screens.
  3. Compress: quality 75–85 for photos, or set a target size in KB.
  4. For a website, convert JPG and PNG files to WebP with the WebP converter.
  5. Compare the result with the original at normal size before replacing it.
Turn JPG and PNG files into WebP in your browser. Nothing is uploaded.

Put it into practice

Compress your images right now: keep the format or set a target size, free and privately in your browser.

Open the compressor

Frequently asked questions

Yes. For photos, lossy WebP is often more than 90% smaller than PNG; for graphics, lossless WebP is about 26% smaller than PNG according to Google, without changing a pixel.

For photo file size, yes: typically 20–30% smaller at similar quality. WebP encodes faster and is accepted by more apps and services, so it remains the practical default when you prepare files by hand.

Yes, roughly half the size for iPhone photos, but on the web only Safari can display HEIC. Convert it to JPEG or WebP before publishing it or sending it to people outside Apple's ecosystem.

JPEG for photos and PNG for graphics. Keep each image close to its displayed size, usually 600 px wide or 1200 px for sharp screens, and compress it.

Keep reading

Formats8 min read

Image formats compared

A practical comparison of the four main web image formats: compression, quality, transparency, animation, browser support and the right choice for each use case.

Read more
Compression6 min read

What is image compression

Image compression shrinks files by storing pixels more efficiently (lossless) or dropping detail you barely see (lossy). How JPEG, PNG, WebP and AVIF do it.

Read more
Compression5 min read

Why PNG files are so large

PNG is lossless, so photos, 16-bit color, Retina screenshots and soft transparency make it huge. A 256-color palette or JPG/WebP for photos cuts 60–90%.

Read more