How to Optimise Images for WordPress Without Losing Quality
Images are usually the heaviest part of a WordPress page. A single unoptimised hero photo can weigh more than all your text, scripts and styles combined. The good news: you can optimise images for WordPress without visible quality loss, and the biggest wins take minutes. This guide covers the steps in order of impact, from resizing before upload to lazy loading and alt text.
Why Image Optimisation Matters
- Faster pages: smaller images download quicker, especially on mobile data.
- Better Core Web Vitals: your largest image is often the Largest Contentful Paint element that Google measures.
- Lower hosting costs: less bandwidth and storage.
- Better image search visibility when combined with good filenames and alt text.
Step 1: Resize Before You Upload
Upload images at roughly the largest size they’ll actually display. A photo from a modern phone can be 4,000 pixels wide; most content areas show 800 to 1,600 pixels. WordPress automatically scales down very large uploads (over 2,560 pixels) and creates smaller copies, but starting with a sensible size keeps your library lean.
| Image | Suggested width |
|---|---|
| Full-width hero | 1,920–2,400 px |
| Blog featured image | 1,200–1,600 px |
| In-content image | 800–1,200 px |
| Product image | 1,000–1,500 px, square |
Step 2: Choose the Right Format
Use WebP or JPEG for photos, SVG for logos and icons, and PNG only where you need lossless sharpness. Our image format guide compares them in detail.
Step 3: Compress
Compression removes data the eye doesn’t notice. For photos, a quality setting around 75–85 is usually indistinguishable from the original. You can compress before uploading with a desktop or online image tool, or automatically on upload with an optimisation plugin. WordPress itself compresses the smaller copies it generates.
Step 4: Let WordPress Serve the Right Size
WordPress creates several sizes of every upload and adds srcset to images in your content, so browsers download the smallest suitable version. Avoid setting images to “Full size” in the editor unless you need it.
Step 5: Keep Lazy Loading On
WordPress adds loading="lazy" to images automatically, so images further down the page load only when needed. Make sure your main hero image is not lazy-loaded, since it should appear immediately.
Step 6: Name Files and Add Alt Text
- Rename files before upload:
linen-shirt-sand.webp, notIMG_4471.jpg. - Add descriptive alt text to every meaningful image. Simpli Auto Alt Text fills it automatically from descriptive filenames.
Got a media library with thousands of oversized images? Simpli Plugin’s team builds bulk optimisation and cleanup tools for WordPress and WooCommerce.
Quick Image Optimisation Checklist
- Resize to the display size.
- Use WebP or JPEG for photos, SVG for icons.
- Compress to around 75–85 quality.
- Use the right image size in the editor, not “Full size.”
- Keep lazy loading on, except for the hero image.
- Name files descriptively and add alt text.
Common Problems and How to Fix Them
Images Look Blurry
The uploaded image is smaller than its display size, or compression is too strong. Upload a larger original or raise the quality setting.
Page Speed Tools Say “Properly Size Images”
An image is much larger than its displayed size. Choose a smaller image size in the editor or resize the original.
The Media Library Is Huge
Old full-size originals and unused images add up. Remove images you no longer use, and resize originals going forward.
Related Guides
- SVG vs PNG vs WebP: Which Image Format Should You Use?
- Free Website Speed Test Tools (and What the Scores Mean)
- How to Add Alt Text to Images Automatically in WordPress
Frequently Asked Questions
Do I need an image optimisation plugin?
Not always. Resizing and compressing before upload covers most of the benefit. Plugins help automate it for teams and large libraries.
Will optimising images reduce quality?
Sensible compression is invisible to most viewers. Compare before and after at actual display size.
Should I convert my whole library to WebP?
It helps on image-heavy sites. Back up first, and check that your theme and plugins display WebP correctly.
Lighter Images, Faster Pages
Resize, choose the right format, compress, and let WordPress serve the right size. These few habits make a bigger difference to page speed than almost any other change.
Browse the free Simpli Plugin library for media tools.