Blog / Technical SEO /
Image formats: WebP, AVIF and when JPEG is fine
You upload a lovely product photo, and the page crawls. Someone tells you to switch to AVIF. Someone else says WebP. Your designer still sends JPEGs.
Who’s right? Usually all of them, a bit. WebP and AVIF can cut file size, and JPEG is still perfectly practical for many photographs. The right choice depends on quality, browser support, your workflow and how your site serves the file.
The aim is simple: deliver an image that looks good at the size it appears, without making visitors download more than they need. Test real files on the real page. Don’t convert everything on principle.
JPEG: familiar and still useful
JPEG works well for photographs and almost everything can open it. The trade-off is lossy compression. Push it too far and you get blocks, banding and muddy detail, especially around text and sharp edges.
For an ordinary product photo, a well-exported JPEG is a sensible choice. I’d match the dimensions to the display size and compress until the file is smaller with no visible damage at normal viewing. Keep the original source so you can re-export if needed.
JPEG does not support transparency. If you need a transparent background, use a format that does, such as PNG, WebP or AVIF, depending on your platform and compatibility needs.
WebP: broad support and good compression
WebP handles lossy and lossless compression, transparency and animation. Modern browsers support it, and it often gives smaller files than JPEG or PNG at similar quality. Many tools and platforms create or serve it automatically.
That last bit matters. The format in your media library may not be what each visitor receives. Check the network panel to see what the browser actually gets. Some hosts serve a modern format when the browser supports it and fall back when it doesn’t.
When converting, compare the image at its intended display size. A lower file size is useful only if details still look right. Fine product texture, small text or edges against a transparent background may expose artefacts.
AVIF: smaller files, more workflow questions
AVIF compresses strongly and supports transparency, but encoding and tool support can be awkward in some workflows. Browser support has improved. Older software, editors and site pipelines may still struggle. Test your publishing process, not just the browser you use every day.
As of February 2024, WordPress does not yet provide native AVIF support in its core media handling; that arrives later. A host or plugin may offer its own route, but check compatibility before changing your upload process. If your team can’t reliably create, preview and serve the files, a saving on paper isn’t worth the extra complexity.
Choose by image type and site needs
A practical decision tree:
- Photographs: compare a good JPEG export with WebP or AVIF at the same visible quality.
- Transparent graphics: use a format that supports transparency and check the edges against both light and dark backgrounds.
- Logos and simple illustrations: consider SVG where supported and appropriate, or a lossless raster format if not.
- Older or specialised workflows: favour the format your CMS, CDN and editing tools reliably support.
Don’t convert every image just because a plugin has a bulk button. I don’t trust a one-click fix for a catalogue full of photos, icons, diagrams and transparent cut-outs. They don’t all have the same needs.
The bigger wins are usually elsewhere
Format is only one part of image optimisation. Resize to a sensible width, compress, use a meaningful filename and write alt text that says what the image is for. Use responsive sizes so a phone doesn’t download a desktop-sized file. Lazy-load below-the-fold images, but never the main image at the top.
After a bulk conversion, check a sample of pages on mobile and desktop. Inspect the first meaningful image, any product gallery and transparent graphics. Look for broken assets, wrong crops, blank backgrounds and unnecessarily large files. Keep a rollback or original files until you know the new pipeline works.
Use a repeatable comparison
When comparing formats, save each version at the dimensions your site needs. Compare file size, then look at the image at its displayed size on a normal screen and on a phone. Zoom in on what matters: text on packaging, fine lines, hair, foliage, transparent edges. A file that looks fine as a thumbnail can show ugly artefacts once a customer zooms in.
Keep a note of the encoder and quality setting used. That makes the result reproducible and helps if a later edit changes the appearance. Avoid judging the result only by file size or by magnifying it far beyond the normal viewing size; the goal is a good experience in context.
FAQ
Is AVIF always better than WebP?
No. It may create a smaller file for a given image and quality target, but tooling, compatibility and visual results matter. Compare the actual output.
Should I use JPEG for every photograph?
Not necessarily. WebP and AVIF may reduce file size, but JPEG remains compatible and can still be the simplest choice for a reliable workflow.
Does changing format improve rankings?
It can reduce image weight and support a faster experience, but format alone does not guarantee better rankings. Measure the page and inspect the full performance picture.
Related reading
- Image SEO on WordPress: file names, alt text and size
- Lazy loading images: when it helps and when it hurts LCP
Which page on your site has the heaviest images? Compare two formats at the displayed size and keep the one that balances quality, delivery and a workflow your team can maintain.