How to convert SVG to AVIF without uploading it
Every "free" online SVG converter you've used uploads your artwork to a company server, converts it there, and — in several documented cases — keeps a copy or a live download link for days. For client work and anything you wouldn't post publicly, that's an unnecessary risk. The safer approach is to convert the file where it already is: on your own device.
This tool does exactly that. When you drop an SVG here, your browser:
- Sanitizes the SVG — script blocks, embedded HTML, animation elements and event-handler attributes are stripped, and any file that tries to load an external image, font or stylesheet is refused outright, with the reason shown on its file card.
- Rasterizes it onto a canvas at the width you picked — the SVG's own size, its viewBox size, or a preset — keeping the alpha channel intact, because AVIF has real transparency.
- Encodes the pixels as a lossy AVIF with libavif running as WebAssembly in your browser — one AVIF per file, at the quality you chose. Your original file is never modified.
Lossy only — what that means in practice
There is no lossless toggle, and that is deliberate. The vendored AVIF encoder's lossless mode is broken in a way that destroys colour: a solid red image encoded lossless comes back grey, verified against two independent decoders. Shipping a lossless button that silently strips the colour out of people's logos would be worse than no lossless mode at all, so the encoder refuses lossless encodes outright and this tool is lossy only. Quality runs from 50 to 100 (default 80); quality 100 is visually very close to the source but still not bit-exact. If the artwork has to be pixel-perfect, keep it as an SVG or convert it to PNG instead.
Why does AVIF encoding take so long?
AVIF is the most efficient image format in common use, and its encoder pays for that efficiency in time: libavif running single-threaded in the browser takes roughly 5 to 10 seconds for a large photo, and less for the small flat graphics SVGs usually are. The converter shows per-file progress while it works. If you are in a hurry, pick a smaller width or a lower quality — or a destination preset, which steps both down automatically when it aims for a target size.
When is AVIF the right choice for an SVG?
SVG is the best format for artwork that just needs to be stored or viewed — small, sharp, and infinitely scalable. AVIF earns its place when the picture has to be seen and shared: many upload forms, CMS fields, marketplaces and social platforms won't accept an SVG, reject it as an attachment type, or strip it to a download link, while an AVIF opens everywhere and is far smaller than a PNG or GIF of the same artwork. AVIF also keeps real transparency, so a logo with soft edges or a drop shadow survives the trip. If the destination has a size limit, pick a destination preset and the converter will aim for it.
Honest limitations
Lossy only
No lossless toggle: the vendored encoder's lossless mode produces monochrome files, so it is refused outright. Quality 50–100, default 80. For pixel-perfect artwork, keep the SVG or convert to PNG instead.
Encoding is slow
libavif is single-threaded in the browser: roughly 5–10 seconds for a large photo, less for small flat graphics. Per-file progress is shown while it works; smaller widths and lower quality encode faster.
Animated SVG becomes a still frame
SMIL and CSS animation inside a single SVG file are stripped and the static artwork is rendered. This converter produces still AVIFs only — for motion, use SVG to GIF.
Transparency is preserved
AVIF has a real alpha channel, so see-through areas stay see-through, including partly transparent pixels. Previews sit on a checkerboard so you can see it. Nothing is flattened onto a background.
External resources are refused
Linked images, webfonts and external stylesheets are never fetched, so an SVG that depends on them may render differently or be refused outright. The file card reports it per file — nothing is silently skipped. For pixel-perfect text, convert text to outlines before exporting.
Quality 100 can be larger than a tiny SVG
A vector stores shapes as text; a raster stores every pixel, so at quality 100 a lossy AVIF can be larger than a small flat SVG source. The file card shows the real sizes — lower the quality if it happens. EXIF/metadata does not apply to SVG (it is XML). Outputs are capped at 16 megapixels and one side at 8000 px. Compressed .svgz files are not supported — unzip them first.