Image Formats cho SEO: JPEG so với. PNG so với. WebP so với. AVIF

Đó format-so sánh deep dive cho image SEO — compression, transparency, animation, và 2026 trình duyệt hỗ trợ cho JPEG, PNG, WebP, AVIF, SVG, và GIF, plus đó myth-bust: format là không xếp hạng boost, chỉ một speed một.

Xuất bản lần đầu: 2 thg 7, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ

Image format lựa chọn (JPEG, PNG, WebP, AVIF, SVG, GIF) carries không trực tiếp xếp hạng weight — Google John Mueller có confirmed có không SEO boost cho WebP hoặc AVIF over JPEG/PNG. Đó win là hoàn toàn gián tiếp: đó right format cuts file size, nhỏ hơn files load nhanh hơn, nhanh hơn loads improve Largest Contentful Paint và Core Web Vitals, và những là điều gì xếp hạng các hệ thống thực ra dùng. So format matters hoàn toàn qua đó speed chain, không by itself. Pick by nội dung loại: WebP là đó safe modern default cho photos (~96% hỗ trợ, ~25–35% nhỏ hơn JPEG); AVIF compresses further (~50% nhỏ hơn JPEG, ~94% hỗ trợ trong 2026) nhưng costs hơn để encode và có không progressive kết xuất; PNG cho transparency và sharp-edged graphics; SVG cho logos và icons; GIF chỉ as đó universal animation fallback. Serve modern formats với một <picture> fallback — đó fallback src là đó URL Google indexes. Này là đó format deep dive; đó implementation cách-để lives trong Image Optimization.

TL;DR — Image format không phải một xếp hạng factor. Google John Mueller có confirmed có không SEO boost cho AVIF, và WebP là chỉ “fine for Image Search” (bản dịch) «fine cho Image Tìm kiếm» — có chủ ý neutral language, không “tốt hơn.” Đó real chain là: format → file size → tốc độ trang → Largest Contentful Paint / Core Web Vitals → đó trang-experience các tín hiệu xếp hạng các hệ thống thực ra dùng. Format sits several steps upstream. Pick by nội dung loại, không by “newest wins”: WebP là đó safe default cho photos (~96% hỗ trợ, ~25–35% nhỏ hơn JPEG, và làm alpha transparency ngay cả trong lossy chế độ — JPEG không thể); AVIF compresses furthest (~50% nhỏ hơn JPEG, ~94% hỗ trợ trong 2026) nhưng là CPU-nặng để encode và có không progressive kết xuất; PNG cho transparency và sharp-edged graphics/text; SVG cho logos, icons, và diagrams; GIF chỉ as đó universal animation fallback. Serve modern formats qua <picture> (AVIF → WebP → JPEG/PNG src) — đó src fallback là đó URL Google indexes. Này là đó format deep dive; đó LCP/fetchpriority/lazy-loading implementation lives trong 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

Làm image format thực ra ảnh hưởng SEO?

Lead với myth-bust, vì nó reason phần lớn mọi người land on điều này trang.

Format không phải một xếp hạng factor. John Mueller có đã nói này trong ít nhất three tách biệt, independently-timed ways, và đó qua-line là đó giống nhau mỗi khi — đó format không phải một tín hiệu, đó speed điều này enables là. Sau Google August 2024 announcement đó AVIF đã là hiện tại supported trong Tìm kiếm, Mueller confirmed có không “SEO boost” cho dùng AVIF over other supported formats (Công cụ tìm kiếm Roundtable coverage) — đó benefit là file-size reduction, mà có thể help tốc độ trang, không một xếp hạng preference cho đó container. Năm trước đó, on WebP, he đã là chỉ as careful với his words: “WebP images are fine for Image Search” (bản dịch) «WebP images là fine cho Image Tìm kiếm» (SE Roundtable) — “fine,” không “tốt hơn” hoặc “được ưu tiên.” Và khi WebP images đã bắt đầu cho thấy lên trong Search Console’s “Crawled – currently not indexed” (bản dịch) «Được crawl – hiện tại không được lập chỉ mục» báo cáo, Mueller clarified đó này là một chung image-reporting quirk (images không được lập chỉ mục as HTML các trang), không một WebP-cụ thể disadvantage — he “doesn’t believe the phenomenon is limited to WebP images” (bản dịch) «không believe đó phenomenon là limited để WebP images» (Search Engine Journal’s ghi-lên).

Google own chính image-SEO doc backs điều này lên by omission: nó lists supported formats, points bạn để PageSpeed Insights cho performance, và không bao giờ sau khi ties format selection để xếp hạng factor. đó absence là itself evidence.

