SVG to AVIF Crop Converter

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

🖼️

Drop an SVG here

or Browse Files  ·  SVG supported

What This Tool Does

This tool loads an SVG file 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 a next-gen AVIF file. No server upload is required. The full workflow — loading, rendering, cropping, encoding — runs entirely in client-side JavaScript using the HTML5 Canvas API. The output uses the browser's native AVIF encoder via canvas.toBlob('image/avif'), producing a compact, high-quality AVIF file suitable for modern web delivery.

Who This Is For

  • Web developers who need to export a specific region of an SVG as an optimized AVIF image for production delivery
  • Designers who want to rasterize and crop an SVG to AVIF without installing Photoshop or Inkscape
  • Anyone optimizing image assets for Core Web Vitals who needs to trim SVG content to only the relevant area
  • Front-end teams replacing PNG or WebP assets with AVIF using SVG source files

SVG vs AVIF: Format Comparison

PropertySVGAVIF
Format typeVector (XML-based)Raster (AV1 compressed)
ScalabilityResolution-independentFixed pixel dimensions
File sizeCompact for simple shapesExcellent — 50–60% smaller than PNG
Transparency supportYes — full alphaYes — full alpha channel
Browser supportUniversalChrome, Edge, Firefox (Safari limited)
Lossy/losslessVector (no pixels)Both modes available
Best forIcons, logos, illustrationsWeb delivery, performance-critical images
EditingXML text editingRequires re-encoding

Frequently Asked Questions

What resolution is the AVIF output?
The output AVIF is rasterized at the natural pixel dimensions the browser assigns to the SVG when rendered. For SVGs with an explicit width and height attribute, this is typically the declared size. The crop is applied at full resolution. If your SVG lacks explicit dimensions, the browser may default to a fallback size — adding width and height to the SVG root element gives you precise control.
How precise is the crop tool?
The crop operates at native pixel accuracy on the rendered SVG 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.
What if my browser doesn't support AVIF encoding?
If your browser's Canvas API does not support AVIF output, the tool automatically falls back to PNG download. Chrome 85+, Edge 121+, and Firefox 93+ support AVIF encoding. Safari does not currently support AVIF canvas output. For best results use Chrome or Edge.
What browsers are supported?
All modern browsers support the SVG loading and crop interface — Chrome, Firefox, Edge, Safari (desktop and mobile). AVIF encoding requires Chrome 85+, Edge 121+, or Firefox 93+. On unsupported browsers 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 SVG files comfortably. Very complex SVGs on memory-constrained mobile devices may be slower to render.