JPG vs AVIF: technical differences
To convert JPG to AVIF, drop your JPG file into the converter above and download the AVIF: a modern format, usually smaller than JPG and WebP at the same quality, that supports transparency. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
AV1's intra-frame coding uses blocks from 4×4 up to 64×64 (and beyond), many prediction directions and strong in-loop filtering. Compared with JPG's fixed 8×8 grid, that typically halves file size at a similar perceived quality — a 3 MB photo might become 1 MB or less. Where JPG breaks down into blocks and ringing, AVIF smooths, which makes over-compression look soft rather than broken.
The JPG is already lossy, so AVIF is encoding an image that contains JPG artifacts. AVIF's smoothing can actually hide mild 8×8 blocking, but it cannot restore lost detail. Although AVIF supports 10/12-bit HDR, Pixohub's 8-bit canvas produces standard 8-bit AVIF — fine for the 8-bit data a JPG contains.
| JPG (JPEG (Joint Photographic Experts Group)) | AVIF (AV1 Image File Format) | |
|---|---|---|
| Compression | Lossy (8×8 DCT blocks, quantisation, chroma subsampling) | Lossy or lossless (AV1 intra-frame in a HEIF container) |
| Colour depth | 8 bits per channel; RGB/YCbCr, greyscale or CMYK | 8, 10 or 12 bits per channel; HDR and wide gamut capable |
| Transparency | None | Full alpha channel |
| Animation | None | Yes (image sequences) |
| Metadata | EXIF, IPTC, XMP, ICC profile | EXIF, XMP, ICC / CICP colour signalling |
| Typical file size | Smallest of the classic formats for photos | Usually the smallest — often half a JPG at similar quality |
| Support | Universal — every browser, camera and device | Chrome, Edge, Firefox and Safari 16+; patchy in older desktop software |
When to convert JPG to AVIF
Photographers' portfolio and gallery pages
Large full-screen photos are the heaviest thing on most portfolio sites. AVIF lets a photographer keep generous display sizes while sending far fewer bytes. Check skin and foliage at 100% zoom — those are where AVIF's smoothing shows first.
News and blog sites with many images per article
A long article with twenty JPG photos can weigh several megabytes. Serving AVIF (with a JPG fallback in a picture element for unusual browsers) cuts that substantially, which matters most for readers on mobile data.
Archiving a personal photo collection to save space
Some people re-encode old JPG libraries to AVIF to free storage. It works, but it is a one-way trip: the AVIF is a second lossy generation and fewer programs can open it. Keep the original JPGs if you have room.
What converting JPG to AVIF keeps and loses
What you keep
- Pixel dimensions, with the camera's orientation applied.
- Overall appearance at 85% quality, with any loss showing as slight softening rather than blocks.
What you lose
- Some fine texture, since it is a second lossy encode.
- All EXIF, GPS, IPTC and XMP metadata, plus embedded ICC profiles.
- Broad software support: AVIF displays in current browsers but many editors, email clients and upload forms do not accept it.
Our test: JPG to AVIF on two real files
The photo went from 425 KB to 292 KB, a 31% cut, and the graphic from 43 KB to 16 KB, a 64% cut. Fidelity stayed high: 45.53 dB and SSIM 0.9935 on the photo, a clearly smaller second-generation loss than JPG to WebP showed (40.3 dB) on the same file. At 85% libavif keeps more of the JPG's own detail and noise, which costs bytes; lowering the quality is where AVIF's larger savings come from.
Encoding took 7.0 seconds for the photo and 2.1 for the graphic, because Chromium cannot write AVIF itself and Pixohub runs libavif as WebAssembly.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | JPG in | AVIF out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 425 KB | 292 KB (−31%) | SSIM 0.994 · 45.5 dB | None in source | Removed | 7.0 s |
| Graphic, 800 × 600, transparent | 43 KB | 16 KB (−64%) | SSIM 0.997 · 47.5 dB | None in source | None in source | 2.1 s |
Last updated
Apps and sites that work with JPG and AVIF
Viewing AVIF on desktop
Chrome (from 85), Firefox (from 93) and Edge (from 121) display AVIF, and current Safari does too. GIMP opens and exports it from 2.10.22. On Windows, the Photos app and File Explorer thumbnails rely on Microsoft's AV1 Video Extension from the Microsoft Store, so a blank thumbnail usually means that extension is missing.
Publishing on WordPress
WordPress 6.5 and later accept AVIF uploads when the host's GD or Imagick library supports the format; Tools › Site Health › Info › Media Handling lists what your server can process. Without that support, WordPress cannot generate the thumbnail sizes, so a JPG or WebP remains the practical upload.
Encoding a whole library
For more than a handful of photos, libavif's avifenc accepts JPG input and can be scripted, and it can keep EXIF and XMP, which this browser conversion strips. That matters for a personal archive, where capture dates drive how photo apps sort the collection.
Common JPG to AVIF problems and fixes
The page seems frozen while converting
AV1 encoding in single-threaded WebAssembly is slow: our 1600 × 1200 test took seven seconds on an M2 Mac, and an older laptop or phone will take longer. The tab is working, not hung. Above 4 megapixels Pixohub switches libavif to a faster setting; resizing a 12-megapixel photo to its display size first is the bigger time saver.
The AVIF is barely smaller than the JPG
At 85% the encoder preserves the source's grain and JPG noise, and a well-compressed JPG has little left to give. Our photo shrank 31%. Try 65–70%: AVIF degrades into softness rather than blocks, so it holds up at settings that would ruin a JPG. If the result is still not worth the compatibility cost, keep the JPG.
Photo apps sort the converted files wrongly
The AVIF has no EXIF, so the capture date is gone and apps fall back to the file's modification date, which is the day you converted it. A library converted in one sitting then appears as one day's photos. Keep the original JPGs alongside, or use a tool that copies metadata if the AVIFs are meant to replace them.
Tips for better JPG to AVIF results
- AVIF export takes several seconds in Chrome, Firefox and Edge, which use a bundled WebAssembly encoder (Safari has its own). If the AVIF is not clearly smaller than your JPG, JPG to WebP is the faster, more compatible option.
- Start at 70–80% for web photos; AVIF holds up at lower settings better than JPG does.
How this converter works
Pixohub decodes your JPG and encodes the AVIF entirely inside your browser. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.