How to convert images to AVIF in Robin Image Optimizer
This article explains how to enable AVIF, optimize images in bulk or individually, and deliver the resulting files with Robin Image Optimizer.
In this article
Overview
Robin Image Optimizer sends images to its cloud-based optimization service. The optimized image and any enabled WebP or AVIF files are saved to your hosting environment.
Note: AVIF conversion requires an active Pro license. Upgrade to a Pro plan and activate your license key to use it.
Before you start
Make sure the following requirements are met:
- Robin Image Optimizer is installed and activated
- Your server supports AVIF image generation
- Image backups are enabled if you want the option to restore originals
Step 1: Configure AVIF settings
- Go to WordPress Dashboard > Robin Image Optimizer > Settings
- Under Compression mode, choose your preferred option. Lossless is recommended if you want no visible quality change.
- Make sure Backup images is enabled if you want to restore the original files later.
- Enable Convert Images to AVIF. This option is available with an active Pro license.
Delivery mode for converted images
Under Delivery mode for converted images, choose how converted images should be delivered:
Redirection (via .htaccess)
Recommended for Apache servers with AVIF support enabled
Replace
<img>tags with<picture>tags, adding the WebP/AVIF to srcsetRecommended if your server does not support .htaccess redirects
Replace image URLs
Rewrites image URLs to point directly to the converted files. Robin uses the AVIF URL when an enabled AVIF file is available; otherwise, it uses an available WebP file, then the original URL. This mode does not check browser support or negotiate a format, so every visitor receives the same selected URL. Choose Replace
<img>tags with<picture>tags, adding the WebP/AVIF to srcset instead when you want the browser to select a supported format.
Save your settings, then click Test delivery below Delivery mode for converted images. Review the result to check that your site serves WebP and AVIF files. The test does not include your CDN, so also check a page on your site as a visitor would if you use one.

Step 2: Bulk optimize images with AVIF
- Go to Robin Image Optimizer > Optimize and select the Media Library tab.
- Click Start Optimization and review the run summary, including the AVIF work.
- Choose Optimize now to start immediately and keep the page open, or use scheduled or background processing if it is available with your saved settings.
- Monitor the run and any pending format copies in the dashboard.
Robin processes compression and enabled WebP and AVIF outputs together for each source image. Thumbnail files are processed separately. If an image is already optimized but a format copy is missing, Robin can create that copy without restoring the original first.

Step 3: Optimize a single image with AVIF
- Go to Media > Library and switch to list view.
- Select the image you want to optimize.
- Choose Optimize with Robin from Bulk actions, then click Apply.
- Robin queues the image using your saved settings. AVIF must be enabled and your Pro license active for Robin to create an AVIF file.

Verify AVIF delivery
After optimization, check the page on your site. In your browser's developer tools, open the Network panel and inspect the image request's Content-Type. An image/avif response is expected when an AVIF file was kept and selected; WebP or the original image type can be a valid fallback.
In Replace image URLs mode, Robin does not choose a different format based on the visitor's browser. The URL can point to AVIF, WebP, or the original as described above; use the <picture> delivery option for browser-specific format selection.
Important notes
- Compression can replace the source JPEG or PNG with an optimized version. Enabled WebP and AVIF files are additional copies. Keep Backup images enabled if you want to restore the originals; use Restore under Manage backups.
- Additional image sizes usually come from your theme or other plugins
- Robin does not convert GIF images. It also skips AVIF when the AVIF file is not smaller than the optimized source and, when available, the WebP file. These are intentional skips, not conversion failures. For other skipped-format reasons, see Optimization Errors and How to Fix Them.
Troubleshooting
If AVIF images are not loading:
- Recheck the selected delivery method
- Clear all caches including CDN and browser cache
- Verify AVIF support on your server
This ensures AVIF images are generated and served correctly without affecting existing image URLs.
