Convert JPG to AVIF

Converting JPG to AVIF typically halves the file size at the same visible quality, which is the largest single win available in web image optimisation today. Drop the files above and they convert inside your browser. Encoding is slower than JPG because AVIF works harder — a cost you pay once and every visitor saves on every page load.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. AVIF cannot hold everything a JPG can.
  • File size limit Up to 100 MB per file, free, without an account.

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

What JPG to AVIF actually does

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

JPG9 KB

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

AVIF17 KB97% larger

A photographic scene — smooth gradients, soft edges, grain. This is the case AVIF 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 JPG.

JPG6 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 AVIF.

AVIF3 KB40% smaller

A transparent background and a gradient across the shape. AVIF 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 JPG.

JPG16 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 AVIF.

AVIF5 KB3.2× smaller

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.

Where the savings actually come from

JPEG was standardised in 1992 and its compression reflects what was computationally reasonable then: the image is cut into eight-by-eight blocks and each is described independently. AVIF is a still frame of AV1, a video codec from 2018, and it brings thirty years of subsequent research — variable block sizes, prediction from neighbouring regions, far better entropy coding.

In practice that means 40 to 50 per cent smaller at the same visible quality, and the gap widens on exactly the images that dominate most websites: photographs with large smooth areas. A sky, a plain wall, a blurred background — JPEG spends real bits describing each block of them and AVIF predicts almost the whole region from its edges.

The cost is encode time, and it is paid once

AVIF is slow to create. A large photograph takes a few seconds here where a JPG takes a fraction of one, because the encoder is searching a much larger space of ways to represent the image. On a batch of a hundred you will notice.

That cost falls entirely on whoever converts, once. Decoding is fast — visitors are not waiting for anything — and the saved bytes are saved on every request forever. For an image on a page that gets any traffic at all, the arithmetic is not close. For a one-off image in an email, it is not worth the wait, and JPG or WebP is the sensible answer.

AVIF or WebP

WebP is the safer, faster, slightly larger option; AVIF is the smaller, slower one. The gap between them is roughly 20 per cent in AVIF’s favour, which is meaningful on a photograph-heavy page and negligible on a site with a handful of images.

The real answer for anything production is both, inside a `<picture>` element: browsers take the first source they understand, so AVIF is served where it is supported and WebP or JPG elsewhere. That costs a few lines of HTML and removes the need to choose. If you are only going to produce one format, WebP for convenience, AVIF for weight.

The caveat about converting something already compressed

Your JPGs are lossy. Detail was discarded when they were made, and converting to AVIF now means encoding what survived — including, in principle, the JPEG artefacts themselves. Generation loss is real and this page will not pretend otherwise.

In practice it is not the problem it sounds like. At sensible quality settings the AVIF is visually indistinguishable from the JPG it came from while being half the size, because the savings come from a better representation rather than from throwing more away. Converting from an untouched original would be better; almost nobody has one, and this remains clearly worth doing.

Which quality number to use

AVIF numbers do not map onto JPEG numbers. An AVIF around 50 to 60 commonly matches a JPG at 80 to 85, so copying your habitual JPEG figure across usually means producing a file far larger than you needed.

Start lower than instinct suggests and compare. The place to look is not the whole image but the difficult regions: skin, a gradient sky, and any text inside the picture.

Where AVIF is not read

Every current browser reads AVIF and has done for several years. Outside the browser it is patchier than WebP: some image viewers, several editors and a number of upload forms still do not know it.

That makes AVIF a format for your own pages rather than for sending to people. If the file is going to a person rather than to a page, JPG remains the answer.

Transparency and animation both exist here

AVIF supports an alpha channel and sequences of frames, so unlike JPG it is not confined to opaque stills. None of that is relevant when the source is a JPG, which has neither.

It matters when you are choosing a target format for a whole site. One format can then cover photographs, logos with transparency and short animations, where JPG needs PNG and GIF standing beside it.

What happens to the EXIF

The format can hold EXIF; this conversion writes none. The JPG is decoded to pixels and the AVIF is encoded from those pixels, so the capture date, the camera model and any coordinates stop at the decode step. There is no setting on this page that changes that, because there is nothing in the encoder that would carry them.

