Which image format should you use?

Most format advice is written as though one answer fits every image. It does not: the right format depends on whether your picture is a photograph or a graphic, whether it needs transparency, and whether you control where it will be opened. This page sets out the differences that actually matter, with file sizes measured on our own tools rather than quoted from elsewhere.

Last reviewed 9 November 2026

Short answers

A photo for a website
WEBP. It is meaningfully smaller than JPEG at the same visible quality, and every current browser reads it. Convert JPG to WEBP.
A photo to email, print or upload to a form
JPEG. Nothing rejects it. Save WEBP and AVIF for pages you control. Convert to JPG.
A logo, icon or anything with a transparent background
PNG for compatibility, WEBP if it is going on a website — both keep transparency. JPEG cannot: it fills transparent areas with solid colour. Convert PNG to WEBP.
An iPhone photo that will not open on Windows
That is HEIC. Convert it to JPEG and it will open anywhere. Convert HEIC to JPG.
A screenshot
PNG. Screenshots are full of sharp text and flat panels, exactly what lossy compression smears. JPEG puts visible fuzz around letters. Convert a screenshot.
An image you will keep editing
PNG, or whatever your editor's own format is. Every JPEG save throws away a little more, and it compounds.

The same photo in every format

One 2400×1600 photograph, converted by this site's own tools and weighed. The spread is much wider than format comparisons usually suggest: the largest result here is 3.8× the size of the smallest, for the same picture.

File size of one photograph by format
FormatFile sizevs smallestRelative
WEBP607.7 KB—
JPG776.3 KB1.3×
JPGoriginal851.3 KB1.4×
PNG2.25 MB3.8×

Note that these are results for a photograph. A flat logo inverts the ranking entirely — PNG stores it in a few kilobytes while JPEG bloats it and adds fringing around the edges. There is no format that wins for every kind of image, which is the whole reason this page exists.

Measured on 4 formats from one source photograph using this site's own API on 8 November 2026. The test images are generated rather than photographed, so they are reproducible and free of licensing restrictions — the figures show how each type of content behaves, not how one particular camera's output does. How we measure

What each format can and cannot do

Image format capabilities compared
FormatCompressionTransparencyAnimationSupport
JPEG.jpg, .jpegLossyNoNoUniversal. Every browser, phone, printer and upload form reads it.
PNG.pngLosslessYesNoUniversal, and has been for decades.
WEBP.webpBothYesYesEvery current browser. Some desktop software and older upload forms still reject it.
AVIF.avifBothYesYesAll current major browsers. Desktop software support is still patchy.
HEIC / HEIF.heic, .heifLossyNoNoNative on iPhone and modern macOS. Windows needs an extension; many websites reject it outright.
GIF.gifLosslessYesYesUniversal.
SVG.svgLosslessYesYesEvery current browser.

When to reach for each one

JPEG

Use it for: Photographs that will be shared, emailed or uploaded somewhere that may not accept anything newer.

Watch out: Every re-save discards more detail. Edit from an original, not from a JPEG you already saved twice.

PNG

Use it for: Logos, icons, screenshots, diagrams — anything with flat colour, sharp edges or a transparent background.

Watch out: Stores photographs very inefficiently. A photo saved as PNG is often three times the size of the same photo as JPEG.

WEBP

Use it for: Anything published on a website. It is smaller than JPEG for photos and smaller than PNG for graphics, and it keeps transparency.

Watch out: Not a safe choice for a file you need to hand to someone else, or for print.

AVIFNot supported here

Use it for: Squeezing web images smaller than WEBP, when you can afford a fallback for older software.

Watch out: Encoding is slow, and tooling outside the browser lags behind. We do not output AVIF yet.

HEIC / HEIFInput only

Use it for: Storage on an Apple device, where it roughly halves the space a photo takes compared with JPEG.

Watch out: The format behind most "why won't this photo open" problems. Convert to JPEG before sharing or uploading.

GIFNot supported here

Use it for: Short looping animations where compatibility matters more than quality.

Watch out: Limited to 256 colours, so photographs look banded. Its transparency is on-or-off, with no soft edges. For animation, a video file or animated WEBP is far smaller.

SVG

Use it for: Logos, icons and illustrations that must stay sharp at any size — it stores shapes, not pixels.

Watch out: Not for photographs. Tracing a photo to SVG produces a huge file that looks worse than the original.

What happens to a transparent background

“JPEG does not support transparency” is true but unhelpful — it does not say what you actually get. We converted a logo with a fully transparent background to each format and inspected the result, including the colour a transparent pixel became.

Transparency handling by output format
Converted toTransparency keptColour modeTransparent pixels became
JPGNoRGBblack (0, 0, 0)
WEBPYesRGBAStill transparent
PNGYesRGBAStill transparent

So converting a transparent logo to JPG does not fail — it silently fills the background, here with black. If you need transparency to survive, convert to WEBP or keep it as PNG.

Measured on 3 output formats from one transparent logo using this site's own API on 8 November 2026. The test images are generated rather than photographed, so they are reproducible and free of licensing restrictions — the figures show how each type of content behaves, not how one particular camera's output does. How we measure

Convert between them

Or use the general converter to pick any combination. How these figures were produced is described in how we measure.