Này là đó giống nhau myth-bust I làm tại đó hub cấp độ trong Image SEO và trong đó implementation hướng dẫn, Image Optimization — và đây là worth stating precisely. không chẳng hạn “format doesn’t matter.” (bản dịch) «format không quan trọng.» Chẳng hạn “format doesn’t matter directly — it matters entirely through the speed and Core Web Vitals chain.” (bản dịch) «format không quan trọng trực tiếp — điều này matters hoàn toàn qua đó speed và Core Web Vitals chain.»

thực chain: format → file size → speed → Core Web Vitals

Ở đây causal sequence, spelled out, vì collapsing nó là chính xác Cách myth spreads:

  1. Format lựa chọn thay đổi file size. Đó biggest single lever on image weight.
  2. Nhỏ hơn files load nhanh hơn. Google own image doc notes images là “often the largest contributor to overall page size, which can make pages slow and expensive to load.” (bản dịch) «thường đó largest contributor để overall trang size, mà có thể làm các trang chậm và expensive để load.»
  3. Nhanh hơn loads improve Largest Contentful Paint (LCP). Đó hero image là thường đó LCP element, so của nó weight trực tiếp moves đó chỉ số. (I go deep on này trong my Largest Contentful Paint hướng dẫn — đó vì sao LCP là thường an image half.)
  4. LCP feeds Core Web Vitals, mà part of đó trang-experience các tín hiệu Google xếp hạng các hệ thống dùng.

Format là tại bắt đầu của đó chain — several steps upstream của bất cứ điều gì xếp hạng-liền kề. đó toàn bộ reason nó không phải xếp hạng factor by itself: cũng nhiều có để go right trong giữa, và nếu trang không thực ra nhận nhanh hơn, không có gì downstream thay đổi.

six formats compared

phần lớn competing “2026 các hướng dẫn” cover chỉ JPEG/PNG/WebP/AVIF và âm thầm nhận trình duyệt-hỗ trợ numbers sai (I’ve seen AVIF cited tại “~74%,” mà là năm out của date). Ở đây đầy đủ six-format matrix với hiện tại figures.

FormatCompressionTransparencyAnimationtrình duyệt hỗ trợ (2026)Typical sử dụng case
JPEGLossy chỉKhôngKhôngUniversalPhotographs; universal fallback
PNGLossless chỉCó (đầy đủ alpha)Không (APNG là tách biệt, ít hơn-supported extension)UniversalScreenshots, logos, sharp-edged graphics, text-trong-image, bất cứ điều gì needing transparency không có modern-format risk
WebPCả hai lossy & losslessCó (alpha ngay cả trong lossy chế độ)~96% global; universal since ~2020safe modern default cho photos; ~25–35% nhỏ hơn JPEG; lossless WebP ~26% nhỏ hơn PNG
AVIFCả hai lossy & losslessCó (Chrome/Edge/Safari 16,4+; không Firefox tuy vậy)~94% globalMaximum compression với fallback; ~50% nhỏ hơn JPEG; hỗ trợ HDR / wide color gamut
SVGN/ (vector, không raster)Có (qua CSS/SMIL/JS)UniversalLogos, icons, diagrams, line art — scales không có quality mất mát
GIFLossless (LZW), max 256 colorsCó (binary chỉ, không một phần alpha)UniversalLegacy đơn giản animations; phần lớn universally compatible animation fallback
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
trình duyệt-hỗ trợ figures reflect caniuse.com as của mid-2026 (AVIF ~94% global, WebP ~96%); những điều này percentages tick upward continuously, so re-verify so với caniuse.com/avifcaniuse.com/webp trước khi relying on them.

JPEG — universal photographic fallback

Lossy-chỉ, không transparency, không animation, và supported theo nghĩa đen mọi nơi. JPEG là vẫn đó correct fallback tại đó end of một <picture> element và một perfectly fine lựa chọn cho photographs khi bạn là không converting để một modern format. Của nó yếu spot là baked vào cách lossy compression hoạt động: theo Google 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.” (bản dịch) «lossy compression có thể là ít hơn effective với imagery containing sharp edges such as line art, similarly stark details, hoặc text.» đó là precisely vì sao JPEG là đó sai call cho logos, screenshots, và text-nặng graphics — đó artifacts cho thấy.

PNG — lossless, transparency, graphics và screenshots

Lossless-chỉ với đầy đủ alpha transparency. PNG là right bất cứ khi nào bạn cần crisp edges (logos, UI screenshots, text-trong-image) hoặc transparent background và không muốn để take on modern-format fallback complexity. trade-off: cho photographs, PNG produces needlessly huge files cho không visible quality gain over well-tuned JPEG/WebP — losslessness là cost bạn’re paying cho không có gì on photo. (APNG làm exist cho animated PNG, nhưng nó distinct, ít hơn-supported extension — không điều gì đó để lean on.)

