Convert PNG to WebP in your browser
Make PNG graphics and screenshots smaller with lossless or lossy WebP, keeping transparency.
Image compression workspace
To convert PNG to WebP, select the PNG, choose lossless or a quality level, and click Compress. Localsquash encodes WebP with libwebp in your browser, keeps transparency, and never uploads the image.
How to convert PNG to WebP
- Select your PNG image.
- WebP is preselected; choose lossless or set the quality.
- Optionally resize, crop, or keep metadata.
- Click Compress, compare the result, and download the WebP.
Why convert PNG to WebP?
Lossless WebP
Keeps every pixel and is typically smaller than PNG for graphics and screenshots.
Lossy WebP
Much smaller for photographic PNGs. Start around quality 80 and compare edges and text.
Transparency
WebP supports an alpha channel in both lossless and lossy modes.
Technical specifications
| Engine | FFmpeg compiled to WebAssembly (ffmpeg.wasm core 0.12.10, single-threaded), running in your browser tab |
|---|---|
| Inputs | JPG, PNG, WebP, BMP, GIF (first frame) |
| Outputs | WebP (libwebp, lossy or lossless), JPEG, PNG (compression level 9) |
| Controls | Quality, resize, crop, strip metadata |
| Transparency | Kept in PNG and WebP; JPEG has no alpha channel |
| Not supported | Animated output, batch processing, exact-KB targets |
| Memory | Limited by the browser and device; phones fail sooner on large files |
| Network | About 32 MB of engine files downloaded from cdn.jsdelivr.net when you select a file; your media is never sent |
How to verify nothing is uploaded
- Open your browser’s developer tools and select the Network tab.
- Select a file and wait until the engine status shows Ready.
- Optionally switch the device offline, then start compression. It still completes because encoding runs locally.
- Review the requests: page assets, analytics, and ffmpeg-core files appear, but no request contains your media.
PNG to WebP FAQ
Does PNG to WebP keep transparency?
Yes. WebP supports alpha transparency in lossless and lossy modes.
Is lossless WebP always smaller than PNG?
Not always. It is usually smaller for screenshots and graphics, but an already optimized PNG may not shrink. Compare the output size before replacing the original.
Is PNG to WebP conversion private?
Yes. Conversion runs locally in your browser with FFmpeg WebAssembly. The file never leaves your device, and there is no signup or watermark.
