WebP supports both lossless and lossy compression, making it one of the few formats that can genuinely replace PNG. Converting PNG to WebP can dramatically reduce file size while preserving transparency support. This guide explains the lossless vs lossy WebP choice, conversion methods for every major tool, and batch conversion techniques.
PNG is a lossless format. Converting to lossless WebP preserves every pixel while reducing file size by roughly 20–30%, with full transparency support intact. Converting to lossy WebP can reduce file size by 50–70% more but introduces slight compression artifacts—transparency is still fully supported.
Guidelines: Logos and UI icons (hard edges, text, pixel-perfect required) → lossless WebP. Product photos and backgrounds with transparency (slight quality loss acceptable) → lossy WebP (quality 85–95). General screenshots and diagrams → lossy WebP (quality 80–85).
Open Image Convert and pick your PNG file — it is processed in your browser and never uploaded — then select WebP output, choose lossless or lossy mode and set quality, then download. Supports batch processing, completely free, no installation needed.
Lossy conversion (quality 80–90 recommended):
cwebp -q 85 input.png -o output.webp
Lossless conversion (preserves all quality):
cwebp -lossless input.png -o output.webp
Batch lossy conversion of a whole folder:
for file in *.png; do cwebp -q 85 "$file" -o "${file%.png}.webp"; done
Lossy:
magick convert input.png -quality 85 output.webp
Lossless:
magick convert input.png -define webp:lossless=true output.webp
Open the PNG, go to File → Save As → WebP. The dialog lets you choose lossless or lossy mode and set quality. Photoshop natively handles WebP’s alpha channel, so transparent backgrounds are preserved perfectly.
Go to squoosh.app, drag in your PNG, select WebP output on the right panel, toggle “Lossless” on or off, adjust quality, and download. Squoosh provides real-time side-by-side preview, making it easy to judge the quality vs size trade-off visually.
WebP is not supported on iOS 13 and below or Internet Explorer. If your audience may use older devices, use the <picture> element with a PNG fallback:
<picture>
<source srcset="image.webp" type="image/webp">
<img src="image.png" alt="description">
</picture>
Do it in your browser — the file never leaves your device: Image Convert