AVIF to WebP Crop Converter

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

🖼️

Drop an AVIF here

or Browse Files  ·  AVIF supported

What This Tool Does

This tool loads an AVIF image directly in your browser, presents an interactive crop overlay with draggable handles, and converts the selected area to a WebP file. No server upload is required. The full workflow — loading, cropping, encoding — runs entirely in client-side JavaScript using the HTML5 Canvas API. AVIF files use AV1 compression that requires full asynchronous pixel decoding before the canvas can draw them; this tool uses URL.createObjectURL with img.decode() to guarantee the decode is complete before drawing, preventing the silent blank-canvas problem that affects standard Image element loading with AVIF. The output is a high-quality WebP at quality 0.92, the format natively supported by every modern browser for web delivery.

Who This Is For

  • Web developers who have AVIF source artwork and need a cropped WebP for broader browser compatibility
  • Designers preparing web assets from next-gen AVIF source files for production pipelines that expect WebP input
  • Anyone converting a specific region of an AVIF photo to WebP without installing software
  • Developers who need a quick crop-and-convert workflow that stays entirely in the browser

AVIF vs WebP: Format Comparison

PropertyAVIFWebP
CompressionAV1 (best-in-class)VP8/VP8L (excellent)
Typical file size advantage20–50% smaller than WebP25–35% smaller than JPEG
Browser supportChrome 85+, Firefox 93+, Safari 16+Universal — all modern browsers
Transparency supportYes (alpha channel)Yes (alpha channel)
Lossless modeYesYes
HDR / wide color gamutYesLimited
Encode speedSlow (AV1 is complex)Fast
Best forMaximum compression, future-focused deliveryBroad compatibility, fast encoding, web images

Frequently Asked Questions

Why does AVIF loading require a special decoding approach?
AVIF uses AV1 video codec compression that requires asynchronous GPU-accelerated decoding. When you load an AVIF with the standard new Image() and FileReader.readAsDataURL() approach, the browser fires the onload event before the AV1 pixel decoding completes. Calling ctx.drawImage() at that point silently draws a blank canvas — no error, no warning, just empty output. This tool uses URL.createObjectURL(file) followed by img.decode(), a Promise that resolves only after the full pixel decode is ready, so the canvas always receives real pixel data.
How precise is the crop tool?
The crop operates at native pixel accuracy on the original AVIF 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 WebP is generated. You get a WebP 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.
What browsers support AVIF input and WebP output?
AVIF input requires Chrome 85+, Firefox 93+, Edge 121+, or Safari 16+. WebP output via the Canvas API is supported in all the same browsers. If your source AVIF does not load, verify your browser is up to date.
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 AVIF files comfortably. Very large files on memory-constrained mobile devices may be slower to process.
Will the output WebP retain transparency from the source AVIF?
Yes. The HTML5 Canvas API preserves the alpha channel from the decoded AVIF, and WebP supports full RGBA transparency. Transparent pixels in your AVIF source will remain transparent in the output WebP.