Skip to content

Convert JPG to AVIF

Make photos as small as possible for fast pages.

From
To

AVIF files are small, but encoding is slow: large images can take from a few seconds to half a minute per file.

Pick your own format, quality and size

Drop JPG images here

PNG, JPG, WebP, GIF, SVG and more, as many as you like. You can also paste with Ctrl+V or ⌘V.

Advanced settings

Changing a setting switches to Custom.

60

Target file size isn’t available for AVIF yet. Choose JPG or WebP to use it.

Images are only made smaller, never larger.

Optional. Leave empty to keep each file’s own name. With “summer-sale” you get summer-sale-1, summer-sale-2 and so on.

Metadata such as EXIF and location is removed from every image. Photos keep their correct rotation.

How it works

  1. Add your images: choose files, drop them here or paste with Ctrl+V.
  2. Pixlune converts them right in your browser. Your files aren't uploaded to a server, so they stay private and it works even on a slow connection.
  3. Check how much each file shrank, then download them one by one or as a ZIP.

What we measured

We converted five JPG photos at this page’s default quality of 60 in Chrome 158 on an Apple M3 Mac. For comparison we also saved them with Pixlune as WebP at 80 and as JPG at 80.

JPG to AVIF on this page, compared with WebP and JPG (1 KB = 1000 bytes)
PhotoOriginal JPGAVIF 60WebP 80JPG 80AVIF time
Lake, 12 MP3,977 KB1,396 KB1,743 KB1,895 KB8.7 s
Mug, 8 MP1,363 KB73 KB151 KB322 KB2.1 s
Shoe, 7 MP1,670 KB97 KB159 KB270 KB2.5 s
Vase, 24 MP10.7 MB22 KB144 KB357 KB4.5 s
Lake, 1280 px web copy809 KB552 KB609 KB554 KB1.7 s

The gap was largest on smooth images: the vase photo on a plain background came to 22 KB as AVIF against 144 KB as WebP. On the 1280-pixel web copy of the lake, AVIF (552 KB) and JPG at 80 (554 KB) were almost the same size.

Times are for one file added on its own after the encoder had loaded, on our machine. Pixlune shows a note on large files because AVIF takes longer.

Photos (CC0, Wikimedia Commons): AutumnNY (lake), Daderot (mug), Wikipedia-ce (shoe), Jonas Salcedo (vase).

What happens to your file

The photo is decoded, turned upright if the camera stored it sideways, converted to sRGB and saved as AVIF. Width and height stay the same.

JPG is already lossy, so AVIF compresses an image that has lost detail once. Start from the best original you have, not from a JPG already compressed for the web.

In our test, no AVIF file kept the EXIF data or GPS location of its JPG.

When to use it

Use this when page speed matters most: hero images, product photos and image-heavy blogs. In our test, AVIF at quality 60 was smaller than WebP at 80 for all five photos and clearly smaller than JPG at 80 for four; for the web copy of the lake the two were almost the same size (552 and 554 KB). Keep a JPG copy for very old software or email.

Good to know

Converting an already compressed JPG to AVIF compresses it once more. Start from the highest-quality original you have.

Questions and answers

Why does AVIF take longer than WebP?
AVIF compresses more cleverly, and that takes more work. On our Apple M3 Mac in Chrome, a 1280-pixel web photo took 1.7 seconds and a 12 MP phone photo 8.7 seconds; slower devices take longer.
Can WordPress use AVIF?
Yes. WordPress 6.5 and later accept AVIF uploads, as long as the image library on your host supports AVIF (see the source below). If the upload fails, ask your host or use WebP.
Will my photos look worse as AVIF?
At the default quality of 60, our five test photos came out smaller than WebP at 80, and a simple pixel-difference measure (PSNR) put them as close to the original: within 0.3 dB for four photos and 1.6 dB closer for the fifth. That isn’t a test with human eyes, so if you see smoothing in skin or fabric, raise the quality in Advanced settings.
Does the AVIF file keep my photo’s location?
No. EXIF data, including GPS location and camera details, is removed, and the camera’s rotation is applied first so the photo stays upright.
Are my images uploaded to a server?
No. Pixlune converts and compresses images in your browser. Your files never leave your device, and nothing is kept after you close the page.
Is Pixlune free? Are there limits?
Pixlune is free, with no sign-up and no limit on the number or size of files. The only limit is your device's memory.

About the formats

What is JPG?

JPG (JPEG) is the most common format for photos. It makes files small by discarding detail you barely notice, and it doesn't support transparency. Every save at a lower quality loses a little more detail.

What is AVIF?

AVIF is a modern image format based on the AV1 video codec. It makes photos smaller than WebP or JPG at similar quality and supports transparency, but older programs can't open it yet.

Sources

  1. Make WordPress Core: WordPress 6.5 adds AVIF support (23 February 2024)
    “WordPress 6.5 supports AVIF, a modern image format that offers significant improvements”