Skip to content
ImageDoctor

JPG to AVIF Converter

Turn JPG photos into AVIF files for lighter web pages, encoded on your device.

Drop JPG images to convert to AVIF

Add JPG photos and they're encoded as AVIF in your browser. Larger photos take a few seconds each.

Processed locally in your browser

JPG · PNG · WebP · AVIF · GIF · BMP · TIFF · SVG

Common conversions

Converting a transparent PNG to JPG flattens transparency onto a background colour you choose. Animated GIFs are flattened to their first frame.

Converting JPG to AVIF

Add JPGs above and download AVIF files. Browsers can show AVIF but not save it, so ImageDoctor encodes it with libavif, an open-source AV1 image library, compiled to WebAssembly and run in your browser. That is slower than saving a JPG or WebP; in return, photos usually come out smaller.

What changes

Result
File sizeUsually smaller. MDN puts lossy AVIF at around half the size of a JPEG of similar quality; how much you save depends on the photo and on how the JPG was saved
Picture qualityRe-encoded from the JPG's pixels, so the JPG's own artefacts are kept and a little more detail can go. Convert from your best original
Colour8 bits per channel with colour at half resolution (4:2:0), the usual choice for photos. Converting can't add HDR the JPG never had
Camera details and GPSNot carried over. AVIF output never receives the JPG's EXIF, with or without Strip metadata
SpeedSlower than JPG or WebP: a large photo can take several seconds

Why it's slower, and what the tool does about it

  • Your browser can't save AVIF. Asked to save a canvas as AVIF, current browsers hand back a PNG instead. ImageDoctor checks once; if your browser ever returns a real AVIF, its own encoder is used, and otherwise the built-in one.
  • The encoder is loaded on first use. It is a WebAssembly file of about 3.5 MB, fetched the first time you save an AVIF and reused for every image after that. Pages that never save AVIF don't download it.
  • Larger photos use faster settings. libavif's speed runs from 0 (slowest) to 10 (fastest). Up to 4 megapixels the encoder runs at speed 6, up to 12 MP at 8, and above that at 9, so a 24 MP photo doesn't take a minute. Faster settings compress slightly less well.
  • It works in the background. Encoding runs in a worker, so the page stays usable while a batch is processed a few images at a time.

Choosing a quality

  • The slider (85 to start) goes straight to the encoder's quality setting, on a 0–100 scale where 100 means lossless. The numbers aren't comparable across formats — AVIF at 85 is not JPEG at 85 — so judge the result at 100% zoom, not by the number.
  • Lower it to save more. If the file is larger than you want, move the slider down and convert again, checking skies, skin and fine texture as you go.
  • Avoid 100 for photos. At 100 the AVIF is lossless with full-resolution colour (4:4:4). It reproduces every JPEG artefact exactly, and the file is larger than the JPG you started from.
  • Keep the JPG if it's smaller. A JPG that was already heavily compressed has little left to save. Check the size on the result before replacing your files.

Can people open an AVIF?

In a browser, almost always. caniuse lists full support from Chrome 85, Edge 121, Firefox 93 and Safari 16.4 (iOS Safari 16), about 96% of the global usage it tracks (checked 4 November 2026). Even so, MDN still recommends offering a JPEG or WebP fallback on a website, with the <picture> element.

Outside the browser, support varies by app, operating system and upload form. Use AVIF for photos on your own website; for files you send to people or systems, keep the JPG. More on the format, including HDR, in the AVIF reference.

Common questions

Usually. MDN puts lossy AVIF at around half the size of a JPEG of similar quality, but it depends on the photo and on how heavily the JPG was already compressed. Check the size of the result before replacing a file.

AVIF encoding is much heavier work, and browsers can't save AVIF themselves, so ImageDoctor runs its own AV1 encoder in WebAssembly on your device. Larger photos switch to faster encoder settings so they still finish in reasonable time.

Chrome 85 and later, Edge 121, Firefox 93 and Safari 16.4 (16 on iPhone), according to caniuse, checked in November 2026. Some desktop apps and upload forms still can't, so keep JPG for files you send to other people.

No. Camera details, dates and GPS location from the JPG are not written into the AVIF, whether or not Strip metadata is switched on.