Automated Tools to Audit Images for AVIF
This article examines the primary automated auditing tools used to identify opportunities for converting unoptimized images to the modern AVIF format. Modern websites frequently suffer from degraded performance due to legacy JPEG, PNG, or even older WebP files that consume excessive bandwidth. By integrating automated performance and site-crawling utilities into your workflow, you can programmatically detect inefficient media assets, calculate potential byte savings, and streamline your asset delivery to boost Core Web Vitals.
Google Lighthouse and Chrome DevTools
Google Lighthouse is the standard automated auditing tool for web performance, available directly inside Chrome DevTools, as a CLI tool, or via Node modules.
Under the "Opportunities" section of its performance report, Lighthouse runs the audit titled "Serve images in next-gen formats." This audit flags all JPEG, PNG, and GIF images on a page that could be significantly reduced in size by converting them to AVIF or WebP. Lighthouse estimates the exact kilobyte savings per image by testing alternative compression levels, allowing developers to see the immediate impact AVIF adoption would have on load metrics such as Largest Contentful Paint (LCP).
Google PageSpeed Insights
PageSpeed Insights (PSI) provides a hosted, automated interface that executes Lighthouse audits across both mobile and desktop profiles.
PSI requires zero installation: entering a URL generates an automated report listing specific image URLs that should be transitioned to AVIF. Because PSI tests under defined mobile throttling conditions, it highlights the real-world latency penalties caused by uncompressed legacy formats.
Lighthouse CI (LHCI)
For automated prevention rather than periodic checks, Lighthouse CI integrates directly into continuous integration and deployment (CI/CD) pipelines, such as GitHub Actions or GitLab CI.
LHCI automates the "Serve images in next-gen formats" check against every pull request or build. Teams can configure assertion rules that automatically fail a build if an unoptimized image exceeds a specified byte threshold, preventing unoptimized media from ever reaching production.
WebPageTest
WebPageTest offers advanced automated performance diagnostics with deeper network packet analysis than standard browser reports.
Its automated test runs include a dedicated Image Analysis section. WebPageTest checks each image against modern compression standards and models how much bandwidth would be saved by transcoding each asset to AVIF. The platform provides detailed visual comparisons and waterfalls demonstrating how converting the images would accelerate render milestones.
Cloudinary Website Image Analysis Tool
Cloudinary provides an automated, free image-auditing utility specifically tailored to media assets.
When you submit a URL, the tool crawls all visual assets on the page and tests each one against optimal modern formats, including AVIF. The generated report categorizes issues by format, compression efficiency, and color profile usage, showing the current file size alongside the projected AVIF file size and the percentage of data saved.
DebugBear
DebugBear is an automated site-monitoring platform that runs scheduled Lighthouse-based audits across multiple global locations.
It continuously monitors pages for unoptimized images and alerts teams when new assets bypass next-gen compression practices. DebugBear tracks image weight over time, alerting engineers if recent site updates introduced non-AVIF images that degraded site speed.