Free Image Converter & Compressor

How to Use WebP Images in WordPress

By DS Global Products, operator of webpconvertapp.com · Last updated: November 2, 2026

Summary

WordPress supports WebP natively since 5.8 — here's how to use it well.

WordPress and WebP today

Since WordPress 5.8, you can upload WebP images directly to the media library — no plugin required for basic use. WordPress even generates WebP sub-sizes automatically when you upload a JPG. But the media library will not convert your existing images, and the default settings leave performance on the table.

Option 1: convert before uploading (simplest)

The most reliable workflow: convert and compress your images with this tool before uploading. You control the exact quality and dimensions, there is no plugin to maintain, and your media library stays lean. For most blogs, this is all you need.

Option 2: a conversion plugin (hands-off)

If you have hundreds of existing images, a plugin saves hours. Popular options generate WebP versions on upload and can bulk-convert your library. Downsides: extra plugin overhead, and some plugins duplicate every image, doubling storage. Test on a staging site first.

Serving WebP with a JPG fallback

WordPress serves the uploaded file as-is. If you need to support very old browsers, use the <picture> element in your theme templates:

<picture>
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Describe the image" width="800" height="600">
</picture>

Modern browsers pick WebP; anything else falls back to JPG.

Check that it is working

After switching, open a post in Chrome DevTools (Network tab, filter by Img) and confirm the files served end in .webp. Then run the page through PageSpeed Insights — image-related warnings should shrink or disappear.

Measured results

We measured this ourselves instead of quoting generic claims:

  • Same test photo: JPG (quality 85) 111.4 KB → WebP (quality 80) 17.8 KB — 84.0% smaller per image.
  • On a page with 10 such photos, that is roughly 1.1 MB → 0.2 MB of image weight, before any other optimization.
  • WordPress has supported WebP uploads natively since version 5.8.

Test image: a 1600x1200 photo-like image (gradient sky, hills, grain) generated for this measurement. Encoded with Pillow (PNG, JPG, WebP) and ffmpeg libaom-av1 (AVIF) on November 2, 2026. Results vary by image; smooth photos shrink more than noisy ones.

Frequently asked questions

Does WordPress convert my uploads to WebP automatically?
No. WordPress accepts WebP uploads, but it does not convert your JPG or PNG uploads by itself. Convert before uploading, or use a plugin that does it.

What about visitors on older browsers?
Serve a JPG fallback with the picture element, or use a plugin that handles fallback for you.

Do I need a plugin for WebP?
Not to use WebP files. A plugin helps only if you want automatic conversion or automatic fallback handling.

Will my old posts change if I switch?
No. Existing posts keep their current images until you replace them. New uploads can use WebP right away.

Try it right now — no upload, no sign-up.

Open the converter →