WebP — modern safe default

WebP là đó format I’d reach cho đầu tiên on hầu hết web photos. Google Chrome team là trực tiếp về vì sao: “WebP often has better compression than JPEG, PNG, or GIF, offering both lossy and lossless compression.” (bản dịch) «WebP thường có tốt hơn compression hơn JPEG, PNG, hoặc GIF, offering cả hai lossy và lossless compression.» Và điều này clears JPEG biggest limitation — “WebP also supports alpha channel transparency even when using lossy compression — a feature the JPEG codec doesn’t offer.” (bản dịch) «WebP cũng hỗ trợ alpha channel transparency ngay cả khi dùng lossy compression — một feature đó JPEG codec không offer.» Hỗ trợ là một non-vấn đề: web.dev calls điều này “a widely supported format that works on all modern browsers” (bản dịch) «một widely supported format đó hoạt động on all modern các trình duyệt» (~96% global trong 2026). Khoảng 25–35% nhỏ hơn JPEG tại similar quality, và lossless WebP chạy ~26% nhỏ hơn PNG. Nếu bạn convert một điều, convert của bạn photos để WebP.

AVIF — best compression, thực trade-offs

AVIF wins on thô compression. Theo web.dev, “AVIF supports both lossy and lossless compression, and tests have shown greater than 50% savings when compared to JPEG in some cases,” (bản dịch) «AVIF hỗ trợ cả hai lossy và lossless compression, và các kiểm thử có shown greater hơn 50% savings khi compared để JPEG trong một số trường hợp,» plus “Wide Color Gamut (WCG) and High Dynamic Range (HDR) features.” (bản dịch) «Wide Color Gamut (WCG) và Cao Dynamic Range (HDR) features.» Trong 2026 của nó trình duyệt hỗ trợ sits khoảng ~94% globally — Chrome (since 2020), Firefox (2021), Safari (16,4+, since 2023), và Edge (121+, January 2024) all render điều này. So đây là production-ready — với một fallback.

Nhưng “best compression” (bản dịch) «best compression» không đó chỉ variable, và đang honest về AVIF costs là điều gì separates một hữu ích hướng dẫn từ một listicle:

  • Encoding là CPU-intensive. AVIF là chậm để produce, mà matters cho lớn media libraries và CMS pipelines re-encoding thousands của assets.
  • Không progressive kết xuất. Theo MDN, AVIF phải fully download trước khi nó displays — unlike progressive JPEG đó paints thấp-res version đầu tiên. On chậm connection đó có thể feel tệ hơn despite nhỏ hơn file.
  • Animated-AVIF tooling là immature. format hỗ trợ animation (đôi khi được gọi là AVIS), và Chrome, Edge, và Safari 16,4+ có thể play nó — nhưng Firefox vẫn có thể’t as của 2026, và production tooling lags GIF/WebP animation.

SVG — vector graphics, icons, logos, diagrams

SVG là một khác nhau animal — đây là vector, described với math thay vì một grid of pixels, so điều này scales để bất kỳ size với zero quality mất mát và vẫn giữ tiny cho đơn giản shapes. web.dev cách diễn đạt là đó rule of thumb: SVGs là “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.” (bản dịch) «hầu hết hữu ích trong cases nơi đó image nội dung là line art, diagrams và charts, và other cases nơi ở đó không fine photographic details.» Logos, icons, và diagrams belong trong SVG, đầy đủ dừng. không dùng điều này cho photographs — điều này không được xây dựng cho them.

Một điều đó làm SVG genuinely khác nhau từ đó other five formats ở đây: đây là XML, không pixel dữ liệu, và theo MDN’s own reference an SVG file có thể contain scripts và reference external các tài nguyên — MDN cụ thể notes “there are additional restrictions when SVG is used” (bản dịch) «có additional restrictions khi SVG là dùng» as một đơn giản image (qua <img> hoặc CSS background-image) versus embedded inline hoặc qua an <iframe>/<object>. Đó restriction tồn tại vì an SVG loaded đó ordinary “image” way là sandboxed từ executing scripts hoặc fetching externals, precisely để close off an XSS vector. Nếu bạn bao giờ accept SVG uploads từ người dùng (an icon library, một logo upload form), sanitize them trước serving — strip <script> tags và external references — đó giống nhau way bạn’d treat bất kỳ other người dùng-supplied markup, không đó way bạn’d treat một JPEG.

