Free PNG to WebP Converter for Next.js - Image Optimization

Next.js’s Image component converts images to WebP (or AVIF) automatically when a server runs the image optimizer. With static export (output: export) or images: unoptimized, it does not, so converting PNG files to WebP yourself is what keeps pages fast.

PNG vs WebP

FormatTypical sizeTransparencyBrowser support
PNG100%YesAll
WebP lossy (q 80-85)~20-40%YesAll modern browsers
WebP lossless~74% of PNGYesAll modern browsers
PNG vs WebP: PNG All, WebP lossy (q 80-85) All modern browsers, WebP lossless All modern browsers
PNG vs WebP: PNG All, WebP lossy (q 80-85) All modern browsers, WebP lossless All modern browsers

Drop PNG files here or click to browse

Up to 50MB each — unlimited files

In a static Next.js site, put pre-converted .webp files in public/ and reference them directly. WebP is 26% smaller than PNG in lossless mode and often 60-80% smaller in lossy mode. Keep width and height on every image so the layout does not shift while it loads.

Frequently Asked Questions

Does Next.js convert images to WebP automatically?

Yes, next/image does it on request when the image optimizer runs on a server. Static exports and unoptimized mode skip it.

Should I use WebP or AVIF in Next.js?

AVIF is usually smaller but slower to encode; WebP is faster and universally supported. Both are good choices.

Need More Power?

Compress videos, photos & audio. HEVC, WebP, AVIF, FLAC support.

$14.99 one-time

Get MediaOptim for Mac

Free Up Phone Storage

Compress photos & videos directly on iOS and Android.

$4.99 one-time

Get MediaOptim Mobile

Also available on mobile

Free Up Your iPhone & Android Storage

Compress on-device. No uploads. No subscriptions.