
A modern image format test lists every image on a page that is still served as JPG, PNG, or GIF when WebP or AVIF could deliver the same picture in fewer bytes. According to Google, lossy WebP files are 25–34% smaller than comparable JPEGs, and web.dev reports AVIF savings of more than 50% against JPEG in its own tests. When the heaviest file on the page is also the hero image, converting it is one of the fastest ways to improve Largest Contentful Paint.
Below: what counts as a modern format, how to test a page, what to convert first, and how to serve WebP and AVIF without breaking anything.
What are modern image formats?
Modern image formats are WebP and AVIF, two compressed formats that current versions of Chrome, Edge, Firefox, and Safari all support. They handle photos, graphics, and transparency with better compression than JPEG, PNG, and GIF, which date from the late 1980s and 1990s.
JPEG
Best for: Photos
Notes: Universal, but larger than WebP or AVIF at the same quality
PNG
Best for: Graphics that need transparency
Notes: Lossless and often very large for photos
GIF
Best for: Simple animation
Notes: Very inefficient; a short video file is usually far smaller
WebP
Best for: Photos and graphics, with or without transparency
Notes: Google: lossless 26% smaller than PNG, lossy 25–34% smaller than JPEG
AVIF
Best for: Photos and large hero images
Notes: web.dev reports greater than 50% savings vs JPEG; slower to encode
SVG
Best for: Logos, icons, simple illustrations
Notes: Vector, so leave it as SVG rather than converting
Exact savings depend on the image and the quality setting. Treat the published figures as a guide and measure your own files before and after.
How do you test a page for modern image formats?
Test a page by loading the live URL and checking the format of every image the browser actually receives. The file extension in your CMS can be misleading, because many CDNs and image plugins convert on the fly.
- Paste the URL into the Modern Image Format Test. It lists each image with the format that came back and flags the ones still using legacy formats.
- Start with the images at the top of the page: the hero, the logo if it is a PNG photo, and the first product or gallery images.
- Check the page's LCP element. If it is an image, converting it has the most direct effect on the metric. The LCP element guide shows how to find it.
- Check that the image dimensions match the displayed size. The Responsive Image Test flags files much larger than the space they fill.
Which images should you convert first?
Convert the images that are both large and near the top of the page first, because they affect loading speed the most. After that, fix repeated templates such as product thumbnails, where one pipeline change covers hundreds of files.
- Hero and banner photos saved straight from a camera or stock site as large JPEGs.
- PNG photos. PNG is the wrong format for photographs, and these are often the biggest savings on the page.
- Animated GIFs used as short videos. Replace them with an MP4 or WebM loop and a poster image.
- Product and gallery thumbnails that are all served as full-size JPEGs.
- Blog featured images uploaded at full resolution by different authors over the years.
How do you serve WebP and AVIF safely?
Serve modern formats with a fallback, either through the HTML <picture> element or through an image CDN that picks the format based on what the browser supports. Current browsers support both formats, but a fallback costs little and protects older devices and email previews.
- Use
<picture>for hand-built templates. List an AVIF source, then WebP, then a JPEG in the<img>. The browser uses the first one it supports. - Or let your platform do it. Shopify, many WordPress image plugins, and most image CDNs convert automatically and serve the right format per browser. Confirm it works by testing the live URL rather than trusting the settings page.
- Convert on upload, not by hand. Set up the build step, plugin, or CDN so every new image is converted. One-off manual exports get forgotten within a month.
- Pick a sensible quality. If WebP looks soft, raise the quality setting before you blame the format.
- Keep width and height attributes. Swapping formats must not remove the dimensions that stop the layout from jumping. The CLS deploy checklist explains why.
What mistakes keep legacy formats on a site?
Most sites that "already converted" still serve legacy files somewhere, because the conversion only covered part of the pipeline. These are the gaps a live test usually finds:
- CSS background images, which many plugins skip.
- Images added by page builders, sliders, or third-party widgets that bypass the media library.
- A CDN that converts but also caches the old JPEG for some visitors.
- Only WebP served with no fallback, then a broken image in an old in-app browser.
- Converting the format but still serving a 4000px file into a 400px slot.
Do modern image formats affect SEO?
Image format isn't a ranking factor on its own. It matters because smaller images load faster, and a faster LCP image improves a Core Web Vital that Google's systems use. Google's image SEO documentation lists WebP and AVIF among the supported formats for Google Images, alongside JPEG, PNG, GIF, and SVG, so converting doesn't cost you image search visibility.
Modern image format FAQ
Is WebP or AVIF better?
AVIF usually compresses photos further than WebP, and web.dev reports savings of more than 50% against JPEG. AVIF is slower to encode, and some tools handle it less well. Many sites serve AVIF first with WebP as a fallback, then JPEG for anything older.
Do all browsers support WebP and AVIF?
Current versions of Chrome, Edge, Firefox, and Safari support both formats. Older browser versions and some embedded browsers may not, which is why a fallback through the picture element or an image CDN that negotiates the format is still the safe approach.
Should I convert my logo to WebP?
If your logo is an SVG, keep it as an SVG, because vector files stay sharp at every size and are usually tiny. If your logo is a large PNG, converting it to WebP or exporting it as an SVG will usually shrink it a lot.
Will converting images change my image URLs?
It can. If the file name changes from .jpg to .webp, image search may treat it as a new image. Using the picture element or a CDN that serves different formats from the same URL avoids that. If URLs do change, update your image sitemap if you have one.
Does converting images fix LCP on its own?
Only when the image download is the slowest part of LCP. If the image is discovered late, lazy-loaded, or blocked by CSS and scripts, a smaller file helps less. Check the LCP breakdown before you expect a big change from conversion alone.
Find the heaviest legacy file on your home page: run it through the Modern Image Format Test and convert whatever sits at the top of the list first.
PositionMySite is a North American software company in Toronto and Tampa, building for the web since 2009. SEO Site Signals is our free-tool and site-audit product, and the image format test here comes from the same in-house team that builds the paid monitoring dashboard. The free checks exist so a small team can find what is weighing a page down without signing up for an enterprise suite.
Last updated: September 25, 2026 | Author: David Dayan | Sources: Google for Developers, "An image format for the Web" (WebP); web.dev, "Using AVIF to compress images on your site"; MDN, "Image file type and format guide"; Google Search Central, "Google image SEO best practices".