Skip to content
24/7 support · 7-day money-back guarantee · Free plan, no card neededSee plans

Blog › WordPress SEO ›

WordPress image optimization: sizes, WebP and lazy loading explained

Cover image: WordPress image optimization: sizes, WebP and lazy loading explained

Images make pages engaging, but they are also the biggest cause of slow loading. Fixing them is often the quickest speed win on a WordPress site, and it supports both user experience and image search visibility. Here is a simple approach.

Resize before you upload

Cameras and design tools create huge files, and WordPress will display them scaled down while still downloading the full size. Resize images to the largest size they will actually appear, usually no wider than the content area, or twice that for high-density screens. A photo that is 4000 pixels wide displayed at 800 pixels wastes bandwidth.

Compress sensibly

Use compression to reduce file size with little visible loss. Many tools and plugins can compress on upload. Aim for the lowest quality that still looks good, and check results visually. Photos can often be compressed heavily, while text-heavy graphics need care.

Choose the right format

JPEG suits photos, PNG suits graphics needing transparency and SVG suits logos and icons. WebP often gives smaller files than JPEG or PNG at similar quality and is supported by modern browsers. WordPress can handle WebP uploads, and some hosts and plugins convert automatically. Use whichever your setup supports reliably.

Lazy loading

WordPress adds lazy loading to images by default, which delays offscreen images until needed. Do not lazy-load the main image at the top of the page, since that delays the largest visible element and hurts loading scores.

Set dimensions

Always include width and height so the browser can reserve space and avoid layout shifts. Modern WordPress does this for images added through the editor.

Name files and write alt text

Use descriptive file names such as red-leather-wallet.jpg rather than IMG_4521.jpg. Write alt text that describes the image. SEOStrive can fill in missing alt text and titles from templates, and Pro adds bulk find and replace, so older images are easy to fix.

Include images in your sitemap

The SEOStrive sitemap can include images, which helps search engines discover them, including those placed in page builder layouts.

Check your work

Test with PageSpeed Insights, review the largest images on key pages and run a site audit to find images missing alt text or oversized files. Small changes here often make a visible difference.

Frequently asked questions

Does WebP always beat JPEG? Usually it gives smaller files at similar quality, but test your images and make sure your setup serves a fallback if needed.

How small should images be? Small enough to load quickly without visible loss. As a rough guide, aim for well under a few hundred kilobytes for content images.

Should I lazy-load every image? No. Leave the top, largest image unlazy so the main content appears quickly.

Keep reading

Comments

Leave a comment

Check your own site

Run a free audit and see what to fix first.

Run a free audit