Image Formats for SEO: JPEG vs. PNG vs. WebP vs. AVIF

The format-comparison deep dive for image SEO — compression, transparency, animation, and 2026 browser support for JPEG, PNG, WebP, AVIF, SVG, and GIF, plus the myth-bust: format is no ranking boost, only a speed one.

First published: Jul 2, 2026 · Last updated: Jul 18, 2026 · Advanced
demand #3 in Image SEO#22 in On-Page#103 in Technical SEO#136 on the site

Image format choice (JPEG, PNG, WebP, AVIF, SVG, GIF) carries no direct ranking weight — Google's John Mueller has confirmed there's no SEO boost for WebP or AVIF over JPEG/PNG. The win is entirely indirect: the right format cuts file size, smaller files load faster, faster loads improve Largest Contentful Paint and Core Web Vitals, and those are what ranking systems actually use. So format matters entirely through the speed chain, not by itself. Pick by content type: WebP is the safe modern default for photos (~96% support, ~25–35% smaller than JPEG); AVIF compresses further (~50% smaller than JPEG, ~94% support in 2026) but costs more to encode and has no progressive rendering; PNG for transparency and sharp-edged graphics; SVG for logos and icons; GIF only as the universal animation fallback. Serve modern formats with a <picture> fallback — that fallback src is the URL Google indexes. This is the format deep dive; the implementation how-to lives in Image Optimization.

TL;DR — Image formatThe file encoding used to store an image (JPEG, PNG, WebP, AVIF, SVG, GIF) — it drives file size and Core Web Vitals, but carries no direct ranking weight. is not a ranking factor. Google’s John Mueller has confirmed there’s no SEO boost for AVIF, and WebP is only “fine for Image Search” — deliberately neutral language, not “better.” The real chain is: format → file size → page speed → Largest Contentful PaintLargest Contentful Paint — render time of the largest visible image or text block, relative to when the page started loading. ≤2.5 s (at the 75th percentile) is good. / Core Web VitalsGoogle's three real-user UX metrics — LCP (loading), INP (responsiveness), and CLS (visual stability) — used by Google's ranking systems, with no official weight attached, measured on field data. → the page-experience signals ranking systems actually use. Format sits several steps upstream. Pick by content type, not by “newest wins”: WebP is the safe default for photos (~96% support, ~25–35% smaller than JPEG, and does alpha transparency even in lossy mode — JPEG can’t); AVIF compresses furthest (~50% smaller than JPEG, ~94% support in 2026) but is CPU-heavy to encode and has no progressive renderingTurning HTML, CSS, and JavaScript into the final visual page and DOM.; PNG for transparency and sharp-edged graphics/text; SVG for logos, icons, and diagrams; GIF only as the universal animation fallback. Serve modern formats via <picture> (AVIF → WebP → JPEG/PNG src) — the src fallback is the URL Google indexes. This is the format deep dive; the LCPLargest Contentful Paint — render time of the largest visible image or text block, relative to when the page started loading. ≤2.5 s (at the 75th percentile) is good./fetchpriority/lazy-loading implementation lives in Image Optimization.

Evidence for this claim Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF image formats when the extension matches the format. Scope: Current Google Images supported-format list. Confidence: high · Verified: Google Search Central: Supported image formats Evidence for this claim Format choice should reflect image characteristics and browser support; modern formats can improve compression but require deliberate encoding and fallbacks where needed. Scope: Current Chrome/web.dev image format guidance. Confidence: high · Verified: web.dev: Choose the right image format

Does image format actually affect SEO?

Lead with the myth-bust, because it’s the reason most people land on this page.

Format is not a ranking factor. John Mueller has said this in at least three separate, independently-timed ways, and the through-line is the same every time — the format is not a signal, the speed it enables is. Following Google’s August 2024 announcement that AVIF was now supported in Search, Mueller confirmed there is no “SEO boost” for using AVIF over other supported formats (Search Engine Roundtable’s coverage) — the benefit is file-size reduction, which can help page speed, not a ranking preference for the container. Years earlier, on WebP, he was just as careful with his words: “WebP images are fine for Image Search” (SE Roundtable) — “fine,” not “better” or “preferred.” And when WebP images started showing up in Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results.’s “Crawled – currently not indexedStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed.” report, Mueller clarified that this is a general image-reporting quirk (images aren’t indexed as HTML pages), not a WebP-specific disadvantage — he “doesn’t believe the phenomenon is limited to WebP images” (Search Engine Journal’s write-up).

