When it comes to image optimization in Magento, WebP is one of the concepts you'll definitely come across. So, if you're wondering why you can't upload WebP images to Magento 2 by default we have the answer. The platform simply doesn't allow that.
Nevertheless, you'll learn how to do this with our Magento 2 WebP Images Extension.
To upload WebP Images to the Magento 2 admin panel:
1. Install WebP Images Plus on your Magento 2 store and enable the extension.
2. Navigate to any product or content page you'd like to upload WebP images for.
3. Upload WebP files through the media tool, like you usually do and Save the page.
4. Check your WebP image on the frontend by using the developer browser tools.
You can also find a detailed guide on how to test WebP images in the following video.
So the image will be recognized only by WebP-friendly browsers. Visitors from non-WebP browsers won't see any images. That being said, you might want to keep your original images and convert them to WebP using different conversion methods.