Convert AVIF to JPG

Converting AVIF to JPG trades the smallest file the web has for the one every piece of software still accepts. It is a second lossy pass on an already lossy picture, which is worth knowing before you start — and worth doing anyway when the destination is an upload form, a photo library or an editor that will not read AVIF at all.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. JPG cannot hold everything an AVIF can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Transparency is not supported by the target format and is filled with the background colour.

Up to 100 files at once. Mixed formats are fine.

What AVIF to JPG actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as AVIF.

AVIF17 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as JPG.

JPG9 KB49% smaller

A photographic scene — smooth gradients, soft edges, grain. This is the case JPG is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as AVIF.

AVIF3 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as JPG.

JPG6 KB68% larger

A transparent background and a gradient across the shape. JPG either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as AVIF.

AVIF5 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as JPG.

JPG16 KB3.2× larger

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

Who converts AVIF to JPG, and why it is a retreat

AVIF arrived in 2019 from the Alliance for Open Media and it won the argument it was built for: every current browser reads it, which is why sites serve it and why the file you are holding is one. Every current browser is also the entire list. The moment the picture has to go somewhere that is not a browser — a form with an accept list, a phone gallery, an image editor, a print order — the format that won stops being an advantage and becomes the obstacle.

JPEG has been the answer to that since 1992, published as ITU-T T.81, and there is essentially no software that reads pictures at all and does not read it. That is the entire trade on this page: you give back the compression AVIF earned and you receive a file nobody has to be told how to open. If the destination expects a document rather than a picture — something to be attached, printed or filed — a PDF wraps it better, and that is a different page.

The second lossy pass, and what it actually costs

AVIF has a lossless mode, and an image served to make a web page load faster is not using it. So the picture has already been through one lossy encoder, and converting it to JPEG sends it through a second one built on entirely different assumptions. Generation loss is the failure mode listed against JPEG in this registry, and two encoders in series is precisely the situation that produces it.

The second encoder cannot see what the first removed. It sees only the result and removes more, guided by a model from 1992 applied to an image shaped by a model from 2019. At a sensible setting the damage is modest and it is not evenly spread: it concentrates where AVIF was cleverest, in smooth gradients, out-of-focus backgrounds and flat areas next to hard edges. Judge the result by looking at those, not at the sharp subject in the middle, which will look fine either way.

Quality 82, and why AVIF numbers do not transfer

The quality control on this page starts at 82. That is a deliberately conservative JPEG setting — high enough that a second pass is hard to see on a photograph, low enough that the file is not absurd for something that only has to be opened and looked at.

The trap is arriving with AVIF instincts. AVIF holds together at numbers JPEG cannot: quality 50 is frequently indistinguishable from the original as an AVIF and is visibly broken as a JPEG, all blocking and mush. If you have been compressing AVIFs and have learned to read the slider one way, read it the other way here. In the other direction, past about 90, the JPEG grows quickly in exchange for a difference nobody sees on a screen. The numbers are not a shared scale between codecs at all — they are each encoder’s own dial, and the only thing they have in common is the direction they point.

JPG has no alpha channel, so the transparency gets filled

AVIF carries a full alpha channel and JPEG carries none. That is a flat difference between the two specifications rather than a limitation of this converter, so anything transparent in the source has to become some colour. The page asks which, and the answer defaults to white.

The fill and any resize happen in one pass over the pixels, which matters more than it sounds. Filling first and scaling afterwards blends the fill into the edges; scaling a transparent image and filling afterwards leaves a fringe of half-transparent pixels that the fill then darkens into a visible halo. Doing both in a single draw avoids both faults. If the picture is a cut-out logo headed for a coloured page, set the background to that colour here rather than repairing a white box later.

Twelve bits of AVIF colour into eight bits of JPEG

