Category: Image tools
AVIF Converter
AVIF is the starting target; switch it to convert an AVIF back out
This route opens with AVIF selected, and switching the target to PNG, JPG or WebP converts an AVIF you cannot open. Reading and writing AVIF depend on the browser.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This AVIF converter opens with AVIF already chosen as the target — that is what separates this route from the general image format converter, which starts on WebP. AVIF is the starting point, not a restriction: PNG, JPG and WebP sit in the same picker, so converting an AVIF you cannot open is just a matter of changing the target. The source is decoded with createImageBitmap, so any format the browser can already read is accepted, including an AVIF source on a browser that decodes AVIF — which is what makes converting away from AVIF possible at all. The image is redrawn at its natural pixel dimensions onto a canvas and encoded with canvas.toBlob, and AVIF is written by the browser's own encoder, the same engine that renders this page, so no separate codec is downloaded. After encoding, the blob is checked against the AVIF MIME type. That check matters most here, because AVIF is the format a browser is most likely to be unable to write: if it cannot, you get an unsupported-format error rather than a PNG silently substituted for it. The quality slider runs from 30% to 95% in five-point steps and applies to AVIF, and to JPEG and WebP if you switch to them; PNG is lossless, so the slider is hidden. Switch the target to JPG and the canvas is painted white before drawing, because JPEG has no alpha channel. Conversion runs when a file is chosen, again when the target changes, and on demand from a button; the previous object URL is released with each new result and when you leave the page. You get the original and converted byte sizes, the format actually written, a preview, and a download named after the source file with the new extension. The limits are explicit. Whether AVIF can be written is decided by the browser — there is no bundled fallback encoder and no server-side conversion — and whether an AVIF source can be read is decided by the browser's decoder, so universal AVIF input is not promised. It is one image at a time: no batch, multi-file selection, folder input or ZIP. There is no resizing, cropping or rotation, and no metadata survives the canvas re-encode, which drops Exif, XMP, IPTC and the ICC profile. There is no animated AVIF and no animation preserved from an animated source; a single still frame is produced. There are no AVIF encoder controls — no chroma subsampling, bit depth, speed or effort setting, no lossless AVIF mode and no HDR or wide-gamut handling. There is no target file-size field, no one-pass AVIF-versus-WebP-versus-JPEG size comparison, and no SVG, PDF, ICO, BMP, TIFF, HEIC or RAW output. Nothing is uploaded, and no encoder binary or asset is fetched at run time.
How to use it
- Choose an image; AVIF is already the target, with the 30-95% quality slider controlling compression.
- To convert away from AVIF, switch the target to PNG, JPG or WebP — reading the AVIF source depends on your browser.
- Compare the original and converted sizes, check the format actually written, and download the result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Why won't my computer open AVIF files?
- Plenty of viewers, editors and upload forms still refuse AVIF even though modern browsers display it. Switching the target here to PNG, JPG or WebP gives you a file those programs will accept.
- How do I convert AVIF to PNG or JPG?
- Choose the AVIF file and change the target format. PNG keeps transparency and hides the quality slider because it is lossless; JPG is smaller but has no alpha channel, so transparent areas are filled with white.
- Can I turn a PNG or JPG into AVIF here?
- Yes — that is the default on this route. AVIF is already selected as the target, and the quality slider runs from 30% to 95%. Encoding uses the browser's own canvas encoder, so nothing is installed.
- Does converting AVIF to JPG reduce quality?
- Yes, a little: the AVIF is decoded and re-encoded as JPEG through the quality slider, so it is a second lossy pass. Choosing PNG avoids that but usually produces a much larger file than the AVIF you started with.
- Is AVIF supported by every browser?
- No, and this tool does not bundle its own codec. Writing AVIF depends on the browser's encoder and the result is checked against the AVIF MIME type, so an unsupported browser reports an error instead of handing back a mislabelled PNG.