Rasp

Convert JPG to AVIF

The smallest modern image format, encoded on your own machine. Nothing is uploaded, and there's no size limit.

Ready
Uploaded0 B

What next

How do I convert JPG to AVIF?

To convert a JPG to AVIF, drop the file onto this page and download the AVIF it returns. Everything runs in your browser, so nothing is uploaded. AVIF compresses far harder than JPG: on our fixed test image a 375 KB JPG became a 102 KB AVIF, about 73% smaller, at the same default quality setting.

How to do it

  1. Open the converter. Open this page in any modern browser. The AVIF encoder is downloaded on first use and then cached.
  2. Add your JPG files. Drag them onto the panel or click to choose. There is no upload, so no queue and no size cap.
  3. Set a quality. 82 is the default. AVIF holds up at lower settings than JPG does, so try dropping it further than you normally would.
  4. Wait, then download. AVIF encoding is genuinely slow — expect a few seconds for a large photo. It runs in a Web Worker, so the page stays responsive.

At a glance

ConvertsJPG to AVIF
TransparencyPreserved
CompressionLossy — quality is adjustable, default 82
Where it runsIn this browser tab. The file is not uploaded
File size limitNone imposed — your device memory is the ceiling
CostFree
Account neededNo
WatermarkNone
Works offlineUsually after first use, but not guaranteed — there is no offline app

What it actually produces

Measured, not estimated. A procedurally generated 2400×1600 (3.8 MP) test image built to carry photographic entropy: value noise across nine octaves down to near-pixel scale, a dense field of small high-contrast features, a smooth gradient, hard edges and light grain. It is not a photograph — it is reproducible, which a photograph is not. Each figure below comes from running that image through this page.

InputOutputChange
375 KB102 KB73% smaller

Your own files will differ — a photograph, a screenshot and a diagram compress very differently. The point of a fixed image is that the formats can be compared with each other, not that your result will match.

Why is AVIF so much smaller?

AVIF is a still image wrapped in the AV1 video codec. That sounds like a technicality and is in fact the whole explanation: AV1 was designed by a consortium including Google, Netflix, Amazon and Mozilla to cut streaming bandwidth, and it brings a decade of compression research that JPEG, published in 1992, does not have.

The result on our fixed test image: 375 KB as JPG, 102 KB as AVIF. Around 73% smaller for the same visual content — a bigger saving than WebP managed on the same file.

What does that cost?

Time. AVIF encoding is by a wide margin the slowest operation on this site, because the search for an efficient encoding is exactly what produces the small file. A large photograph takes seconds rather than milliseconds.

That is fine for images you encode once and serve many times, which is what web images are. It is a poor trade for a one-off conversion you need immediately.

Where AVIF still does not belong

Browser support is now broad — Chrome, Edge, Firefox, Opera and Safari all handle it. Outside the browser it is another story: most desktop photo software, most print workflows and most upload forms still reject AVIF.

Use it for images on a site you control. Use JPG for anything that has to open on someone else’s machine.

A note on converting old JPGs

Converting an existing JPG to AVIF does not improve it. The detail the JPG discarded is gone, and AVIF cannot invent it back.

What you get is the same picture, stored far more efficiently. If you still have the original camera file, converting that to AVIF gives a better result than converting the JPG you made from it.

Questions

How much smaller is AVIF than JPG?
On the fixed test image used for every measurement here, a 375 KB JPG became a 102 KB AVIF — about 73% smaller — at the same default quality. That is a much larger saving than WebP managed on the same image, which was 40%.
Which browsers support AVIF?
Chrome, Edge, Firefox, Opera and Safari all support it, as do their mobile versions. Safari support arrived in 2022, so AVIF is safe for general web use now but is less forgiving than WebP if your audience runs old devices.
Why is AVIF encoding so slow?
Because AVIF is built on the AV1 video codec, which spends far more computation searching for an efficient encoding than JPEG does. That search is exactly where the file size saving comes from. It runs in a Web Worker here so the page stays responsive while it works.
Should I use AVIF or WebP?
AVIF for maximum saving, WebP for speed and slightly broader compatibility. Serving both from a picture element and letting the browser choose is better than picking one. If you must pick one and your audience is current, AVIF wins on size by a wide margin.
Will converting an old JPG to AVIF make it look better?
No. AVIF cannot recover detail the JPG discarded. It can store what remains far more efficiently, so you get the same picture in a much smaller file — but the ceiling is whatever your JPG already contained.
Is my image uploaded anywhere?
No. Both decoding and encoding run in this browser tab. The Uploaded readout beside each result measures the page's own outbound traffic, so a successful conversion shows 0 B.
Does AVIF support transparency?
Yes, and HDR and wide colour gamut too. A JPG source has none of these to carry across, but the format itself supports all of them.
Is there a file size limit?
None imposed. There is no upload and no server, so the ceiling is your device's memory. Very large images are slow to encode rather than rejected.
Can I batch convert?
Yes, though AVIF is the slowest encoder on this site. Converting dozens of large photographs at once will take real time — work in smaller batches if you want to watch progress.
Will there be a watermark?
No. Nothing is added to the image and no feature is held back.
Should email attachments and print files be AVIF?
No. Outside the browser, AVIF support is thin — most desktop photo software and almost all print workflows will reject it. Use JPG for anything you hand to another person.
What quality setting should I use?
Start at the default 82 and try going lower. AVIF degrades far more gracefully than JPG, so settings that would look obviously damaged in a JPG often remain acceptable, which is where the biggest savings are.

About these formats

Sources

Related tools