You converted your images to WebP, but your pages still load JPEGs and PNGs. Or the WebP files exist and nothing uses them. Before you change anything, find out which of three things is going wrong. It takes about a minute.
Open the page in Chrome or Edge. Open DevTools (F12, or right-click and choose Inspect), go to the Network tab, tick Disable cache, then reload the page.
Click the Img filter.
Find a large image on the page and click it.
Read the Headers panel. The three lines that matter are Content-Type, Vary and Cache-Control.
In the list, the Type column shows webp, avif, jpeg or png. That is what the browser actually received.
Then look at the page source (right-click, View page source) and search for <picture.
You will land in one of these places:
Type says webp and Content-Type says image/webp. It is working. If a tool still reports a problem, it is probably testing a cached copy or a different URL.
Type says jpeg or png, and there is no <picture> or .webp URL anywhere in the source. The page never asked for WebP. Go to cause 3, and check cause 2 if the site sits behind a cache.
Type says jpeg or png, but the same image URL ends in .webp and loads fine on its own. The files exist and the server is not handing them out. Go to cause 1.
The same URL gives webp for one visitor and jpeg for another. Go to cause 2.
To test the server without a browser, run this from a terminal. Replace the URL with one of your own image URLs:
curl -sI -H "Accept: image/webp,image/*" https://example.com/
Read the content-type line. image/webp means the server swapped the file. image/jpeg means it did not. Run it twice: once with the Accept header, once without. If you see vary: Accept in the answer, the server knows it is serving different files to different browsers. That header matters in cause 2.
Some plugins keep the same image URL and rely on a server rule to hand out the WebP copy when the browser says it accepts WebP. On Apache that rule lives in .htaccess. On Nginx it lives in the server config. The rule can quietly stop working in a few ways:
Nginx ignores .htaccess. If your host runs Nginx, any rewrite rule a plugin wrote to .htaccess does nothing. The host has to add the Nginx equivalent.
Apache is not reading your .htaccess. It needs AllowOverride switched on for your site and mod_rewrite enabled.
The rule was overwritten. Saving permalinks, another plugin or a security tool can rewrite .htaccess and drop the block.
The server does not know the file type. If .webp or .avif files come back as application/octet-stream or text/plain, browsers will not use them. Open the WebP file's own URL in the Network tab and read its Content-Type.
How to fix it:
Open the WebP file's own URL directly. If it does not load (404) the copy was never created, so re-run the optimiser on that image.
If it loads but with the wrong Content-Type, add the types. On Apache, put this in .htaccess:
AddType image/webp .webpAddType image/avif .avif
On Nginx, ask your host to add image/webp webp; and image/avif avif; to the types block.
If the files load and the types are right but the JPEG URL still returns JPEG, the rewrite rule is not running. Check your plugin's settings page for a “rewrite rules” or “server configuration” notice. On Nginx, send the plugin's documented Nginx block to your host.
Where TIO fits: TIO does not use rewrite rules. It leaves the original URL alone and adds a <picture> tag in the page HTML that points at the WebP and AVIF copies. So no .htaccess or Nginx change is needed for TIO to work. One thing still applies: the copies are real files in your uploads folder, named like photo.jpg.webp and photo.jpg.avif, so the server still has to serve .webp and .avif with the right Content-Type (step 2 above).
You fixed the setup, but you still see the old result. A cache is holding on to the old answer. There are two kinds.
A page cache (a caching plugin, or your host's cache). It stores the finished HTML. If it stored the page before your images were optimised, it keeps serving HTML without any <picture> tags. Fix: purge the page cache, then reload with Disable cache ticked and search the source for <picture again.
A CDN that switches files by the Accept header. If your WebP delivery relies on the same URL returning different files to different browsers, the CDN has to treat the Accept header as part of the cache key. If it does not, the first visitor decides what everyone gets. The warning signs are an image that shows webp in one browser and jpeg in another, or the Vary: Accept header missing from the response. Fix: in your CDN settings, find the option for caching by content type or by the Accept header, or use the CDN's own WebP feature, and purge the image URLs afterwards. Settings differ by provider, so check your CDN's documentation for the exact name.
Where TIO fits: a <picture> tag does not depend on the Accept header, because the browser chooses the format itself from the HTML. So the header problem does not apply. A page cache still does, as described above. A second CDN case also applies: if your site rewrites image URLs to an off-site address, such as an offload plugin or a CDN that serves images from a different hostname, TIO does not add <picture> for those images. It only wraps images whose address starts with your own uploads folder URL, because that is where the WebP and AVIF copies are stored. If the Network tab shows images coming from a hostname that is not your site, that is why.
The server is fine and the cache is clean, but the source has no <picture> tag. Some images are written into the page in a way that bypasses the places plugins can change them.
TIO hooks two WordPress filters. This is exactly what it can and cannot reach:
<picture>?<img> tags typed into a Custom HTML block that go through the_content)<img> tag hard-coded in a theme template file and printed directlybackground-image, including inline style="background-image:url(...)"src for a data: placeholder until the visitor scrollsdata: address in src.The filters are wp_content_img_tag, which covers images in post content, and wp_get_attachment_image, which covers images a theme prints through WordPress's own function. You can see in the page source whether the image you care about went through them: a wrapped image has a data-nctio-nextgen="1" attribute on its <img>.
There is one more reason TIO leaves an image alone, and it is deliberate. TIO only offers a WebP or AVIF source when a copy exists for every size in the image's srcset. If one size has no copy, because the WebP came out no smaller than the original, TIO leaves that image as it was. A browser that picked a partial set would stretch a small thumbnail into a big space and the image would look blurry. So an image with no <picture> is not always a bug. Check the Media Library: the Optimized column shows a “Next-gen: AVIF, WEBP” label for images that have copies.
How to fix it:
If the image is an older upload, check the Media Library first. No “Next-gen: AVIF, WEBP” label under the Optimized column means TIO has made no copies for it yet. That is the most common reason for a missing <picture> on a site that already runs TIO. Run Bulk Optimize and reload.
In the page source, find the <img> tag for the image that is not working. Look at the attributes: class="wp-image-123" and a srcset mean it came from WordPress. No srcset and a hand-written look mean it is hard-coded.
Hard-coded in a template: replace the raw <img> with echo wp_get_attachment_image( $attachment_id, 'large' ); in the theme. This is a small change in the theme's PHP, so ask your developer.
A background image: use a real <img> with object-fit: cover instead, or accept that this image stays as it is.
Page builder: check whether the builder has its own image-optimisation or lazy-load setting, and whether it has a “use the_content filter” or similar option. If it does not pass its images through WordPress's content filters, a plugin cannot change them.
Purge any cache. Reload with Disable cache ticked.
In the Network tab with the Img filter on, the Type column should say webp or avif for the image you were testing, and Content-Type should be image/webp or image/avif.
View source and look for a <picture> element with a <source type="image/webp"> and a fallback <img> inside it.
Test once in a private window and once on your phone, on mobile data, to skip your own caches.
Ask when:
the WebP file loads but comes back with a wrong Content-Type, and you cannot edit the server config;
you are on Nginx and a plugin only supplied .htaccess rules;
.htaccess changes have no effect at all;
the host's own cache keeps serving old HTML after you purge it.
Send them the output of the curl -sI test above and the URL of one image. That is usually enough for them to find it.
It is the fix when WebP never reached your pages because the server rules would not work for you. The Image Optimizer creates the WebP and AVIF copies when you upload or run Bulk Optimize, and serves them with a <picture> tag. It needs no server rewrite rules.
It is not the fix for images your theme prints without going through WordPress's image functions, for CSS background images, for images already served from an off-site CDN address, or for GIF and AVIF source files, which it does not process. If your site already converts images at the front end or at a CDN, it adds little. Each optimised image uses one credit, and pricing lists what that costs. For the formats and sizes themselves, see how to optimise website images.