Google’s own primary image-SEO doc backs this up by omission: it lists the supported formats, points you to PageSpeed InsightsPageSpeed Insights (PSI) is a free Google tool at pagespeed.web.dev that reports two kinds of data for a URL: real-user field data from the Chrome UX Report and a single Lighthouse lab run with the 0–100 Performance score. Only the field Core Web Vitals are what Google uses for ranking. for performance, and never once ties format selection to a ranking factor. That absence is itself the evidence.

This is the same myth-bust I make at the hub level in Image SEOImage SEO is optimizing the images on your pages so search engines can discover, crawl, index, and rank them — in Google Images and visual search, and as part of standard web results. It spans file format, filenames, alt text, compression, responsive markup, structured data, and image sitemaps. and in the implementation guide, Image Optimization — and it’s worth stating precisely. Don’t say “format doesn’t matter.” Say “format doesn’t matter directly — it matters entirely through the speed and Core Web Vitals chain.”

The real chain: format → file size → speed → Core Web Vitals

Here’s the causal sequence, spelled out, because collapsing it is exactly how the myth spreads:

  1. Format choice changes file size. The biggest single lever on image weight.
  2. Smaller files load faster. Google’s own image doc notes images are “often the largest contributor to overall page size, which can make pages slow and expensive to load.”
  3. Faster loads improve Largest Contentful Paint (LCP). The hero image is usually the LCP element, so its weight directly moves the metric. (I go deep on this in my Largest Contentful Paint guide — the why LCP is usually an image half.)
  4. LCP feeds Core Web VitalsGoogle's three real-user UX metrics — LCP (loading), INP (responsiveness), and CLS (visual stability) — used by Google's ranking systems, with no official weight attached, measured on field data., which is part of the page-experience signals Google’s ranking systems use.

Format is at the start of that chain — several steps upstream of anything ranking-adjacent. That’s the whole reason it isn’t a ranking factor by itself: too much has to go right in between, and if the page doesn’t actually get faster, nothing downstream changes.

The six formats compared

Most competing “2026 guides” cover only JPEG/PNG/WebP/AVIF and quietly get the browser-support numbers wrong (I’ve seen AVIF cited at “~74%,” which is years out of date). Here’s the full six-format matrix with current figures.

FormatCompressionCompression (HTTP content encoding) shrinks text-based responses — HTML, CSS, JS, JSON, SVG, XML sitemaps — before they're sent over the network, using an algorithm like Gzip, Brotli, or Zstd, so the browser or crawler downloads fewer bytes. It's not a ranking factor, but it speeds up page loads and helps pages stay under crawler fetch limits.TransparencyAnimationBrowser support (2026)Typical use case
JPEGLossy onlyNoNoUniversalPhotographs; the universal fallback
PNGLossless onlyYes (full alpha)No (APNG is a separate, less-supported extension)UniversalScreenshots, logos, sharp-edged graphics, text-in-image, anything needing transparency without modern-format risk
WebPBoth lossy & losslessYes (alpha even in lossy mode)Yes~96% global; universal since ~2020The safe modern default for photos; ~25–35% smaller than JPEG; lossless WebP ~26% smaller than PNG
AVIFBoth lossy & losslessYesYes (Chrome/Edge/Safari 16.4+; not Firefox yet)~94% globalMaximum compressionCompression (HTTP content encoding) shrinks text-based responses — HTML, CSS, JS, JSON, SVG, XML sitemaps — before they're sent over the network, using an algorithm like Gzip, Brotli, or Zstd, so the browser or crawler downloads fewer bytes. It's not a ranking factor, but it speeds up page loads and helps pages stay under crawler fetch limits. with a fallback; ~50% smaller than JPEG; supports HDR / wide color gamut
SVGN/A (vector, not raster)YesYes (via CSS/SMIL/JS)UniversalLogos, icons, diagrams, line art — scales without quality loss
GIFLossless (LZW), max 256 colorsYes (binary only, no partial alpha)YesUniversalLegacy simple animations; the most universally compatible animation fallback
Browser-support figures reflect caniuse.com as of mid-2026 (AVIF ~94% global, WebP ~96%); these percentages tick upward continuously, so re-verify against caniuse.com/avif and caniuse.com/webp before relying on them.