For images going onto a public page that is the outcome you wanted, and it needs no second pass. Read the other way it is a loss with no remedy here: if the shooting data mattered, the JPG you started from is the only copy that still holds it, so keep that file rather than expecting the AVIF to give it back.

Converting a batch, and the time it takes

Drop a folder of up to a hundred and take the results as a ZIP. There is no queue and no daily allowance, because the encoding happens on your own machine.

That machine is also the constraint. AVIF encoding is the most demanding operation on this site, and a hundred large photographs is minutes rather than seconds. Start it and leave the tab open.

How to convert JPG images to AVIF

  1. Drop your JPG files onto this page — up to a hundred at once.
  2. Each is encoded as AVIF in your browser. Expect a few seconds per large photograph.
  3. Download them individually, or take the whole batch as a ZIP.

JPG vs AVIF: thirty years of compression research apart

JPG compared with AVIF
JPGAVIF
Full nameJPEG ImageAV1 Image File Format
File extension.jpg, .jpeg, .jpe.avif
Media typeimage/jpegimage/avif
CompressionLossy — file size is bought with qualityEither, depending on the setting
First published19922019
Published byJoint Photographic Experts GroupAlliance for Open Media
SpecificationITU-T T.81AV1 Image File Format
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth812
Colour it can describeRGB, greyscale, YCbCrRGB, YCbCr, wide gamut
Largest image65,535 px per side65,536 px per side
Opens in a browserEvery browserCurrent browsers
Considered insteadWebP, HEICWebP, JXL

What is lost

AVIF has nowhere to put IPTC fields, which hold captions, credits and keywords and the GPS coordinates, so those go no further than the JPG. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

What the target format adds

AVIF supports transparency and JPG does not. That is room the result has and the original never used — converting does not create a transparent background, it only makes one possible afterwards.

AVIF can hold animation; a JPG is one frame. The result is a single-frame file in a format that could hold more.

Opening the result

Current browsers read AVIF; older ones do not. It is the less portable of the two, so it is worth being sure the program at the other end accepts it before sending one.

AVIF is a container rather than a single format. What actually plays is the codec inside it — usually AV1 — which is why two files with the same extension can behave differently on the same device.

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

File size and quality

The result is larger than the original and no better. JPG has already discarded detail, and AVIF stores what is left without discarding more — it prevents further loss rather than undoing the first one.

What each format is for

JPG is Joint Photographic Experts Group's format, published in 1992. It records 8 bits per channel.

AVIF comes from Alliance for Open Media and dates from 2019, specified as AV1 Image File Format. GIMP, Squoosh and ImageMagick 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.

JPG to AVIF: common questions

How much smaller is AVIF than JPG?

Typically 40 to 50 per cent at equivalent visible quality, and more on photographs with large smooth areas — skies, walls, skin. It also beats WebP by roughly 20 per cent. Those margins are real and they are why it exists; they are also averages, and a small image with a lot of fine detail can come out closer to even.

Do all browsers support it?

Every current one does. Chrome, Firefox, Safari and Edge have all shipped AVIF, so a visitor on anything updated in the last few years sees it. The usual pattern is still to serve it inside a `` element with a JPG or WebP fallback, which costs nothing and covers the long tail of old devices.

Why is the conversion slow?

Because AVIF encoding is genuinely expensive — it comes from AV1 video compression, which spends a lot of computation to find those savings. A large photograph takes a few seconds here rather than the fraction of a second a JPG takes. That cost is paid once by you and saved on every visit by every visitor, which is the trade.

Does converting an already-compressed JPG make it worse?

A little, and it is the honest caveat on this page. Your JPG has already discarded detail, and re-encoding to AVIF discards a little more on top. At sensible quality settings this is not visible; the file gets much smaller and looks the same. Converting from an original PNG or RAW would be better, but almost nobody still has those, and the size win is worth having anyway.

Are my images uploaded?

No. The AV1 encoder runs as WebAssembly inside your browser, so the images stay on your machine. There is no account and no daily allowance: convert a hundred at once — the batch cap — and take them as a ZIP.

More about these formats

Where these figures come from

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