Guide
Modern image formats can halve your page weight. Here is how they compare, how browsers pick them, and how to use them without a CDN.
Images are usually the heaviest part of a page. Switching from JPEG and PNG to modern formats is one of the simplest ways to make pages lighter—often with no visible difference.
| WebP | AVIF | |
|---|---|---|
| Typical saving vs JPEG | About 25–35% | About 40–50%, sometimes more |
| Browser support | All modern browsers | All current major browsers |
| Encoding speed | Fast | Slower—better done once, in the background |
| Transparency | Yes | Yes |
The best setup serves AVIF where the browser accepts it, WebP otherwise, and the original as a final fallback.
Use a <picture> element with <source type="image/avif"> and <source type="image/webp"> before the original <img>. Each browser picks the first format it supports. Keep srcset and sizes on every source so phones get small files.
WordPress accepts WebP and AVIF uploads, and with a code filter or Google’s Performance Lab plugin it can create modern-format copies of new uploads. It doesn’t convert the images you already have, or offer both formats with a fallback. Most sites use a plugin or a CDN for that.
You don’t need an image CDN. If your PHP has GD or Imagick with WebP/AVIF support (most hosts do), images can be converted in the background in small batches, without slowing the site down. Keep the originals, so you can always go back.
FastFront converts your images to WebP and AVIF on your own server in the background, serves them with fallbacks through <picture>, sizes them per device, lazy-loads images below the fold and preloads the hero with a blurred preview. Your originals are never changed.
See your own site’s score next to an optimized copy—free, in about a minute.
We’d like to use Google Analytics cookies to see how visitors use this site. They load only if you accept. Privacy