先行編譯的公用程式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
取得 cwebp、dwebp 和 WebP 程式庫
cwebp
會將 JPEG、PNG 或 TIFF 格式的圖片編碼為 WebP,而 dwebp
則會將圖片解碼回 PNG。如要快速輕鬆地開始轉換圖片,請前往下載存放區下載下列封存檔。
所有這些封存檔都包含完整的公用程式套件,包括 cwebp
、
dwebp
和 gif2webp
,以及 WebP 程式庫和 C 標頭 (後者可讓您在自己的程式中新增 WebP 編碼或解碼)。
注意 (適用於 Linux 和 macOS):
二進位檔已靜態連結,可跨版本和發布項目相容。不過,如果二進位檔無法在您的平台上執行,請參閱「編譯公用程式」頁面,瞭解如何建構自己的版本。
macOS 套件管理工具
此外,macOS 通常會透過 Homebrew
和 MacPorts 提供 WebP 工具。
後續步驟
如要瞭解如何開始轉換圖片,請參閱「使用 WebP」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-08 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-08 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003ecwebp\u003c/code\u003e utility encodes JPEG, PNG, or TIFF images into WebP format, while \u003ccode\u003edwebp\u003c/code\u003e decodes WebP images back to PNG.\u003c/p\u003e\n"],["\u003cp\u003ePre-built, downloadable archives containing \u003ccode\u003ecwebp\u003c/code\u003e, \u003ccode\u003edwebp\u003c/code\u003e, and other WebP utilities are available for Windows, Linux, and macOS platforms.\u003c/p\u003e\n"],["\u003cp\u003eThe provided archives include the WebP libraries and C headers for integrating WebP functionality into custom applications.\u003c/p\u003e\n"],["\u003cp\u003emacOS users can install WebP tools using package managers like Homebrew and MacPorts.\u003c/p\u003e\n"],["\u003cp\u003eDetailed usage instructions for WebP tools are available on the "Using WebP" documentation page.\u003c/p\u003e\n"]]],["`cwebp` encodes JPEG, PNG, or TIFF images to WebP, and `dwebp` decodes them to PNG. Pre-compiled 64-bit executables and libraries for Windows, Linux, and macOS are available for download. These archives include `cwebp`, `dwebp`, `gif2webp`, WebP libraries, and C headers. macOS users can also get the tools through Homebrew or MacPorts. If the provided binaries fail, users can build custom versions.\n"],null,["Getting cwebp, dwebp, and the WebP Libraries\n\n`cwebp` encodes images in either JPEG, PNG or TIFF format into WebP, while\n`dwebp` decodes them back into PNG. For a quick and easy way to get started\nconverting your images, the following archives are available on the\n[downloads repository](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/index.html).\n\n- [libwebp-1.5.0-windows-x64.zip](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-windows-x64.zip) :\n 64-bit executables and libraries for Windows-x64 platform.\n\n- [libwebp-1.5.0-linux-aarch64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-linux-aarch64.tar.gz) :\n 64-bit executables and libraries for GNU/Linux-AArch64 platform.\n\n- [libwebp-1.5.0-linux-x86-64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-linux-x86-64.tar.gz) :\n 64-bit executables and libraries for GNU/Linux-x86_64 platform.\n\n- [libwebp-1.5.0-mac-arm64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-mac-arm64.tar.gz) :\n 64-bit executables and libraries for macOS (arm64) platform.\n\n- [libwebp-1.5.0-mac-x86-64.tar.gz](https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0-mac-x86-64.tar.gz) :\n 64-bit executables and libraries for macOS (x86_64) platform.\n\nAll these archives contain the full suite of utilities including `cwebp`,\n`dwebp` and `gif2webp`, along with the WebP libraries and C headers (the\nlatter allowing you to add WebP encoding or decoding to your own programs).\n\nNote (for Linux and macOS):\n\nThe binaries have been statically linked for compatibility across releases and\ndistributions. However, if the binaries fail to run on your platform, check the\n[Compiling the Utilities page](/speed/webp/docs/compiling#unix) for instructions\non how to build your own versions.\n\nmacOS Package Managers\n\nAdditionally, the WebP tools are often available for macOS via **[Homebrew](https://brew.sh/)**\nand **[MacPorts](https://www.macports.org/)**.\n\n- [Homebrew WebP package](https://formulae.brew.sh/formula/webp)\n- [Macports WebP package](https://www.macports.org/ports.php?by=library&substr=webp)\n\nWhat Next?\n\nGo to [Using WebP](/speed/webp/docs/using) for instructions on how to start\nconverting your images."]]