---
title: WebP and AVIF on WordPress: what to convert, and what not to
description: Modern image formats can halve page weight. What WordPress supports natively, how browsers handle WebP and AVIF, and the settings that matter more than the format.
url: https://ironhelmsuite.com/blog/webp-avif-wordpress/
---

# WebP and AVIF on WordPress: what to convert, and what not to

Modern image formats can halve page weight. What WordPress supports natively, how browsers handle WebP and AVIF, and the settings that matter more than the format.

Published 2026-07-22 in Performance.

Images are usually the heaviest part of a WordPress page, and the main image is very often the element that decides Largest Contentful Paint. Switching to modern formats is one of the few speed improvements that needs no design change at all.

## Where WordPress stands

WordPress has supported uploading and processing WebP images since version 5.8 in 2021. AVIF followed in WordPress 6.5 in April 2024. In both cases, support depends on the image library on your server: WordPress uses Imagick or GD, and if the installed version cannot read or write a format, WordPress cannot either. The AVIF announcement on the WordPress core blog says this explicitly.

Supporting a format is not the same as using it. WordPress does not convert your JPEG uploads to WebP or AVIF unless something tells it to, through a filter or a plugin.

## WebP or AVIF?

**WebP** is supported by every current major browser and is the safe default. Google's own measurements put lossy WebP at roughly 25 to 34 percent smaller than comparable JPEG.

**AVIF** usually compresses further, especially for photographs, and is supported by current versions of Chrome, Edge, Firefox and Safari. The trade-offs: encoding is slower and uses more server memory, which matters on shared hosting when you upload a batch of large photos, and very fine detail sometimes softens at aggressive settings.

Our practical advice: serve WebP everywhere, consider AVIF for large photographic images if your server handles it comfortably, and keep the original JPEG or PNG for anything that needs it.

## What to convert, and what not to

- **Convert** photographs, hero images, product shots and blog images.
- **Think twice** about logos and icons. They are often better as SVG (cleaned, see our SVG article) or small PNGs.
- **Do not bother** with tiny images under a few kilobytes; the saving is negligible.
- **Never delete the originals.** If a browser, email client or social network cannot show the new format, the original is the fallback.

## Settings that matter more than the format

A huge image in a modern format is still a huge image. Before worrying about AVIF:

1. **Upload at a sensible size.** A 6000-pixel camera photo shown at 1200 pixels wide wastes most of its bytes. WordPress already scales uploads above 2560 pixels, but smaller is often better.
2. **Let the browser pick a size.** WordPress adds `srcset` so phones download smaller versions. Themes that hard-code full-size images defeat it.
3. **Do not lazy-load the main image.** WordPress lazy-loads images by default, and since version 6.3 it tries to skip the first large image and mark it with `fetchpriority="high"`. Builders and sliders sometimes undo this, delaying the image that matters most.
4. **Strip camera metadata.** Photos from phones can include GPS coordinates. Removing EXIF data saves a little weight and protects privacy.

## In Ironhelm

Images and media converts images to WebP on your own server, with no paid service, shrinks oversized uploads, removes camera and location data, loads the main image first, and loads YouTube and Vimeo players only when someone clicks. The CDN feature can serve the results from servers near each visitor.

## Sources

- Make WordPress Core, [WordPress 6.5 adds AVIF support](https://make.wordpress.org/core/2024/02/23/wordpress-6-5-adds-avif-support/) (February 2024)
- Make WordPress Core, [WebP support in WordPress 5.8](https://make.wordpress.org/core/2021/06/07/wordpress-5-8-adds-webp-support/) (June 2021)
- Google for Developers, [An image format for the Web: WebP](https://developers.google.com/speed/webp)
- web.dev, [Optimize Largest Contentful Paint](https://web.dev/articles/optimize-lcp)
- Can I use, [AVIF image format](https://caniuse.com/avif)
