JPG, PNG or WebP: Which Format to Choose for Photos and the Web
You've got a great shot — and now the question: how do you save it and put it online so it looks superb and doesn't weigh megabytes? Let's settle it without fluff: JPG, PNG, WebP and AVIF on the same photo, with real numbers and a clear rule for every situation.
The 30-second answer
No time to read? Here is the ready-made rule that covers 95% of cases:
- Storing and sharing photos — JPG. Everything opens it, and at quality 80–90% the file is small with no visible loss.
- Publishing on a website — WebP (or AVIF for large shots). The same photos weigh a quarter to half less, so the page loads faster.
- Photos in PNG — almost never. PNG bloats a photo several times over with no gain in quality; it was built for graphics, not photographs.
The rule in one line
Shooting and storing — JPG. Publishing on the web — WebP/AVIF with JPG as backup. Leave PNG to logos and screenshots.
Below is why, with numbers and nuance. If you're after the pure face-off between the two older formats without the web angle, we have a separate breakdown — PNG or JPG: what's the difference and which to choose. We deliberately don't repeat it here; instead we focus on photographs and the modern formats.
JPG — why it's the default for photos
JPG (a.k.a. JPEG) appeared in 1992 and has since become the most widespread image format on the planet. The reason is simple: it was designed specifically for photographs. Its lossy compression works beautifully with exactly what a photo is made of — smooth color transitions, soft shadows, gradients of sky and skin.
The JPG algorithm throws away the details the human eye barely notices, and in doing so shrinks a photo by tens of times. A 25 MB RAW frame from a camera turns into a tidy 3–5 MB JPG — and the difference is almost invisible. A web-sized version of the same shot needs only 200–400 KB.
What "quality 85%" means
When you save a JPG you set a compression level from 1 to 100. 80–90% is the sweet spot: artifacts are invisible and the file stays compact. Below 70%, "mush" starts creeping into gradients and edges. The golden rule: don't re-save a JPG over and over — each save piles new losses on top of the old ones.
The strengths that keep JPG the default for photographs:
- Universal compatibility. Phones, cameras, browsers, messengers, printers, photo frames, old laptops — JPG opens everywhere, no exceptions.
- Small size. For photographic content, JPG is almost always lighter than any lossless format.
- Predictability. You know exactly what you'll get and can fine-tune the balance of "quality vs. weight."
Its weak spots are well known too: no transparency, losses on every re-save, and artifacts around sharp edges (text, screenshots). For an ordinary photo that hardly matters — but for graphics it does, and that's coming up.
WebP — a quarter lighter, and then some
WebP is a format from Google, released in 2010 specifically for the web. Its job is to deliver the same picture as JPG in a lighter file — and it succeeds: at equal visual quality, WebP is 25–35% smaller than JPG.
In practice that means a photo that's 300 KB as JPG becomes roughly 200 KB as WebP, with no noticeable loss of quality. For a single image the difference looks trivial, but on a page with a dozen photos it's seconds of load time and noticeably less data — especially on mobile.
Size savings aren't the only advantage. WebP can do things JPG fundamentally can't:
- Transparency (alpha channel) — like PNG, but in a far lighter file.
- Animation — meaning it can replace heavy GIFs.
- Both lossy and lossless compression — one format for two scenarios.
The one question about WebP is always the same: "but will everyone be able to open it?" In 2026 the answer is yes, nearly everyone. WebP is supported by about 95% of browsers: Chrome, Firefox, Edge, Safari, Opera and the mobile versions. So for a website you can ship it with hardly a second thought. To convert an existing photo library, use the JPG → WebP converter; and if a WebP needs to open in older software, WebP → JPG brings it back to the familiar format.
AVIF — half the weight of JPG
If WebP is "JPG but lighter," then AVIF is "WebP but lighter still." The format is built on the AV1 video codec and compresses more aggressively than anything else in this comparison.
The numbers speak for themselves: at comparable quality AVIF is about 20–30% smaller than WebP and almost half the size of JPG. That hero image at the top of a page that weighs 320 KB as JPG fits into roughly 110–160 KB as AVIF. On a real mobile connection that's the difference between a page that feels fast and one that drags.
Beyond size, AVIF brings modern capabilities: HDR and wide color (10–12 bit), transparency and animation. For high-quality photographic content it's today's best format on the "weight vs. quality" scale.
AVIF charges two prices for being compact
First, encoding is slower: compressing a photo to AVIF takes longer than JPG or WebP (unnoticeable for a one-off, but a real factor for batch-processing thousands of images). Second, support is slightly lower — around 93–94% of browsers versus ~95% for WebP. The gap is small, but it's exactly why AVIF especially wants a fallback.
PNG — why it's almost never for photos
Here's the myth worth busting. People often treat PNG as "the quality format" and so drag photographs into it — it's lossless, the logic goes, so it must be better. For photos that's almost always a mistake.
PNG compresses losslessly: it keeps every pixel exactly. For a photograph, with its millions of smooth color transitions, that means a huge file. The same frame that's 400 KB as JPG easily balloons to 3–5 MB as PNG — 5–10 times heavier — while you won't see any difference in quality with the naked eye. You're paying in megabytes for detail you can't even tell apart.
PNG shines where JPG is weak — on graphics with sharp edges:
- Logos and icons — crisp lines, flat colors, often a transparent background.
- Screenshots — text and UI stay sharp, no "mush" around the letters.
- Illustrations and charts — where pixel-perfect accuracy matters.
- Images with transparency — when you need an alpha channel and WebP/AVIF aren't an option.
A simple test
If the image has sharp edges and text (a logo, screenshot, diagram), it's a PNG. If it's a photograph with smooth transitions, it's JPG, WebP or AVIF. Need transparency for a photo? Then WebP or AVIF, with PNG only as the last resort.
If a PNG has landed in your lap and it's actually a photograph, convert it to something lighter. PNG → JPG handles universality, or convert to WebP via the all formats page.
Compatibility: where each format opens
File size is only half the story. The other half is whether the picture will open wherever you send it. And here JPG is still in a league of its own.
JPG is understood by literally everything: any browser, any operating system, any messenger, photo frame, TV, printer and photo lab. If you're sending a shot to your grandmother, printing it at a kiosk, or uploading it into an ancient CRM at work — pick JPG and don't think twice.
WebP and AVIF are web formats. In the browser they work great, but beyond it support is uneven: some old image editor, corporate tool or printer may not understand them. So for sending to people and for offline scenarios, WebP/AVIF are a risky choice.
The web strategy: modern format + JPG as backup
On a site you use the <picture> tag: the browser itself picks the first format it can open. You offer AVIF first, then WebP, and finally JPG as the universal fallback. Fast browsers get the lightweight AVIF; the rare ones that can't handle it get a plain JPG. Nobody is left without an image.
<picture>
<source srcset="photo.avif" type="image/avif">
<source srcset="photo.webp" type="image/webp">
<img src="photo.jpg" alt="Photo description">
</picture>
Table: JPG, PNG, WebP and AVIF
The whole comparison on one screen. Green marks a format's strength, gray its weakness.
| Criterion | JPG | PNG | WebP | AVIF |
|---|---|---|---|---|
| Good for photos | Excellent | Poor (heavy) | Excellent | Excellent |
| Photo size (same frame) | Baseline | ×5–10 | −25–35% | −50% |
| Compression type | Lossy | Lossless | Both | Both |
| Transparency | No | Yes | Yes | Yes |
| Animation | No | No* | Yes | Yes |
| Browser support | 100% | 100% | ~95% | ~93–94% |
| Opens outside the browser | Everywhere | Everywhere | Not always | Rarely |
| Best use | Storage, sharing, print | Logos, screenshots, graphics | Photos on a website | Large photos on a website |
* PNG's relative, the APNG format, does support animation — but that's a separate story.
How to store, publish and convert
Let's pull it all into practical scenarios — so you know exactly what to do with a specific photo.
Storing and sharing photos
Save as JPG at quality 85–90%. For a precious shot you'll keep editing, also keep the original (RAW/TIFF) and hand out the JPG as the finished copy.
Publishing photos on a site
Convert to WebP (or AVIF for large heroes). Add JPG as a fallback via <picture> and the page will load faster for everyone.
You received a photo as PNG
If it's a photograph rather than graphics, convert it to JPG or WebP to drop the dead weight. Quality won't suffer, and the file shrinks several times over.
Make your photos lighter right now
The free FormatZ converter turns your shots into WebP in a couple of seconds — right in your browser, with no install and no sign-up. The same photos, 25–35% lighter.
Convert JPG to WebPNeed a different pair? Every direction is on the all formats page: WebP → JPG, JPG → PNG, PNG → JPG and dozens more. Conversion runs in the browser, and files are deleted automatically.
Frequently asked questions
<picture> element to add JPG as a fallback for the rare old browser. If you have no time for picture, WebP is already understood by about 95% of browsers and is safe to ship on its own.Read next
BasicsWhat Is JPG: The Format That Shot the World
How the most popular photo format's compression works.
How-toHow to Compress JPG Without Losing Quality
Shrink a photo's weight while keeping the image clean.
ComparisonPNG or JPG: What's the Difference and Which to Choose
The two classic formats head to head — without the web.