Back to Guides

How to Convert PNG to WebP: Complete Guide

Step-by-step guide to converting PNG images to WebP format using online tools, command-line utilities, and popular image editors.

How to Convert PNG to WebP: Complete Guide

Converting PNG images to WebP can dramatically reduce file sizes while maintaining visual quality. Here are the most practical methods.

Method 1: Use ImagePixelConverter (Online, No Install)

The fastest way — no software installation required:

  1. Visit ImagePixelConverter
  2. Click "Upload Image" and select your PNG file
  3. Choose WebP as the output format
  4. Adjust quality settings (80–90 is recommended for most use cases)
  5. Click Convert and download your WebP file
This method works in any browser on any device.

Method 2: Command Line with cwebp

Install Google's official WebP tools:

# macOS
brew install webp

Ubuntu/Debian

sudo apt install webp

Convert a single file:

cwebp -q 85 input.png -o output.webp

Batch convert an entire directory:

for f in *.png; do cwebp -q 85 "$f" -o "${f%.png}.webp"; done

Method 3: ImageMagick

# Install
brew install imagemagick

Convert

convert input.png -quality 85 output.webp

Method 4: Using ffmpeg

ffmpeg -i input.png -c:v libwebp -quality 85 output.webp

Recommended Quality Settings

Use CaseQuality Setting
Photography80–85
UI elements85–90
Icons/logos90–95 (or lossless)
LosslessUse -lossless flag

Verifying the Result

Always check:

  1. Visual quality matches the original at your intended display size
  2. File size reduction is significant (expect 20–50% smaller)
  3. Transparency is preserved if the original PNG had it

Conclusion

For one-off conversions, ImagePixelConverter is the quickest option. For automated pipelines, cwebp or ImageMagick offer the most control. Start with quality 85 and adjust based on your quality/size requirements.