AVIF can describe up to twelve bits per channel and wide colour gamuts. JPEG is eight bits, in RGB, greyscale or YCbCr, and has been since it was standardised. If the AVIF came out of a modern camera or an HDR export rather than off a web page, some of what it holds cannot be written into a JPEG at all.

It is worth knowing that the reduction happens before the JPEG encoder is reached: this engine decodes every image into an eight-bit RGBA buffer, so a twelve-bit source is cut down at the decode step whatever the target format is. For the great majority of pictures saved from web pages that costs nothing, because they were eight-bit when they were served. For a wide-gamut original it means the result is a narrower-gamut copy, and the colours can land slightly differently in the most saturated parts of the picture.

The JPG will usually be larger than the AVIF was

This surprises people and it should not. The AVIF exists because it was the smallest thing the browser could be handed, and a JPEG of the same picture at a quality where it looks the same is normally a good deal bigger. Converting for compatibility costs bytes, and the bytes are what the compatibility is bought with.

How much bigger depends entirely on the content. Photographs are where AVIF is strongest, so photographs are where the JPEG grows most. Flat graphics, icons and screenshots are where AVIF is weakest, and there the gap narrows to very little — though for that sort of image PNG is usually the better target than JPEG anyway. If the size matters to you, convert one representative file and measure it rather than trusting a general figure, this one included. The one lever that reliably shrinks the result is the maximum width: fewer pixels is a real saving, where a lower quality number is a saving you can see.

Where JPG still wins outright: forms, email, print

The list of places that take a JPEG and refuse an AVIF is long and boring, and every entry on it is somebody’s actual afternoon: an application form that validates by extension, a photo library that will not index the file, a print service whose uploader rejects it, an email client that shows a broken icon, a colleague on an older machine, a piece of software written before 2019 that by definition never heard of the format.

Universality is the only advantage JPEG has left over AVIF, and it is enough, because the cost of a file the recipient cannot open is not a small penalty — it is total. Nothing about the conversion has to be optimal for it to be right. A slightly larger, slightly softer file that opens is worth more than a perfect one that does not, and thirty-odd years of every camera, phone, scanner and photo library writing JPEGs is not a lead any newer format closes quickly.

Go back to the original before converting the AVIF

If the AVIF came out of your own pipeline, the JPEG should be made from whatever produced the AVIF, not from the AVIF. One lossy encode from a master beats two in series every time, and the master is usually still sitting in the folder the export came from.

If you saved the file from somebody else’s website then you have no master, this is the best available, and no converter can restore detail the site chose not to send. Knowing which of the two situations you are in is worth thirty seconds, because in the first one the better result is free and in the second one there is no better result to find.

What the metadata round trip drops

The conversion decodes to pixels and encodes again, so the EXIF block does not come across, and nothing on the page changes that. The encoder is handed an array of pixels and nothing else, which means the capture fields are already gone by the time the JPEG is written; a switch offering to keep them would be a promise the engine breaks silently.

For this pair it usually costs nothing. An AVIF that came off a web page has generally been through a resizing pipeline that dropped the camera fields long before you saved it. Where it does matter is the expectation in the other direction: JPEG can carry EXIF, XMP, IPTC, ICC and GPS blocks, so people assume the output has them. It does not. If the capture date or the coordinates need to be in the JPEG, they have to be written there from the original.

Where the AVIF is decoded, and the ceiling on it

jSquash decodes the AVIF and encodes the JPEG inside the browser tab, on your own processor, so the picture never leaves the machine and there is no queue, account or daily allowance. The free ceiling is 100 MB per file, which for a still image is far beyond anything a website will ever have served you. The maximum width control sits at 0, meaning keep the original size — set it if the form at the other end has a pixel limit.

One behaviour worth knowing: the AVIF decoder is strict, and when it rejects a file it returns nothing rather than raising an error, so the page reports the file as unreadable instead of guessing at it. That is nearly always a file that was renamed to `.avif` rather than converted into one. A folder of genuine AVIFs converts in a single pass and comes back as a ZIP.

