AVIF image audit
Use JPEG to AVIF conversion where it really speeds up the page
AVIF is most effective when used as part of an image audit rather than a blanket export. This guide helps identify JPEG photos suited for AVIF, select a review process, and avoid publishing smaller but visually inferior files.
Quick verdict
Convert exceptions only, not the entire media folder
The best JPEG-to-AVIF choice begins with page impact. Convert large photographic files that still slow the page after resizing. Keep routine thumbnails, UI screenshots, diagrams, and small assets on simpler formats.
Use AVIF when a hero or landing page photo still dominates file size after resizing and WebP export.
Test AVIF only if the current file remains significantly large or the page has a noticeable speed issue.
Avoid AVIF for small, mostly UI, text-heavy images, or when you can’t review the result before publishing.
Image audit first
Questions to consider before selecting AVIF
AVIF can deliver excellent results but isn’t a cure-all. The format only matters once the image is correctly sized, assigned an appropriate role, and reviewed within the actual layout visitors will see.
| Question | Why this matters | Action |
|---|---|---|
| Is the rendered size already correct? | AVIF won’t correct a 4000px image shown at 900px. | Resize first, then compare formats. |
| Does this image impact LCP or first impressions? | Large above-the-fold photos have greater impact than decorations deeper in the page. | Prioritise hero, landing, and campaign visuals. |
| Is the content photographic? | AVIF typically excels with photographs rather than flat UI elements or logo-style graphics. | Choose PNG, SVG, or WebP when sharp edges are more important. |
| Can you review the result in context? | AVIF may conceal artefacts until the image is placed in its final layout. | Check mobile width, gradients, faces, and cropping. |
| Is there a fallback option? | Not all environments handle modern formats identically. | Publish using picture markup or your framework’s equivalent. |
Candidate selection
Which JPEG images make good AVIF candidates?
Focus on images where a smaller file size affects the page, not just the file manager. The best candidates are typically photographic, visually significant, and large enough to impact perceived load speed.
LCP hero photo
A large photographic hero image that fills the initial viewport and remains sizeable after resizing is often the best candidate for AVIF.
Landing page campaign image
A campaign or product image may warrant additional scrutiny when it features prominently on the page and must remain visually sharp.
Editorial feature image
Use AVIF only when the image is large enough to impact performance, not simply because every article image is re-exported.
Text-heavy screenshots
Screenshots, UI captures, diagrams, and icons often lose text clarity before benefiting from AVIF compression.
Quality review
Avoid copying quality settings between AVIF tools
AVIF quality settings vary between encoders. A value that looks good in one may be too soft or harsh in another. Begin with the tool’s default or a mid-range quality, then assess the output on the actual page.
The aim isn’t the smallest AVIF file possible, but the smallest file that still supports the page: clear detail, acceptable gradients, no distracting texture loss, and no visible colour shift.
- Compare with the resized JPEG or WebP, not the original camera file.
- Inspect the image at rendered desktop size and mobile width.
- Check faces, skies, gradients, shadows, fine textures, and brand colours.
- Ensure the file loads correctly on the intended published page.
Visual failure modes
AVIF artefacts to check before publishing
A well-exported AVIF can appear outstanding. A poor one may fail subtly: the file size is reduced, but the image looks flat, blurred, or grainy in the area users notice first.
Delivery
Publish AVIF with a fallback, not as a blind swap
For key page images, maintain predictable delivery. Use AVIF first if supported, retain a WebP or JPEG fallback, specify width and height, and avoid late layout size discovery by the browser.
Only preload an AVIF if it is genuinely the LCP image. Preloading every converted asset may slow the page rather than speed it up.
<picture>
<source srcset="/images/landing/hero.avif" type="image/avif">
<source srcset="/images/landing/hero.webp" type="image/webp">
<img
src="/images/landing/hero.jpg"
width="1600"
height="900"
alt="Product photo in the landing page hero"
loading="eager"
fetchpriority="high">
</picture>Privacy and control
Keep unreleased campaign images out of random upload processes
Large JPEG photos often aren’t neutral files. They may include unpublished products, client work, location hints, staged campaign content, or filenames revealing internal details. Uploading them to a converter should be a conscious choice, not automatic.
A local workflow maintains source files, output names, and review stages close to the project, which is particularly helpful when multiple export attempts are needed to perfect a landing page’s visual balance.
Practical workflow
A consistent JPEG-to-AVIF process without making every image a separate project
- 01
Select only the largest candidates
Begin with a shortlist of large JPEG photos that remain significant after standard resizing and WebP export.
- 02
Export AVIF variants separately
Store AVIF output in a dedicated folder to keep source JPEGs and routine WebP files easy to compare.
- 03
Review in the actual page
Insert the candidate into the actual component or template and review the visible result, not just the converter preview.
- 04
Publish with fallback markup
Serve AVIF where supported and maintain WebP or JPEG fallback for consistent behaviour.
- 05
Record the rule
Record which image roles use AVIF to avoid guesswork in future updates.
Format boundary
Use WebP as the baseline and AVIF as the advanced option
An effective workflow typically includes a default and an exception route. WebP serves as the default for standard website images due to its practicality and broad support. AVIF is used when a large photographic image remains too heavy.
This boundary keeps the article workflow efficient while allowing you to rescue images that dominate weight or LCP.
Pre-publish checklist
Check this before swapping JPEG for AVIF
Frequently Asked Questions