Blog · Speed

How to Optimize Images in WordPress (Without Losing Quality)

Images are usually the heaviest part of a WordPress page, and the easiest thing to make lighter. A single photo straight from a phone can weigh more than the rest of the page put together. Here’s how to fix the images you already have, and stop new ones from slowing your site down.

What WordPress already does for you

  • Several sizes per upload. WordPress creates smaller copies (thumbnail, medium, large and others your theme adds) and lets the browser pick the right one with srcset.
  • Big uploads are scaled down. Since version 5.3, images wider or taller than 2,560 px get a scaled-down copy that’s used instead of the original.
  • Lazy loading. Images further down the page load only when a visitor scrolls near them.

That’s a good start, but it doesn’t help with images uploaded before those features existed, images inserted at “Full size”, or files that are simply saved with too little compression.

1. Find your heaviest images

Run your slowest pages through PageSpeed Insights and look at “Properly size images” and “Serve images in next-gen formats”. They list the exact files and how much you’d save. For the whole site, sort your Media Library by file size, or use a tool that scans all uploads.

2. Resize oversized originals

Almost no website needs images wider than about 2,000 px. Shrinking a 6,000 px photo down to 2,000 px usually cuts its file size by 80% or more, with no visible difference on screen. Keep a copy of the originals somewhere safe in case you ever need them for print.

3. Compress, and use modern formats

  • JPEG for photos, at a quality of around 75–85. Higher rarely looks better and costs a lot of bytes.
  • PNG only for graphics with sharp edges or transparency, such as logos and screenshots.
  • WebP or AVIF for both: typically 25–50% smaller than JPEG at the same quality. WordPress supports uploading WebP and AVIF, and many image plugins convert existing images automatically while keeping a JPEG fallback.
  • SVG for logos and icons where possible, but only from sources you trust, since SVG files can contain code.

4. Insert the right size

When you add an image in the editor, check the “Resolution” or “Image size” setting. “Full size” sends the original file even if it’s shown in a narrow column. “Large” is right for most blog images.

5. Don’t lazy-load the first image

Lazy loading is great for images further down, but the big image at the top of the page (your hero or featured image) should load immediately. WordPress skips lazy loading for the first content image automatically. If you use a page builder or slider, check that it doesn’t add lazy loading to the hero, because that delays your Largest Contentful Paint, one of Google’s speed measures.

6. Add alt text

Alt text doesn’t make pages faster, but it matters just as much. Screen readers read it aloud to blind visitors, and Google uses it to understand images. Describe what the image shows in a short sentence, such as “Round sourdough loaf on a wooden board”. Don’t stuff it with keywords.

7. Use a CDN for far-away visitors

A content delivery network keeps copies of your images close to your visitors. If your audience is spread across countries, it can make images load noticeably faster. Many CDNs can also resize and convert images to WebP automatically.

Shrink them all in one click: the free Fixwise plugin finds every oversized image on your site, shows how many megabytes you’d save, and shrinks them to 2,000 px wide while keeping the originals. It also lists images missing alt text. Paid plans can write the alt text for you. More speed tips: why is my WordPress site slow?

See your site's score in about a minute.

Install the free plugin and click Scan. Nothing changes until you say so.

Download Fixwise free