GIF — legacy animation, Khi nó vẫn right call

GIF là lossless LZW compression capped tại 256-color palette, với chỉ binary (on/off) transparency. nó lịch sử animation format, và cho bất cứ điều gì non-trivial nó là superseded by animated WebP/AVIF (hoặc, tốt hơn vẫn, thực tế video). Của nó một remaining edge là universal compatibility — nếu bạn cần đơn giản animation để play mọi nơi với zero fallback logic, GIF là vẫn lowest-phổ biến-denominator lựa chọn. Nếu không, reach cho animated WebP.

Whichever animation format bạn sử dụng, treat semantics riêng từ format decision: looping GIF/animated image đó conveys information cần alt text describing Điều gì nó hiển thị, giống nhau as static image, và purely decorative loop nên là marked as such thay vì đọc aloud as nội dung by screen reader. Neither của những điều đó là format-compatibility câu hỏi — họ hold regardless của liệu bạn ship GIF, animated WebP, hoặc animated AVIF.

Mà format nên bạn thực ra sử dụng?

Match đó format để đó nội dung, không để “which is newest.” (bản dịch) «mà là newest.» Đó decision-tree tab lays này out as một flow, nhưng phiên bản ngắn gọn:

  • Photographs → WebP (safe default), hoặc AVIF với JPEG fallback Khi bạn muốn maximum compression.
  • Logos, icons, diagrams, line art → SVG.
  • Screenshots, graphics với sharp edges hoặc text, bất cứ điều gì needing transparency không có fallback complexity → PNG (hoặc lossless WebP).
  • đơn giản animation → animated WebP/AVIF nơi supported; GIF chỉ as universal fallback. (cho bất cứ điều gì richer, sử dụng video.)

Một honest caveat on all đó compression percentages trong này bài viết: họ là representative figures từ web.dev và caniuse kiểm thử, không phải là bảo đảm cho của bạn images. Savings phụ thuộc on đó nguồn image nội dung (một busy photo compresses differently hơn một flat-color graphic) và đó encoder settings bạn dùng. Treat “WebP is ~25–35% smaller” (bản dịch) «WebP là ~25–35% nhỏ hơn» và “AVIF is ~50% smaller” (bản dịch) «AVIF là ~50% nhỏ hơn» as một starting expectation, thì so sánh của bạn own encodes tại đó quality settings bạn’ll thực ra ship — đó là đó chỉ way để know điều gì một được cho format chuyển buys bạn on của bạn own các trang.

Implementing modern formats safely — <picture> fallback

không phục vụ modern formats alone — phục vụ them với fallbacks. sạch pattern là <picture> element đó offers AVIF đầu tiên, WebP tiếp theo, và ends trong đơn giản <img src> pointing tại JPEG hoặc 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>

trình duyệt picks đầu tiên format nó understands; older các trình duyệt và some các crawler fall qua để src. Hai điều worth internalizing: đó fallback src là ** URL Google thực ra indexes** cho image tìm kiếm (Google parses <img> ngay cả nested bên trong <picture>, nhưng làm không chỉ mục CSS background-image), và Đây là nơi format selection hands off để rộng hơn implementation hoạt động — sizing, compression settings, srcset/sizes, lazy loading, và fetchpriority on LCP image. đó đầy đủ Cách-để là có chủ ý không duplicated ở đây; nó lives trong Image Optimization, và responsive-serving mechanics (srcset, sizes, art direction) trực tiếp trong Responsive Images.

Điều gì Google và Bing officially hỗ trợ

Google supported-formats list và August 2024 AVIF milestone

Google Search’s supported list là rõ ràng: “Google Search supports images referenced in the src attribute of img in the following file formats: BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF” (bản dịch) «Google Search hỗ trợ images referenced trong đó src thuộc tính of img trong đó sau file formats: BMP, GIF, JPEG, PNG, WebP, SVG, và AVIF» (plus Base64 Dữ liệu URIs). AVIF là đó newest addition, và đó date matters: Google đã không hỗ trợ AVIF cho Tìm kiếm tại all until August 30, 2024, khi điều này announced “AVIF is now a supported file type in Google Search” (bản dịch) «AVIF là hiện tại một supported file loại trong Google Search» và đó “you don’t need to do anything special to have your AVIF files indexed.” (bản dịch) «bạn không cần để làm bất cứ điều gì special để có của bạn AVIF files được lập chỉ mục.» Trước đó date, AVIF đã không on đó list — và theo bên thứ ba coverage, dùng AVIF thumbnails có thể ngay cả nguyên nhân Google để abort video lập chỉ mục hoàn toàn. đó là một genuinely gần đây, dateable line: bất kỳ competing hướng dẫn được viết trước mid-2024 và không bao giờ đã cập nhật là giving stale advice về AVIF safety.

