Tutorial8 min read·Updated

How to Use WebP Images in WordPress (Without a Plugin)

Images are the heaviest part of almost every WordPress site. Converting them to WebP before you upload is the fastest, cheapest way to cut page weight in half, and since WordPress 5.8 you don't need a plugin to do it. Here is the full workflow.

Does WordPress support WebP?

Yes. WordPress has accepted .webp uploads natively since version 5.8 (July 2021) and generates WebP thumbnails for them just like JPEG. Since 6.1 it can even output WebP versions of uploaded JPEGs automatically when the hosting server supports it. If your site refuses WebP uploads, you are either on an old version or your host has disabled the MIME type (see troubleshooting below).

The plugin-free workflow

  1. Collect your originals (PNG, JPG, HEIC from your phone).
  2. Convert them to WebP with Fast WebP Converter. Use quality 80 for photos and 90 for graphics, and set the maximum width to your theme's content width × 2 (usually 1600–2400 px).
  3. Rename files descriptively before upload: blue-linen-shirt-front.webp beats IMG_4821.webp for image SEO.
  4. Upload to the Media Library as usual (Media → Add New, or directly in the block editor).
  5. Add alt text to every image. It is required for accessibility and used by Google Images.
  6. Insert with the Image block, which automatically adds srcset, sizes, loading="lazy" and width/height attributes.
Batch tip
PRO lets you drop up to 100 images at once and download them as a ZIP, then drag the whole folder into the Media Library. A full product catalogue takes minutes.

Why convert before upload instead of using a plugin?

  • No server load. Optimisation plugins run ImageMagick/GD on your host, which is slow on shared hosting and often times out.
  • No monthly fees. Most image plugins charge per image or per month; a one-time $99 PRO licence converts unlimited images forever.
  • Control. You decide quality and width per image instead of a global setting.
  • Smaller Media Library. Uploading only WebP avoids storing both JPEG and WebP copies of every thumbnail size.

Troubleshooting: 'Sorry, you are not allowed to upload this file type'

This message means your WordPress installation does not recognise image/webp. Check the WordPress version first (update to 5.8+). If it persists, your host or a security plugin restricted MIME types. Add the following to your theme's functions.php or a small custom plugin:

add_filter('upload_mimes', function($mimes) { $mimes['webp'] = 'image/webp'; return $mimes; });

Fallbacks for old browsers

With 97%+ browser support, most sites no longer need fallbacks. If your analytics show meaningful Internet Explorer or very old Safari traffic, keep JPEG versions and use a plugin (Performance Lab, Converter for Media) that outputs <picture> elements. Otherwise, skip the complexity.

Measuring the result

Run PageSpeed Insights(opens in new tab) before and after. Look at Largest Contentful Paint and the 'Serve images in next-gen formats' audit. Sites typically see LCP drop by 0.5–1.5 seconds on mobile after converting their above-the-fold images to WebP.

Convert your WordPress images now.

Put it into practice

Convert your images to WebP right now, free and privately in your browser.

Open the converter

Frequently asked questions

WordPress 6.1+ can generate WebP copies of uploaded JPEGs if the server supports it, but it does not shrink oversized originals or let you choose quality. Converting before upload gives better results and a lighter Media Library.

No. Google indexes WebP in Image Search and rewards faster pages. Use descriptive filenames and alt text as with any format.

All of them. WebP is handled by WordPress core and the browser, not by the theme.

Keep reading

Performance9 min read

Core Web Vitals & WebP

Learn how converting images to WebP improves Largest Contentful Paint, Cumulative Layout Shift and your PageSpeed Insights score, with a step-by-step optimisation checklist.

Read more
SEO9 min read

Image SEO best practices

12 actionable image SEO tips: file formats, names, alt text, dimensions, lazy loading, sitemaps and structured data. Get more traffic from Google Images and faster pages.

Read more
Tutorial5 min read

Bulk convert to WebP

The fastest way to batch convert hundreds of PNG and JPG images to WebP: drag, drop, set quality once, download a ZIP. Private, browser-based, no command line.

Read more