Convert PNG images to AVIF without uploading them
AVIF is a modern image format that compresses far better than PNG for photographs and flat-colour graphics alike, while still supporting transparency. This tool re-encodes your PNGs as AVIF with a quality slider you control, so you can trade file size against fidelity — ideal for shrinking images destined for the web.
How it works
Each PNG is decoded, drawn onto an HTML <canvas> at its original pixel
dimensions, then re-encoded with the browser’s built-in AVIF encoder:
PNG → decode → draw to <canvas> → canvas.toBlob("image/avif", quality)
quality slider: 0.1 (smallest) … 1 (near lossless)
The alpha channel is carried through, so transparency survives. If the browser cannot produce AVIF, a clear error is shown instead.
Example
A 500 KB PNG screenshot re-encoded at quality 0.8 typically drops to well under 150 KB as AVIF while looking visually identical, with any transparent areas preserved.
| Quality | Typical result |
|---|---|
| 1.0 | Near lossless, largest AVIF |
| 0.8 | Strong shrink, no visible loss |
| 0.5 | Smallest, slight softening |
Everything runs locally in your browser — your images are never uploaded, stored, or seen by anyone.