JPEG — the universal photographic fallback

Lossy-only, no transparency, no animation, and supported literally everywhere. JPEG is still the correct fallback at the end of a <picture> element and a perfectly fine choice for photographs when you’re not converting to a modern format. Its weak spot is baked into how lossy compression works: per Google’s Chrome team on web.dev, “lossy compression may be less effective with imagery containing sharp edges such as line art, similarly stark details, or text.” That’s precisely why JPEG is the wrong call for logos, screenshots, and text-heavy graphics — the artifactsClaude's feature for generating and publishing interactive mini-apps from chat. show.

PNG — lossless, transparency, graphics and screenshots

Lossless-only with full alpha transparency. PNG is right whenever you need crisp edges (logos, UI screenshots, text-in-image) or a transparent background and don’t want to take on modern-format fallback complexity. The trade-off: for photographs, PNG produces needlessly huge files for no visible quality gain over a well-tuned JPEG/WebP — losslessness is a cost you’re paying for nothing on a photo. (APNG does exist for animated PNG, but it’s a distinct, less-supported extension — not something to lean on.)

WebP — the modern safe default

WebP is the format I’d reach for first on most web photos. Google’s Chrome team is direct about why: “WebP often has better compression than JPEG, PNG, or GIF, offering both lossy and lossless compression.” And it clears JPEG’s biggest limitation — “WebP also supports alpha channel transparency even when using lossy compression — a feature the JPEG codec doesn’t offer.” Support is a non-issue: web.dev calls it “a widely supported format that works on all modern browsers” (~96% global in 2026). Roughly 25–35% smaller than JPEG at similar quality, and lossless WebP runs ~26% smaller than PNG. If you convert one thing, convert your photos to WebP.

AVIF — best compression, real trade-offs

AVIF wins on raw compression. Per web.dev, “AVIF supports both lossy and lossless compression, and tests have shown greater than 50% savings when compared to JPEG in some cases,” plus “Wide Color Gamut (WCG) and High Dynamic Range (HDR) features.” In 2026 its browser support sits around ~94% globally — Chrome (since 2020), Firefox (2021), Safari (16.4+, since 2023), and Edge (121+, January 2024) all render it. So it’s production-ready — with a fallback.

But “best compression” isn’t the only variable, and being honest about AVIF’s costs is what separates a useful guide from a listicle:

  • Encoding is CPU-intensive. AVIF is slow to produce, which matters for large media libraries and CMSA content management system (CMS) is software that lets users create, manage, and publish digital content — like blog posts and pages — without writing raw code. WordPress, Drupal, and Joomla are the most common open-source CMS platforms. pipelines re-encoding thousands of assets.
  • No progressive renderingTurning HTML, CSS, and JavaScript into the final visual page and DOM.. Per MDN, an AVIF must fully download before it displays — unlike a progressive JPEG that paints a low-res version first. On a slow connection that can feel worse despite the smaller file.
  • Animated-AVIF tooling is immature. The format supports animation (sometimes called AVIS), and Chrome, Edge, and Safari 16.4+ can play it — but Firefox still can’t as of 2026, and production tooling lags GIF/WebP animation.

SVG — vector graphics, icons, logos, diagrams

SVG is a different animal — it’s vector, described with math instead of a grid of pixels, so it scales to any size with zero quality loss and stays tiny for simple shapes. web.dev’s framing is the rule of thumb: SVGs are “most useful in cases where the image’s contents are line art, diagrams and charts, and other cases where there aren’t fine photographic details.” Logos, icons, and diagrams belong in SVG, full stop. Don’t use it for photographs — it isn’t built for them.

