Convert JPG to AVIF
Turn JPG photos into AVIF. Same size, turned upright by the orientation tag, with CMYK made RGB.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JPG files on the dialor turn it to pick what to do
A JPG re-encoded as AVIF.The picture keeps its width and height. It is compressed again at quality 60.
What you get
One AVIF file with the same width and height as the JPG. The result is usually half the size of the JPEG or less.
If the JPG carries an orientation tag, the AVIF comes out turned upright. A CMYK JPG is made RGB.
What changes
AVIF compression is lossy, so the picture is compressed a second time and some detail is lost. Quality 60 is the default. Set Quality higher to keep more detail, at the cost of a bigger file. Above 90 the file grows quickly while the picture barely changes.
JPG has no transparency, so the AVIF has none to carry over.
Size and turning
Set Max width or Max height to shrink a large picture. Each one keeps the shape of the picture. A picture that is already smaller stays as it is, so nothing is enlarged.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees. To resize without changing the format, see resize JPG.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted. That code means the JPG itself could not be read.
JPG and AVIF.What each format is, and the options this conversion takes.
- 01 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 02 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 60 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
AVIF
AV1-based images with better compression than WebP and support for HDR and alpha.
- Extensions
- .avif
- MIME type
- image
/avif - Kind
- Images
In your code.The same JPG to AVIF conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.avif$ cv convert photo.jpg photo.avifQuestions.What people ask about JPG to AVIF.
Yes, unless you set Max width or Max height. Then only pictures larger than the limit are shrunk, and their shape is kept.
Usually half the size of the JPEG or less, at the default quality of 60. A higher Quality makes a bigger file.
Yes. The conversion is lossy, so some detail is lost compared with the JPG. A higher Quality keeps more of it.
Yes. AVIF to JPG converts it the other way, though that is another lossy step.