How WebP works
WebP is an image format that stores both photos and graphics with transparent backgrounds in smaller files than older formats. It replaces JPG for photos and PNG for logos and icons. All common browsers support it, including Safari on iPhone. A newer format, AVIF, is often even smaller, but it is more demanding to process and not every tool supports it.
Why it matters
Images are the most common cause of a slow website. A product photo straight from a camera or a supplier can be several megabytes, even though it is shown in a small box on the page. The right dimensions combined with WebP can make a page several times lighter with no visible loss of quality. The page then loads faster, gets better Core Web Vitals, and backups are smaller.
How to get WebP onto your website
You don’t have to convert images by hand. In WordPress, an image optimisation plugin handles it, automatically resizing new and existing images and creating WebP versions. Some hosting providers or CDNs convert images on the fly as they are delivered to the visitor.
A real-world example
An online furniture shop had hundreds of high-resolution product photos uploaded straight from the camera. A category page weighed tens of megabytes and took a very long time to load on mobile. After bulk resizing, converting to WebP and switching on lazy loading, categories loaded many times faster and the photos still looked just as good.
Tips and common mistakes
- Resize first, then change the format. An image 5,000 pixels wide will be large even in WebP.
- Don’t upload photos straight from your phone or camera. A width of around 1,600 to 2,000 pixels is plenty for the web.
- Keep the originals as a backup in case you need them for print later.
- Check your product feed, as some price comparison sites and ad platforms still require JPG or PNG.
Image optimisation is a standard part of website speed optimisation. When building websites, I set up automatic conversion of images to WebP on upload.