AVIF to SVG Converter

Put an AVIF picture inside an SVG file, in your browser.

or drop files here

AV

AVIF Format

AV1 Image File Format

An image format that combines AV1 coding with HEIF-family packaging.

  • lossy and lossless compression
  • alpha transparency
  • HDR and wide color gamut
  • 10-bit and 12-bit depth
SV

SVG Format

Scalable Vector Graphics

An XML graphics document containing shapes, text, and potentially embedded pixel images.

  • resolution independent
  • XML text
  • supports animation and scripting
  • styleable with CSS

How to convert AVIF to SVG

Follow these steps to convert AVIF to SVG online.

    1

    Choose your AVIF file, or several at once.

    2

    Wait while the converter turns each file into SVG.

    3

    Download each new SVG file. Your original file isn't changed.

Before converting AVIF to SVG

  • The SVG contains your picture as one embedded PNG. It is not traced into paths.
  • The embedded picture keeps the AVIF's pixel size, so it does not scale like a vector.
  • The download is named after your AVIF with the .svg extension.
  • Metadata, HDR depth and animation frames after the first are not carried over.

AVIF to SVG: formats and alternatives

What is an AVIF file?

The AV1 Image File Format was designed by the Alliance for Open Media, a group set up in 2015 for royalty-free media formats, and it released the AV1 video codec in 2018. The AVIF specification, version 1.0.0, carries the date 19 February 2019. Inside, AV1-coded images sit in a HEIF container. Lossy and lossless compression are both allowed, along with transparency, image sequences and a depth of 12 bits per channel at most, meant for HDR and wide color gamut. Exif and XMP data and an ICC profile may also be stored.

AVIF is royalty-free, yet decoding its images is slow, and encoding a single one can take several seconds. The format's registered media type is image/avif, and an image item in the Baseline profile is limited to 8,192 pixels across and 4,352 down, so larger pictures are tiled as a grid of those items.

Programs that open AVIF files

  • Windows, Mac and Linux: ImageMagick reads AVIF as well, and AVIF import and export arrived in GIMP with version 2.10.22.
  • Windows: Windows itself can show .avif files only with Microsoft's AV1 Video Extension installed next to the HEIF Image Extension.
  • Web: Chrome 85 and Firefox 93 added AVIF decoding, Safari 16.1 and Edge 121 followed, and AVIF does not render progressively.
  • Mobile: Android 12 and later decode AVIF, and still AVIF images arrived in Safari on iOS 16.

AVIF and SVG compared

  • Extensions: .avif is image/avif, .svg is image/svg+xml.
  • Stored as: AVIF holds compressed pixels. SVG is XML that describes shapes, paths and text, and it can embed a picture.
  • Scaling: real vector shapes stay sharp at any size. A picture placed inside the SVG does not.
  • Transparency and depth: AVIF can be transparent and reach 12-bit samples for HDR, while the picture this page writes is 8 bits per channel.
  • Display: every major browser displays SVG.

This page does not trace the image. Your browser decodes the AVIF, and when it has no AVIF decoder the page uses ImageMagick instead. The pixels are encoded as a PNG and placed in the SVG as a single image element, base64-encoded, at the picture's pixel width and height. Nothing is resized, and transparency survives inside the PNG. Metadata such as Exif and the color profile is not carried over, and an animated AVIF contributes only its first frame.

Other ways to convert AVIF to SVG

  • avifdec and Inkscape: run avifdec illustration.avif illustration.png, then bring the PNG into Inkscape through File > Import and choose to embed it. An embedded image is stored inside the SVG file. The result holds a raster image unless you trace it.
  • GIMP and Inkscape tracing: load the AVIF in GIMP, which imports and exports it, and write a PNG out through File > Export As. In Inkscape use File > Import for that PNG, pick it with the Selector tool, choose Path > Trace Bitmap and click Ok. The trace appears on the canvas over the original, so delete the bitmap if you don't want it.
  • ImageMagick and Potrace: run magick mark.avif mark.bmp, then potrace -s mark.bmp -o mark.svg. ImageMagick lists AVIF and BMP as readable and writable, and Potrace takes BMP input and writes SVG with -s. It decides which pixels count as black with a cutoff setting, so it suits silhouettes and marks, not photographs.

The first route keeps color and detail but stays a bitmap, much like this page does. Only the tracing routes give real vector shapes. This page gives an SVG that contains the picture.

Problems with AVIF files

  • A site or editor rejects the file: older programs lack AVIF support. Convert it to JPG, PNG or WebP first.
  • GIMP won't open it: versions before 2.10.22 lack the AVIF importer, so update GIMP.
  • Windows shows nothing: add Microsoft's AV1 and HEIF extensions from the Store.
  • An older browser can't display it: supply a JPEG, PNG or WebP fallback.
  • An Android device can't play a 10-bit file: from Android 12 on, baseline 8-bit AVIF decoding is supported while 10-bit decoding is optional.
  • The SVG won't edit like a drawing: it holds one image. Shapes and text are not recovered from pixels, so trace the picture or redraw it.
  • The SVG looks blurry when enlarged: the embedded PNG has the AVIF's pixel size. Start from a larger source or trace it into paths.

Frequently Asked Questions

Everything you need to know about our converter

How can I get an SVG out of an AVIF?

Does it trace the AVIF into vector paths?

Will the SVG stay sharp at any size?

Can I edit shapes or text in the SVG?

Is my AVIF uploaded anywhere?

Is transparency kept?

What happens to a 10-bit or HDR AVIF?

Does it work in a browser that cannot show AVIF?

Can I get real vector shapes from an AVIF?

What if my AVIF is animated?