How to Optimize Images for WordPress
Guides

How to Optimize Images for WordPress

April 12, 2026 6 min read

Images typically account for 50-80% of a WordPress page's total file size. If your site loads slowly, optimizing images for WordPress is the single most impactful thing you can do. No plugin or hosting upgrade will help as much as simply uploading properly sized and compressed images.

The WordPress Image Problem

Most people upload images straight from their camera or phone. A single DSLR photo is 6000x4000 pixels and 8-15MB. WordPress creates multiple sizes automatically, but the originals still exist on your server, and many themes serve larger versions than necessary.

A blog post with 5 unoptimized images can easily add 30-50MB to the page. On a mobile connection, that is a 10+ second load time.

Step 1: Resize Before Uploading

WordPress content areas are typically 720-1200px wide. There is no reason to upload a 6000px image when 1200px is the maximum display size. Use the image resizer to scale down:

  • Blog content images: 1200px wide
  • Featured images: 1200x630px
  • Full-width hero images: 1920px wide (only if your theme uses full-width layouts)
  • Thumbnails: Let WordPress generate these from the 1200px version

Step 2: Compress at Quality 80-85

After resizing, run images through the compressor. Quality 80-85 for JPG produces files that look identical to the original on screen but are 50-70% smaller.

Step 3: Use WebP Format

WordPress supports WebP natively since version 5.8. Converting your JPGs to WebP before uploading saves another 25-35% on top of compression. All modern browsers display WebP, and WordPress handles the media library integration correctly.

The Complete Workflow

  1. Resize to 1200px wide
  2. Compress at quality 80-85
  3. Convert to WebP
  4. Upload to WordPress

A photo that started at 8MB becomes 80-150KB after this workflow. That is a 98% reduction with no visible quality loss at display size.

What About Image Optimization Plugins?

Plugins like ShortPixel, Imagify, and EWWW can automate compression on the server. They are useful but have limitations: they process images after upload (using server resources), some have monthly limits on the free tier, and they give you less control over the output.

The best approach: optimize before uploading using the workflow above, and use a plugin as a safety net for images that slip through unoptimized.

Frequently Asked Questions