WebP + AVIF converter


Fast, simple & free plugin to automatically convert and serve WebP & AVIF images.


  • Automatically convert and serve WebP/AVIF images.
  • Increase your Google Pagespeed.
  • Only images which are really used will be converted, does not convert the whole media library.
  • WebP/AVIF quality is adjustable (default 100% = no quality loss)
  • No image URLs are changed, solution is purely based on .htaccess rewrite rules.
  • Serve original format in case the browser does not support WebP/AVIF (relying on the “Accept” header).
  • The following source formats are supported: JP(E)G, PNG, GIF, BMP.
  • Extra feature: WebP images are served as PNG when the browser/client does not support WebP (e.g. Microsoft Outlook).

Browser support

  • WebP: all modern browsers
  • AVIF: Chrome, Firefox, Safari (Edge doesn’t support AVIF yet)

Good to know

  • It may take a few minutes before the WebP/AVIF images are generated after activating the plugin.
  • AVIF is a relatively new format, and not widely supported yet on servers. This depends on your server configuration (see Server requirements).
  • Generating AVIF images is CPU-intensive, and may take a while.
  • WebP/AVIF format is only served when this format is smaller than the original file. Depending on the image, WebP/AVIF is not always the most efficient format.
  • Animated GIF-images are not supported yet as GDlib/ImageMagick don’t have support for it

How the plugin works

The plugin does nothing until the first image is requested. Here is the conversion flow.

  1. Original image is requested in browser
  2. Image is added to the conversion queue, original image is still served.
  3. Conversion queue is processed in background, queued images are converted to WebP/AVIF format.
  4. When the image is requested now, and the browser supports WebP and/or AVIF, the WebP/AVIF image is served.


  • Settings page
  • PageSpeed Insights


Install & activate the plugin and go!

Server requirements

  • Apache 2.x with mod_rewrite enabled
  • ImageMagick or GDlib with WebP support
  • PHP max_execution_time of at least 15 seconds
  • ImageMagick with AVIF support (optional)
    • You can use this plugin without AVIF support, in that case only WebP conversion is done
    • Conversion of transparent images to AVIF is not supported yet, but AVIF works great for all non-transparent PNG images


How can I verify the plugin is working?

Please check the settings page to verify your server meets the installation requirements.

How can I serve my images even smaller?

You can lower the quality settings on the settings page to serve smaller images.

Why is the original image served sometimes?

It could happen that your original image is smaller than the converted WebP/AVIF image – in that case, the original image is served.

How long would it take to convert all images on my site?

The conversion is scheduled upon the first request. The scheduled conversion should start within several minutes.
When you have a lot of images on your site, it can take up to 1-2 hours before all images are converted.


March 21, 2023
This plugin is a great addition to any Wordpress site! It’s easy to use. Just install/activate and done. I seriously like the no bloat nonsense with banners, notification bars, etc. which a lot of plugins adds to the dashboard, but this one doesn’t! I noticed the difference in Google Pagespeed immediately.
Read all 2 reviews

Contributors & Developers

“WebP + AVIF converter” is open source software. The following people have contributed to this plugin.


“WebP + AVIF converter” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “WebP + AVIF converter” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


  • 1.1.2 [29-03-2023] Added support for converting GIF images
  • 1.1.1 [28-03-2023] Added support for converting BMP images
  • 1.1.0 [20-03-2023] Added WebP/AVIF quality settings
  • 1.0.8 [15-03-2023] .htaccess fix + minor change in plugin name
  • 1.0.7 [13-03-2023] Added admin dashboard to check plugin/server configuration
  • 1.0.6 [07-03-2023] Fixed redirect bug on servers without avif support
  • 1.0.5 [04-03-2023] Moved working directory, to improve cleanup after uninstall
  • 1.0.4 [27-02-2023] Added support for PHP 7.4, fixed issue with scheduled converts
  • 1.0.3 [22-02-2023] Adjust code to improve quality
  • 1.0.2 [21-02-2023] Bugfix in GD convert
  • 1.0.1 [18-02-2023] Stricter typing & ImageMagick as primary converter with GD as fallback
  • 1.0.0 [17-02-2023] Initial version