PNG to AVIF Crop Converter

Load a PNG, drag the crop handles to define exactly the area you need, preview the result, then download a compact next-gen AVIF file. Everything runs in your browser — your image never leaves your device.

⚠️ Your browser does not support AVIF encoding via the Canvas API. Chrome 85+, Edge 121+, and Firefox 93+ are required for AVIF output. The download will fall back to PNG.
🖼️

Drop a PNG here

or Browse Files  ·  PNG supported

What This Tool Does

This tool loads a PNG image directly in your browser using URL.createObjectURL and img.decode() for reliable, guaranteed non-blank rendering. It presents an interactive crop overlay with draggable handles, and converts the selected area to an AVIF file using the browser's native Canvas toBlob('image/avif') encoder. No server upload is required. The full workflow — loading, cropping, encoding — runs entirely in client-side JavaScript using the HTML5 Canvas API. Transparency is preserved: PNG alpha-channel data passes through to the AVIF output without any background compositing.

Who This Is For

  • Web developers who need to extract a specific region from a PNG and deliver it as a compact AVIF asset for the fastest possible page loads
  • Designers who want to trim source PNG files down to the exact subject area and export in the modern AVIF format in one step
  • Anyone optimizing images for Core Web Vitals who needs to crop and convert PNG assets to AVIF without installing desktop software
  • Content creators who want to dramatically reduce image file size while preserving transparency by switching from PNG to AVIF

PNG vs AVIF: Format Comparison

PropertyPNGAVIF
CompressionLossless DEFLATELossy or lossless (AV1-based)
Typical file size vs PNGBaseline50–60% smaller (lossy); ~20% smaller (lossless)
Transparency supportFull alpha channel (0–255)Full alpha channel (0–255)
Color depthUp to 48-bitUp to 12-bit per channel, HDR support
Browser supportUniversalChrome 85+, Firefox 93+, Edge 121+, Safari 16+
Animation supportAPNG onlyYes — animated AVIF
Best forLossless archives, screenshotsNext-gen web delivery, maximum compression

Frequently Asked Questions

How precise is the crop tool?
The crop operates at native pixel accuracy on the original PNG dimensions. The canvas is scaled to fit your screen for display, but the actual crop coordinates are mapped back to the full-resolution image before the AVIF is generated. You get an AVIF at the exact pixel dimensions shown in the crop dimensions badge.
Can I move the crop selection after setting it?
Yes — click and drag anywhere inside the crop rectangle (away from the handles) to reposition it anywhere within the image. Handles resize; the interior pans.
Does the AVIF output use lossy or lossless compression?
The browser's built-in Canvas toBlob AVIF encoder is used, which defaults to lossy AVIF at a high quality setting. This produces visually near-identical results to the source PNG at significantly smaller file sizes — typically 50–60% smaller than equivalent PNG.
What browsers are supported?
All modern browsers can run the crop interface. AVIF encoding via canvas.toBlob is supported in Chrome 85+, Edge 121+, and Firefox 93+. Safari supports AVIF display but not canvas AVIF output — in Safari the tool falls back to PNG download automatically.
Is there a file size limit?
There is no server-imposed limit because no upload occurs. The practical limit is your browser's available RAM. Most modern desktops handle large PNG files comfortably. Very large files on memory-constrained mobile devices may be slower to process.
What happens to transparent areas in my PNG?
Transparent pixels are preserved in the AVIF output where the browser's AVIF encoder supports alpha channels. Unlike GIF conversion, there is no need to flatten transparency against a background color — AVIF supports full alpha-channel transparency, so your transparent PNG regions remain transparent in the downloaded AVIF file.