WebP in WordPress: A User Guide
Learn how to use WebP in WordPress, from choosing dimensions and converting images to selecting free features and checking performance.
To use WebP in WordPress, upload the prepared .webp file to the media library and insert it into the page like a JPG or PNG. No additional plugin is needed if the server's image processing library supports the format. WordPress has supported it since version 5.8 [make.wordpress.org].
WebP in WordPress: format benefits and support
WebP is an image format designed for the web that supports both lossy and lossless compression, transparency and animation. The key practical difference from JPG and PNG: one format can support different compression methods, but a smaller file is not guaranteed.
Distinguish website support from server capabilities. Even a suitable WordPress version is not enough if the server's GD or Imagick library does not support the format: the upload may then end in an error [make.wordpress.org].
Preparation: access, backups and whether you need a plugin
Before changing the entire library, prepare a way to return to the previous state. It is recommended to have a backup and know who could restore it. First, test the selected method on a small group of images.
- Make sure you have access to the media library and the required settings.
- Have your hosting provider's contact details available to check server support.
- Keep the original files to compare quality and results.
A WordPress plugin is not required simply to upload a prepared file. Consider one when you want to automate the processing of new images or process an existing library in one batch. Prepared files can be used directly [make.wordpress.org].
How to use WebP images on a WordPress website
Go from testing one image to processing the entire library, not the other way around. First choose the dimensions and acceptable quality, then the conversion method. Only after checking what the browser receives should you assess overall page performance.
1. Choose image dimensions based on their place on the page
There is no single width that works for every website. Match dimensions to the image's place on the page and the screen's pixel density: a product card and a wide page image should not automatically use the same size. Pixel dimensions and file size are not the same thing.
Under “Settings → Media”, you can set width and height limits for thumbnail, medium and large images. Responsive delivery uses different sizes, so also check which version the page actually selects for the visitor.
- Check the width of the space allocated for the image on the page.
- Evaluate the image on screens with different pixel densities.
- Compare dimensions, file size and sharpness separately.
2. Create a WebP file from JPG or PNG and check its quality
A simple option is Squoosh: open the original, choose the output format, adjust the compression settings and compare the result with the original. Images are processed on your device. Download the result only after checking important details, such as small text or product outlines.
A technical alternative is cwebp. For a JPG file, use the command cwebp photo.jpg -o photo.webp; the tool also accepts PNG. Simply changing the file extension is not enough. In lossy compression mode, a lower quality value can reduce both the file size and image quality [cwebp documentation].
Lossless mode preserves pixel values precisely, while lossy mode lets you find a compromise. Therefore, a promise that quality will never deteriorate would be inaccurate: the result depends on the selected mode and settings.
3. Compare plugin features, free limits and prices
You do not need a paid plugin for this format alone. The free version of WP-Optimize includes image compression, batch processing and conversion. In the vendor's comparison, lazy loading and removing unused images are assigned to Premium [teamupdraft.com].
| Option | Purpose | What to check |
|---|---|---|
| Prepared file without a plugin | Direct upload | Server support [make.wordpress.org] |
| WP-Optimize | Compression and batch conversion | Differences between free and additional features [teamupdraft.com] |
| Converter for Media | Converting new and existing images | Server compatibility, especially the Nginx configuration [Converter for Media] |
Before installing, read the current terms of the product you choose: whether the number of files processed is limited, which features are included and how images are delivered to visitors. Conversion and delivery are separate selection criteria. You do not need to buy extra features just because you want to change the format. Read more about choosing WordPress plugins in a separate article.
4. Upload prepared images or enable automatic conversion
Upload the prepared WebP file to the media library, then insert it into a page or post just as you would a JPG or PNG image [make.wordpress.org].
For automation, go to “WP-Optimize → Images → Image Compression” and enable automatic compression of new uploads and WebP version creation. Then upload a test JPG or PNG. Check not only the setting status, but also the final result in the browser.
In practice, converting an existing library in the background and automatically converting new uploads are separate capabilities of ready-made solutions, so check both when choosing a tool.
5. Convert existing images and estimate how long it will take
In Converter for Media settings, use “Start Bulk Optimization” for this. The process covers existing images and sizes generated by WordPress. Originals remain unchanged and additional versions are created, so you do not need to manually change all content links [Converter for Media].
It is not possible to specify a uniform duration for every library. First run a test process on your server and plan the remaining work based on its progress. The choice of compression method also changes encoding time [cwebp documentation].
6. Check whether WebP images are delivered to the browser
Current major browsers support the format, but this should not be assumed for all older versions. If fallback delivery matters, check your chosen solution: Converter for Media delivers the original image to a browser that does not support it [Converter for Media].
- Open “Network” in Developer Tools and reload the page.
- Select the image request and open “Headers”.
- Check `Content-Type: image/webp`, then view the image in “Preview”.
This check helps distinguish the file that was created from the file delivered to the visitor. Simply enabling conversion does not confirm that the work is complete.
7. Measure page performance before and after the changes
Use PageSpeed Insights to test the same URLs before and after the changes, separately for mobile and desktop. Compare LCP and image diagnostics, and repeat the tests because test conditions affect lab results. Real-user data covers the previous 28 days, so it does not immediately show the effect of a single change [About PageSpeed Insights].
For a controlled comparison, do not change everything at once. Record the test page, image settings and results. If you also change other performance settings, it will be harder to understand how much benefit came specifically from the images.
Image optimization projects: upload bottlenecks, larger files and performance limits
In projects like these, image optimization involves more than creating a new extension.
- Overall performance work: caching, code minification, lazy loading and server response optimization are often commissioned together.
- Preserving quality: the request may be to compress existing JPEG, PNG and WebP files losslessly rather than simply change all formats.
- Upload management: format support is combined with automatic compression and attachment size management.
- Dimensions suited to the placement: upload limits are set, images are resized according to their display location, and compression is balanced with acceptable quality.
Larger image processing projects can encounter a problem where the upload process makes files larger instead of smaller, so server processing and unnecessary resizing must be checked. Choosing ready-made components involves not only WordPress plugins, but also optimized delivery services and PHP libraries.
If a file cannot be uploaded, first check the WordPress version and GD or Imagick support with your hosting provider. A plugin alone may not resolve a missing server library [make.wordpress.org].
If the result is larger than the original, there is no point delivering it just because of the format: Converter for Media has a setting to automatically remove such results [Converter for Media]. In project work, success is measured by overall mobile and desktop page performance, not merely by the existence of converted files.
Is WordPress still relevant in 2026?
Yes, the project is still actively maintained: the WordPress 7.1.4 security release was published on 2026-10-28, and 7.2 Beta 5 for testing was released on 2026-11-10. This confirms ongoing development, but not automatic suitability for every website [WordPress releases].
When choosing a platform, it is worth considering content management needs, maintenance and real-world performance. The image format alone is not sufficient reason either to abandon a system in use or to choose it. These criteria help compare content management solutions.
When to choose WebP and when JPG and PNG are enough
JPG and PNG can remain on the website: the new format is an additional option, not a necessary condition for the system to work. Prepared images in different supported formats can be used side by side [make.wordpress.org].
Change the format where comparison shows a smaller file and acceptable quality. Consider the work complete only after checking what the browser receives and how the page measurements have changed.
Sources
WordPress: WordPress 5.8 adds WebP support (2021)
Google: cwebp
TeamUpdraft: WP-Optimize Free vs Premium
WordPress.org: Converter for Media
Google: About PageSpeed Insights
WordPress: Releases
Business development team
Consultants and technologists helping businesses bridge the gap between strategy and implementation - turning digital transformation plans into operational reality.