AptLynx

Command-line tool

webp

brew/webp

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Image format providing lossless and lossy compression for web images

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

winget install --id Google.Libwebp -e

macOS

brew install webp

Linux

brew install webp

Compress a WebP file with default settings (lossy compression, q = 75) to the [o]utput file

cwebp path/to/image_file -o path/to/output.webp

Compress a WebP file with the best lossy compression [q]uality and largest file size

cwebp path/to/image_file -o path/to/output.webp -q 100

Compress a WebP file with the worst lossy compression [q]uality and smallest file size

cwebp path/to/image_file -o path/to/output.webp -q 0

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents