WordPress Guide

Compress Images for WordPress

Unoptimized images are the #1 cause of slow WordPress sites. Learn how to compress images before uploading — improve page speed, Core Web Vitals, and Google rankings.

Why Image Optimization is Critical for WordPress

Images account for 50–80% of a typical WordPress page's total file size. Google's PageSpeed Insights consistently flags "Efficiently encode images" and "Serve images in next-gen formats" as the top optimization opportunities for WordPress sites.

Poor image optimization directly impacts your Core Web Vitals — specifically Largest Contentful Paint (LCP), which measures how quickly the main image loads. A slow LCP score hurts your Google rankings. Compressing images before uploading is the single most impactful optimization you can make.

2–5 MB
Typical unoptimized image
150–400 KB
After compression (80%)
~85%
File size reduction

WordPress Image Sizes Reference

WordPress automatically generates multiple sizes from each uploaded image. Here are the default sizes and their uses:

Size NameDimensionsUse Case
Thumbnail150 × 150pxPost thumbnails, widgets
Medium300 × 300pxInline post images
Medium Large768px wideResponsive images
Large1024 × 1024pxFull-width images
Full SizeOriginal uploadLightbox, downloads
Featured Image1200 × 628pxBlog post header, OG image

Step-by-Step: Optimize Images for WordPress

  1. Resize first: Open our Image Resizer. Set width to 1200px (or 1920px for full-width hero images). This prevents WordPress from having to handle unnecessarily large files.
  2. Compress: Open our Image Compressor. Upload the resized image and set quality to 80%.
  3. Check file size: Aim for under 200KB for blog post images, under 100KB for thumbnails.
  4. Name the file correctly: Use descriptive, keyword-rich filenames like compress-images-wordpress-guide.jpg instead of IMG_4521.jpg.
  5. Upload to WordPress: Go to Media → Add New. Upload the optimized image.
  6. Add alt text: In the Media Library, add descriptive alt text for SEO and accessibility.

Best Image Format for WordPress

JPEGMost Compatible
Use for: Photographs, blog post images, product photos
Quality: 80% quality
Typical size: ~100–300KB
Pros: Universal compatibility, small file size
PNG
Use for: Screenshots, diagrams, logos, images with text
Quality: Lossless
Typical size: ~50–500KB
Pros: Supports transparency, sharp edges
WEBP
Use for: All images on modern WordPress sites
Quality: 80% quality
Typical size: ~70–200KB
Pros: 25–35% smaller than JPEG, supports transparency

Impact on Google PageSpeed and Core Web Vitals

Google's PageSpeed Insights measures your site's performance and directly influences search rankings. The two most common image-related recommendations are:

  • Efficiently encode images — Compress JPEG images to 80% quality. This alone can save 100–500KB per image.
  • Serve images in next-gen formats — Convert JPEG to WEBP using our JPG to WEBP converter. WEBP is 25–35% smaller at equivalent quality.
  • Properly size images — Don't upload a 4000px image if it's displayed at 800px. Resize before uploading.

Addressing these three issues typically improves PageSpeed scores by 15–30 points and can significantly improve your LCP score.

Frequently Asked Questions

What is the best image size for WordPress?
For WordPress blog posts, 1200×628px is the recommended size for featured images — it's optimized for both the blog layout and social media sharing (Open Graph). For inline content images, 800–1200px wide is ideal.
How do I compress images for WordPress without a plugin?
Use PixelTools Image Compressor before uploading. Set quality to 80%, resize to 1200px wide maximum, and download. Then upload the pre-compressed image to WordPress. This is faster and more reliable than plugin-based compression.
Should I use JPEG or PNG for WordPress images?
Use JPEG for photographs and complex images (blog post photos, product images). Use PNG for screenshots, diagrams, and images with text. WEBP is the best format for performance but requires WordPress 5.8+ and a compatible theme.
How do I fix slow WordPress image loading?
The most effective fix is to compress images before uploading. Aim for under 200KB per image. Also enable lazy loading (built into WordPress 5.5+), use a CDN, and consider converting images to WEBP format.
Does WordPress compress images automatically?
WordPress applies JPEG compression at 82% quality by default when generating image sizes. However, it doesn't resize images to optimal dimensions. Pre-compressing and resizing before upload gives you better control and smaller files.
What is the maximum upload size for WordPress images?
The default maximum upload size in WordPress is typically 2–8MB depending on your hosting configuration. However, for performance, keep images under 200KB. Large images slow down your site even after upload.

We use cookies to analyze traffic and improve your experience. All image processing stays 100% local — we never upload your files. Privacy Policy