Convert an image to WebP on Mac
WebP is the modern web image format — smaller than JPEG, with transparency. Here's how to convert your images to WebP on macOS.
You’re optimising a website and your Lighthouse audit is yelling at you about image formats. WebP is the answer for most photos and graphics — 25–35% smaller than JPEG or PNG at the same visual quality, with universal browser support. The question is how to get your existing JPEGs and PNGs into WebP without buying yet another tool.
Why WebP
- 25–35% smaller files than JPEG at matched quality.
- Supports both lossy and lossless modes.
- Transparency (unlike JPEG).
- Animation (unlike PNG).
- Supported in every modern browser (Chrome, Safari 14+, Firefox, Edge).
The main downside: design tools and CMS upload forms sometimes still want JPEG or PNG.
The native way: sips
macOS Sonoma and later include WebP support in sips. One file:
sips -s format webp -s formatOptions 80 photo.jpg --out photo.webp
A folder:
mkdir webp
for f in *.jpg *.png; do
sips -s format webp -s formatOptions 80 "$f" --out "webp/${f%.*}.webp"
done
Quality goes 0–100; 75–85 is the typical web range.
The magick way
If your sips is too old or you want more control:
brew install imagemagick
magick photo.jpg -quality 80 photo.webp
Add -define webp:lossless=true for lossless mode.
The faster way
Drag a folder of images into Melt, set output to WebP, set quality, click Compress. You see the savings file by file, and you can resize at the same time — useful when you’re prepping responsive image sets. Download Melt.
Batch convert to WebP in Melt
- Open Melt.
- Drag your images (JPEG, PNG, or mixed) in.
- Set output format to WebP.
- Pick quality — 80 is a good default for web.
- Optionally enable resize if you're generating responsive sizes.
- Click Compress.
Lossy vs lossless WebP
- Lossy WebP for photos and anything with smooth gradients. Smaller files, quality similar to JPEG at 85.
- Lossless WebP for screenshots, logos, anything with text or sharp edges. Smaller than PNG, lossless.
Most converters default to lossy. Switch explicitly if you need lossless.
What you lose, what you keep
Going JPEG → WebP is a re-encode, which means a small amount of extra quality loss on top of what’s already in the JPEG. Going PNG → lossless WebP is genuinely lossless. EXIF data is preserved by default in sips and Melt; strip it if you’re publishing the images publicly. Keep your original masters and serve WebP from a separate folder.
More Melt tips
-
Receive iPhone photos as JPG via AirDrop (not HEIC)
AirDropping photos from iPhone keeps landing them as HEIC files on your Mac. Here's how to get them as JPG instead.
-
AVIF on Mac — opening and converting AVIF images
AVIF is the next-gen image format that's even smaller than WebP. Here's how to open and convert AVIF files on macOS.
-
How to batch compress a folder of photos on Mac
Compressing 200 photos one at a time is its own form of suffering. Here's how to batch compress images on macOS.
-
What's the best image format for the web (and how to export it on Mac)?
JPEG, PNG, WebP, AVIF, SVG — they each have a job. Here's how to pick the right one for the web and export it from your Mac.