One thing that makes SVG genuinely different from the other five formats here: it’s XML, not pixel data, and per MDN’s own reference an SVG file can contain scripts and reference external resources — MDN specifically notes “there are additional restrictions when SVG is used” as a plain image (via <img> or CSS background-image) versus embedded inline or through an <iframe>/<object>. That restriction exists because an SVG loaded the ordinary “image” way is sandboxed from executing scripts or fetching externals, precisely to close off an XSS vector. If you ever accept SVG uploads from users (an icon library, a logo upload form), sanitize them before serving — strip <script> tags and external references — the same way you’d treat any other user-supplied markup, not the way you’d treat a JPEG.

GIF — legacy animation, when it’s still the right call

GIF is lossless LZW compression capped at a 256-color palette, with only binary (on/off) transparency. It’s the historical animation format, and for anything non-trivial it’s been superseded by animated WebP/AVIF (or, better still, actual video). Its one remaining edge is universal compatibility — if you need a simple animation to play everywhere with zero fallback logic, GIF is still the lowest-common-denominator choice. Otherwise, reach for animated WebP.

Whichever animation format you use, treat the semantics separately from the format decision: a looping GIF/animated image that conveys information needs alt textAlt text is the value of the `alt` attribute on an HTML `<img>` element — a short text substitute chosen for the image's purpose and context, not a literal description of what it shows. It makes images accessible to screen-reader users and helps search engines understand images, mainly for image search. describing what it shows, the same as a static image, and a purely decorative loop should be marked as such rather than read aloud as content by a screen reader. Neither of those is a format-compatibility question — they hold regardless of whether you ship GIF, animated WebP, or animated AVIF.

Which format should you actually use?

Match the format to the content, not to “which is newest.” The decision-tree tab lays this out as a flow, but the short version:

  • Photographs → WebP (safe default), or AVIF with a JPEG fallback when you want maximum compression.
  • Logos, icons, diagrams, line art → SVG.
  • Screenshots, graphics with sharp edges or text, anything needing transparency without fallback complexity → PNG (or lossless WebP).
  • Simple animation → animated WebP/AVIF where supported; GIF only as the universal fallback. (For anything richer, use video.)

One honest caveat on all the compression percentages in this article: they’re representative figures from web.dev’s and caniuse’s testing, not a guarantee for your images. Savings depend on the source image’s content (a busy photo compresses differently than a flat-color graphic) and the encoder settings you use. Treat “WebP is ~25–35% smaller” and “AVIF is ~50% smaller” as a starting expectation, then compare your own encodes at the quality settings you’ll actually ship — that’s the only way to know what a given format switch buys you on your own pages.

Implementing modern formats safely — the <picture> fallback

Don’t serve modern formats alone — serve them with fallbacks. The clean pattern is a <picture> element that offers AVIF first, WebP next, and ends in a plain <img src> pointing at a JPEG or PNG:

<picture>
  <source srcset="hero.avif" type="image/avif" />
  <source srcset="hero.webp" type="image/webp" />
  <img src="hero.jpg" alt="Descriptive alt text" width="1200" height="800" />
</picture>

The browser picks the first format it understands; older browsers and some crawlersA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index. fall through to the src. Two things worth internalizing: that fallback src is the URL Google actually indexes for image search (Google parses the <img> even nested inside <picture>, but does not index CSS background-image), and this is where format selection hands off to the broader implementation work — sizing, compression settings, srcset/sizes, lazy loadingLazy loading defers loading of off-screen or non-critical resources — usually images and iframes — until they're about to enter the viewport. The native way to do it is the loading=\"lazy\" HTML attribute, which needs no JavaScript., and fetchpriority on the LCP image. That full how-to is deliberately not duplicated here; it lives in Image Optimization, and the responsive-serving mechanics (srcset, sizes, art direction) live in Responsive Images.

What Google and Bing officially support

Google’s supported-formats list and the August 2024 AVIF milestone