Note cách Google được diễn đạt đó announcement — purely as “we can now process this file type,” (bản dịch) «we có thể hiện tại xử lý này file loại,» không bao giờ as một xếp hạng-tín hiệu launch. đó là đó giống nhau non-xếp hạng cách diễn đạt as đó rest of đó format list, và đây là vì sao đó Search Engine Journal headline “Google’s New Support For AVIF Images May Boost SEO” (bản dịch) «Google New Hỗ trợ Cho AVIF Images Có thể Boost SEO» là một good cautionary ví dụ: đó thân phản hồi correctly routes đó “boost” hoàn toàn qua file-size → Core Web Vitals, nhưng đó headline là chính xác cách đó format-equals-xếp hạng myth nhận amplified by well-meaning ngành press.

Bing (limited) công khai hướng dẫn

Bing không publish một format-by-format so sánh doc đó way Google làm. Của nó chung Quản trị viên web Guidelines treat tốc độ trang — including image weight — as một consideration, nhưng có không Bing-cụ thể “use WebP/AVIF” (bản dịch) «dùng WebP/AVIF» kỹ thuật trang, và I’m không going để invent một. Bing indexes và displays JPEG/PNG/WebP/GIF images trong Bing Images không có vấn đề; của nó crawler hỗ trợ cho modern formats là generally assumed để track Chromium-liền kề trình duyệt hỗ trợ, nhưng unlike Google, điều này không riêng được ghi lại. Này là đó giống nhau honest khoảng trống I flag trong Image Optimization — stated plainly thay vì papered over.

phổ biến myths về image formats và SEO

  • “Switching to WebP/AVIF boosts rankings.” (bản dịch) «Switching để WebP/AVIF boosts thứ hạng.» Không — Mueller trực tiếp: không SEO boost cho AVIF; WebP là “fine,” không “tốt hơn.” Đó benefit là gián tiếp, qua file size → speed → Core Web Vitals.
  • “AVIF is always best because it compresses best.” (bản dịch) «AVIF là luôn best vì điều này compresses best.» Overstated. AVIF là CPU-nặng để encode, có không progressive kết xuất, và đã là unsupported by Google Tìm kiếm until August 2024. Best compression không đó chỉ variable.
  • “PNG is always the safe, high-quality choice.” (bản dịch) «PNG là luôn đó safe, cao-quality lựa chọn.» Sai as một blanket rule. PNG là right cho graphics/transparency/text nhưng produces bloated files cho photographs, hurting load speed cho zero visible gain.
  • “You don’t need a fallback anymore — support is basically universal.” (bản dịch) «Bạn không cần một fallback anymore — hỗ trợ là basically universal.» Mostly đúng cho WebP; vẫn worth một <picture> fallback cho AVIF được cho đó real (nếu nhỏ) ~6% khoảng trống plus crawler và older-device các trường hợp biên. Google explicitly khuyến nghị đó fallback pattern.
  • “Google penalizes older formats like JPEG/PNG.” (bản dịch) «Google penalizes older formats như JPEG/PNG.» Sai — JPEG, PNG, GIF, và BMP vẫn fully supported. có không hình phạt, chỉ một missed speed opportunity versus modern formats.
  • “AVIF can’t animate / WebP can’t do transparency.” (bản dịch) «AVIF không thể animate / WebP không thể làm transparency.» Cả hai sai. WebP làm alpha transparency ngay cả trong lossy chế độ; AVIF hỗ trợ animation (Safari 16.4+, Chrome, Edge — though không Firefox tuy vậy trong 2026).
  • “AVIF isn’t ready — it’s still a WebP-only world.” (bản dịch) «AVIF không ready — đây là vẫn một WebP-chỉ world.» Outdated. AVIF sits khoảng ~94% global hỗ trợ và đã được indexable by Google Search since August 2024. Treat điều này as production-ready-với-fallback, không experimental.
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

nơi điều này fits

điều này bài viết là format-so sánh deep dive bên trong Image SEO cluster — nó canonical home cho six-format matrix và xếp hạng myth-bust. Của nó hai siblings xử lý liền kề jobs: Image Optimization là implementation Cách-để (LCP, fetchpriority, lazy loading, compression, sizing), và Responsive Images covers srcset/sizes/<picture> mechanics cho serving right-sized image theo device. performance payoff của getting format right là thực sự Core Web Vitals story wearing image hat.

Add an expert note

Pin an expert quote

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