How to Compress Images for WordPress

Images are the largest contributor to WordPress page weight. An unoptimized blog post with 5โ€“10 photos can easily exceed 5 MB, destroying Core Web Vitals scores and driving away visitors. Here's how to fix it.

Key stat: Google research shows 53% of mobile users abandon pages that take longer than 3 seconds to load. Images are responsible for 50โ€“70% of total page weight on most WordPress sites.

Option 1: WordPress Plugins (Automated)

The easiest approach is to install a compression plugin that optimizes images automatically on upload.

Best WordPress Image Compression Plugins

PluginFree TierWebP SupportBulk Optimize
ShortPixel100 images/monthYesYes
Smush50 images/batchPro onlyYes
Imagify20 MB/monthYesYes
EWWW Image OptimizerUnlimited (basic)YesYes

โœ… Recommendation

ShortPixel offers the best balance of free quota, quality, and WebP generation. EWWW is ideal if you want unlimited free compression with slightly less aggressive optimization.

Option 2: Compress Before Upload (Manual)

For more control, compress images before uploading to WordPress:

  1. Resize images to your theme's content width (typically 1200โ€“1600px wide)
  2. Compress with a browser-based tool like Compress Image at 75โ€“82% quality
  3. Convert to WebP if your theme supports it
  4. Upload the optimized versions to WordPress

This approach gives you full control over quality and keeps your server clean of unoptimized originals.

Option 3: Server-Side / CDN Optimization

Services like Cloudflare Polish, imgix, or Cloudinary can optimize images on-the-fly at the CDN edge:

Essential WordPress Image Settings

  1. Add lazy loading: WordPress 5.5+ adds loading="lazy" by default, but verify your theme doesn't override it
  2. Set correct dimensions: Always include width and height attributes on <img> tags to prevent layout shifts (CLS)
  3. Disable unused sizes: WordPress generates multiple thumbnail sizes. Disable sizes you don't use in functions.php
  4. Serve WebP: Use a plugin or .htaccess rules to serve WebP to supporting browsers

Measuring the Impact

After optimizing, test your results with:

๐Ÿ”ง Compress Images Before Upload โ€” Free & Private

Drop your WordPress images here and get optimized versions in seconds. No plugin needed, runs in your browser.

Open Compress Image โ†’

Conclusion

The fastest WordPress image workflow combines pre-upload compression with a plugin for safety. Resize to your content width, compress at 75โ€“82% quality, convert to WebP, and let a plugin catch anything you miss. Your Core Web Vitals will thank you.