圖片占大多數網站的最大比重。將它們壓縮為 WebP 可讓總頁面負擔減半或更多,進而改善載入速度和你搜尋排名。
一切都在你的瀏覽器中本地處理。
如何使用此工具
新增你的圖片
將你的圖片拖曳到工具上,或選擇一個檔案。
已預先選取 WebP
WebP 是目前網頁傳輸的最佳格式。從品質 75 開始。
查看節省的空間
在比較檢視中觀察檔案大小的下降 — 通常小 50–70%。
下載並使用
下載你的 WebP,並在網站、WordPress 或 CMS 中使用它。
本節目前僅提供英文版本。
What a web page actually needs
A photograph displayed at 800 pixels wide does not need to be 4000 pixels wide. Serving the larger file costs your visitor bandwidth, slows the page, and gives them nothing — the browser throws the extra pixels away.
The single most effective thing you can do for page weight is serve images at the dimensions they are displayed at, then compress. Everything else is a smaller win on top.
Targets worth aiming for
| Role on the page | Typical target | Format |
|---|---|---|
| Hero or full-width image | 150–300 KB | WebP or AVIF |
| In-content photograph | 50–150 KB | WebP or AVIF |
| Thumbnail or card image | 10–40 KB | WebP |
| Logo or icon | Under 10 KB | SVG where possible, else WebP |
High-DPI displays, and how to handle them
A Retina-class screen packs two or more device pixels into each CSS pixel, so an image served at exactly the display size looks slightly soft. The usual answer is to serve roughly twice the CSS dimensions and let the browser downscale — an 800-pixel image in a 400-pixel slot. The wider the availability of high-DPI screens, the more this is the default rather than the exception.
A short checklist
- Resize to the displayed dimensions — twice them if you want crispness on high-DPI screens.
- Choose the format for the content: WebP or AVIF for photographs, lossless WebP for screenshots and graphics.
- Compress at a quality setting you have actually looked at, not one you assumed was safe.
- Use <picture> with an AVIF source, a WebP source and a fallback rather than betting on one format.
- Lazy-load anything below the fold so it is not downloaded before it is needed.
常見問題
網頁圖片的最佳格式是什麼?
WebP 是目前最全面的選擇:檔案小、品質優異,而且每個主要瀏覽器都支援。對照片而言,AVIF 甚至更小。
網頁圖片可以壓縮多少?
與 JPG 相比,WebP 通常可將圖片檔案大小縮小 25–35%,與 PNG 相比節省更多。
壓縮圖片對我的 SEO 有幫助嗎?
有幫助。頁面速度是排名因素,而較小的圖片載入更快,尤其是在行動裝置上。