Google Search’s supported list is explicit: “Google Search supports images referenced in the src attribute of img in the following file formats: BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF” (plus Base64 Data URIs). AVIF is the newest addition, and the date matters: Google didn’t support AVIF for Search at all until August 30, 2024, when it announced “AVIF is now a supported file type in Google Search” and that “you don’t need to do anything special to have your AVIF files indexed.” Before that date, AVIF wasn’t on the list — and per third-party coverage, using AVIF thumbnails could even cause Google to abort video indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. entirely. That’s a genuinely recent, dateable line: any competing guide written before mid-2024 and never updated is giving stale advice about AVIF’s safety.

Note how Google framed the announcement — purely as “we can now process this file type,” never as a ranking-signal launch. That’s the same non-ranking framing as the rest of the format list, and it’s why the Search Engine Journal headline “Google’s New Support For AVIF Images May Boost SEO” is a good cautionary example: the body correctly routes the “boost” entirely through file-size → Core Web VitalsWeb Vitals is Google's initiative (launched May 2020) for unified page-experience quality signals. Core Web Vitals — LCP, INP, and CLS — are the subset used in ranking; the rest (TTFB, FCP, TBT, Speed Index) are diagnostic, not ranking factors., but the headline is exactly how the format-equals-ranking myth gets amplified by well-meaning industry press.

Bing’s (limited) public guidance

Bing doesn’t publish a format-by-format comparison doc the way Google does. Its general Webmaster Guidelines treat page speed — including image weight — as a consideration, but there’s no Bing-specific “use WebP/AVIF” technical page, and I’m not going to invent one. Bing indexes and displays JPEG/PNG/WebP/GIF images in Bing Images without issue; its crawler support for modern formats is generally assumed to track Chromium-adjacent browser support, but unlike Google’s, it isn’t separately documented. This is the same honest gap I flag in Image Optimization — stated plainly rather than papered over.

Common myths about image formats and SEO

  • “Switching to WebP/AVIF boosts rankings.” No — Mueller directly: no SEO boost for AVIF; WebP is “fine,” not “better.” The benefit is indirect, via file size → speed → Core Web Vitals.
  • “AVIF is always best because it compresses best.” Overstated. AVIF is CPU-heavy to encode, has no progressive rendering, and was unsupported by Google Search until August 2024. Best compression isn’t the only variable.
  • “PNG is always the safe, high-quality choice.” False as a blanket rule. PNG is right for graphics/transparency/text but produces bloated files for photographs, hurting load speed for zero visible gain.
  • “You don’t need a fallback anymore — support is basically universal.” Mostly true for WebP; still worth a <picture> fallback for AVIF given the real (if small) ~6% gap plus crawler and older-device edge cases. Google explicitly recommends the fallback pattern.
  • “Google penalizes older formats like JPEG/PNG.” False — JPEG, PNG, GIF, and BMP remain fully supported. There’s no penalty, only a missed speed opportunity versus modern formats.
  • “AVIF can’t animate / WebP can’t do transparency.” Both false. WebP does alpha transparency even in lossy mode; AVIF supports animation (Safari 16.4+, Chrome, Edge — though not Firefox yet in 2026).
  • “AVIF isn’t ready — it’s still a WebP-only world.” Outdated. AVIF sits around ~94% global support and has been indexable by Google Search since August 2024. Treat it as production-ready-with-fallback, not experimental.

Where this fits

This article is the format-comparison deep dive inside the Image SEOImage SEO is optimizing the images on your pages so search engines can discover, crawl, index, and rank them — in Google Images and visual search, and as part of standard web results. It spans file format, filenames, alt text, compression, responsive markup, structured data, and image sitemaps. cluster — it’s the canonical home for the six-format matrix and the ranking myth-bust. Its two siblings handle the adjacent jobs: Image Optimization is the implementation how-to (LCP, fetchpriority, lazy loading, compression, sizing), and Responsive Images covers srcset/sizes/<picture> mechanics for serving the right-sized image per device. The performance payoff of getting format right is really a Core Web VitalsGoogle's three real-user UX metrics — LCP (loading), INP (responsiveness), and CLS (visual stability) — used by Google's ranking systems, with no official weight attached, measured on field data. story wearing an image hat.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.