Images make blog posts easier to read and products easier to buy. But unoptimized images slow your site down and miss a chance to bring in traffic from Google Images. The good news is that optimizing images in WordPress takes only a few extra seconds per upload once you know the steps.
In this guide we will show you how to optimize images for SEO on WordPress in nine simple steps.
Step 1: Choose the Right Image
Use original photos or graphics whenever possible. Stock images that appear on thousands of sites add little value. Pick images that genuinely help explain the content.
Step 2: Use a Descriptive File Name
Rename files before uploading. Instead of IMG_4382.jpg, use something like blue-ceramic-coffee-mug.webp. Use lowercase words separated by hyphens and include the main topic naturally.
Step 3: Use the WebP Format
WebP files are usually much smaller than JPEG or PNG at similar quality. WordPress has supported WebP uploads since version 5.8. Many image optimization plugins can also convert existing images to WebP automatically.
Step 4: Resize and Compress
- Resize images to the largest size they will display, often 1,200 to 1,600 pixels wide for blog content.
- Compress them to reduce file size. Aim for around 100 KB or less for most blog images.
- Use a plugin such as ShortPixel, Smush, or Imagify to compress in bulk.
Lighter images make pages faster, which helps both visitors and rankings. See more speed tips in how to speed up a slow WordPress website without coding.
Step 5: Write Helpful Alt Text
Alt text describes the image for people using screen readers and helps search engines understand it. In the WordPress media library or block settings, fill in the Alternative Text field.
- Good: “Barista pouring latte art into a white cup”
- Too vague: “coffee”
- Keyword stuffed: “coffee coffee shop best coffee cheap coffee”
Describe what is in the image and include the keyword only if it fits naturally.

Step 6: Add Captions Where Useful
Captions are read more often than body text. Use them when they add context, such as explaining a chart or naming a product.
Step 7: Keep Lazy Loading On
WordPress lazy loads images by default, so images below the fold load only when visitors scroll down. Avoid lazy loading the main image at the very top of the page, since it should appear immediately. Many performance plugins handle this automatically.
Step 8: Let WordPress Serve Responsive Images
WordPress automatically creates several sizes of each image and serves the right one for each screen. Avoid uploading tiny images and stretching them, or huge images shown small.
Step 9: Include Images in Your Sitemap
Most SEO plugins, such as All in One SEO, Yoast, and Rank Math, include images in your XML sitemap, which helps Google discover them.
Quick Image SEO Checklist
| Check | Done? |
|---|---|
| Original, relevant image | Yes / No |
| Descriptive file name with hyphens | Yes / No |
| WebP format | Yes / No |
| Resized and under about 100 KB | Yes / No |
| Helpful alt text | Yes / No |
| Caption if useful | Yes / No |
The same principles apply to images in emails, which we cover in best practices for newsletter images.
Frequently Asked Questions
Does image alt text help SEO?
Yes. It helps search engines understand images and improves accessibility for visitors using screen readers.
What is the best image format for WordPress?
WebP is usually the best choice for photos and graphics because it offers small file sizes with good quality.
How big should blog images be?
Around 1,200 to 1,600 pixels wide is enough for most blog layouts, compressed to roughly 100 KB or less.
Should every image have alt text?
Every meaningful image should. Purely decorative images can have empty alt text so screen readers skip them.
Final Thoughts
Now you know how to optimize images for SEO on WordPress: choose useful images, rename them, convert to WebP, compress, write helpful alt text, and let WordPress handle responsive sizes and lazy loading. Small habits on every upload add up to a faster site and more search visibility.


