How-To Guides 6 min readJanuary 5, 2026

How to Compress Images for WordPress — Speed Up Your Website

Optimize images before uploading to WordPress for faster page loads and better search rankings.

How to Compress Images for WordPress — Speed Up Your Website

Why WordPress Sites Are Often Slow

The #1 reason WordPress sites load slowly is unoptimized images. A single blog post with 5 uncompressed photos can add 25-50 MB to page weight.

Pre-Upload Optimization

Always optimize images BEFORE uploading to WordPress:

Step 1: Resize

WordPress displays images at specific sizes depending on your theme. Common content widths:

  • Full width: 1200-1400 px
  • Content area: 800-1000 px
  • Thumbnails: 150-300 px

Resize to your theme's content width. No wider.

Step 2: Choose Format

  • WebP — Best for modern themes with WebP support
  • JPEG — Universal fallback for photos
  • PNG — Only for graphics with transparency

Step 3: Compress

Image Type Target Size
Hero/featured 100-200 KB
Blog content 50-100 KB
Thumbnails 15-30 KB
Background 80-150 KB

Step 4: Strip Metadata

Remove EXIF data to save 10-100 KB per image and protect privacy.

Bulk Processing for Existing Sites

If your WordPress site already has hundreds of unoptimized images:

  1. Export all media library images
  2. Bulk compress and resize
  3. Re-upload (or use a search-replace for URLs)

WordPress-Specific Tips

  1. Set max upload size in WordPress settings to prevent oversized uploads
  2. Use "full" size sparingly — Let WordPress generate appropriate sizes
  3. Enable lazy loading — WordPress 5.5+ has native lazy loading
  4. Consider a CDN — Serve images from edge locations
  5. Test with PageSpeed Insights — Measure the impact of optimization
wordpressimage compressionwebsite speedseoweb performance
Back to all articles