How to turn an AVIF into a JPG

  1. Drop the AVIF here — it decodes in your browser, whatever your operating system supports.
  2. Leave the quality at 82, and set a background colour if the image has transparency.
  3. Download the JPG, which anything that reads pictures will open.

AVIF and JPG: a modern codec against a universal one

AVIF compared with JPG
AVIFJPG
Full nameAV1 Image File FormatJPEG Image
File extension.avif.jpg, .jpeg, .jpe
Media typeimage/avifimage/jpeg
CompressionEither, depending on the settingLossy — file size is bought with quality
First published20191992
Published byAlliance for Open MediaJoint Photographic Experts Group
SpecificationAV1 Image File FormatITU-T T.81
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth128
Colour it can describeRGB, YCbCr, wide gamutRGB, greyscale, YCbCr
Largest image65,536 px per side65,535 px per side
Opens in a browserCurrent browsersEvery browser
Considered insteadWebP, JXLWebP, HEIC

What is lost

JPG has no alpha channel. A transparent AVIF comes out with those areas filled in — white unless something else is set — and no setting in JPG brings the transparency back.

JPG holds a single still image. An animated AVIF keeps its first frame and loses the rest, so a conversion is a way to take a still out of one, not a way to move it.

AVIF carries up to 12 bits per channel and JPG stores 8. The extra precision is what survives heavy correction without banding, so the conversion is best made after the editing rather than before it.

Opening the result

JPG opens in every current browser. AVIF has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

GIMP reads both AVIF and JPG, so there is a way to check the result against the original without a second tool.

File size and quality

The file gets substantially smaller, and it gets smaller by discarding detail. AVIF keeps everything; JPG keeps what the eye is poor at noticing. On a photograph that trade is close to free; on text, a screenshot or a line drawing it is visible as haloing around the edges.

What each format is for

AVIF is Alliance for Open Media's format, published in 2019. It records 12 bits per channel.

JPG comes from Joint Photographic Experts Group and dates from 1992, specified as ITU-T T.81. Adobe Photoshop, GIMP and Preview all read it.

JPG was published in 1992 and AVIF in 2019. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

AVIF to JPG: quality, size and transparency

Are my AVIF files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is jSquash, WebAssembly builds of the reference image codecs; your browser fetches it once and caches it.

Does converting AVIF to JPG lose quality?

Yes, a little. The AVIF was already compressed lossily and JPEG compresses it again, so this is a second pass. At the default quality of 82 the difference is hard to see on a photograph; it shows first in smooth gradients and out-of-focus backgrounds, which is where AVIF was cleverest.

Why is the JPG bigger than the AVIF was?

Because AVIF is a far more efficient codec. The AVIF exists precisely because it was the smallest file the browser could be given, and a JPEG that looks the same is normally a good deal larger. The extra bytes are what the compatibility costs.

What quality setting should I use?

Leave it at 82 unless you have a reason. Do not carry AVIF instincts across: AVIF at quality 50 is often indistinguishable from the original, while JPEG at 50 is visibly damaged. Past about 90 the JPEG grows quickly for a difference nobody sees on a screen.

What happens to transparency?

It is filled with the background colour, which defaults to white, because JPEG has no alpha channel at all. If the image is a cut-out destined for a coloured page, set that colour here rather than repairing a white box afterwards.

Is the camera data kept?

No. The conversion decodes to pixels and encodes again, so the EXIF block does not survive the round trip whatever the switch says. If you need the capture date or the GPS coordinates in the JPEG, they have to come from the original file.

Is the file uploaded anywhere?

No. Both the AVIF decoder and the JPEG encoder run inside your browser tab on your own processor, so the picture never leaves the machine. A folder of files converts in one pass and comes back as a ZIP.

More about these formats

Where these figures come from

The claims this page makes about AVIF and JPG are checkable, and these are the documents that settle them.