How to Optimize Images for SEO: A Practical Checklist
To optimize images for SEO, you need images that load fast, describe themselves clearly and fit the page. This checklist covers file names, alt text, size, format and loading.
Use our free Compress Image tool to do this in just a few clicks. It runs in your browser, so your files stay private.
Key takeaways
- Use short descriptive file names and clear alt text.
- Resize and compress images so pages load quickly.
- Set width and height, and lazy-load images below the fold.
- Make sure each image belongs on the page it appears on.
Why image optimization matters for SEO
Images affect three things search engines care about. They affect speed, because heavy images slow a page down. They affect understanding, because file names and alt text tell search engines what a picture shows. And they affect accessibility, because screen readers depend on alt text. Good image habits help all three.
Use descriptive file names
| Weak | Better |
|---|---|
| IMG_4021.jpg | red-running-shoes.jpg |
| image1.png | wordpress-media-library-upload.png |
| Screenshot 2026-11-10.png | compress-image-tool-screenshot.png |
Use lowercase words separated by hyphens, and keep names short and honest. Rename the file before you upload it.
Write useful alt text
Alt text should describe what the image shows, in plain words, the way you would describe it to someone who cannot see it. Include a keyword only when it fits naturally. For purely decorative images, use an empty alt so screen readers skip them.
| Weak | Better |
|---|---|
| shoes | Red running shoes on a wooden floor |
| image of a chart showing seo best seo tips | Bar chart comparing page load time before and after image compression |
Size and format
Resize each image to the size it is displayed at with Resize Image, then compress it with Compress Image. For photos on websites, JPG to WebP usually gives a smaller file. Read the best image format for websites for help choosing.
Set width and height
Give each image width and height attributes so the browser can reserve space before the picture loads. This stops the page from jumping around while it loads, which is better for visitors and for layout stability scores.
Lazy loading, with one exception
Lazy loading delays images until the visitor scrolls near them, which saves data. Use it for images further down the page, but do not lazy-load the main image at the top, because that delays the part visitors see first. WordPress adds lazy loading by default and tries to avoid it for the first image, but check your theme.
Responsive images
WordPress creates several sizes of each upload and lets the browser choose one that fits the screen. Starting with a well-sized image gives better results than relying on WordPress to shrink a huge original.
Context matters
A picture works best when it fits the text around it. Place images near the paragraph they illustrate, add a caption when it helps, and do not add pictures that say nothing. A relevant image helps readers and gives search engines context.
Sitemaps and plugins
Many SEO plugins, including Yoast SEO, can include post images in the XML sitemap. Check your plugin settings, then submit the sitemap in Google Search Console.
Quick checklist
- Descriptive file name in lowercase with hyphens.
- Alt text that describes the image.
- Resized to the displayed size, then compressed.
- WebP or JPG for photos, PNG for exact pixels.
- Width and height set.
- Lazy loading for images below the fold.
Images and image search
People also find your pages through image search. Clear file names, helpful alt text and a relevant surrounding paragraph make it easier for search engines to understand what a picture shows and which page it belongs to.
Measure the effect
Check your page speed before and after optimizing images, and watch Google Search Console for changes in impressions and clicks. Images are only one part of SEO, so judge the result over weeks, not days.
Common mistakes
- Uploading camera originals at several thousand pixels wide.
- Leaving default names such as IMG_1234.
- Writing alt text that only repeats a keyword.
- Lazy-loading the main image at the top of the page.
Frequently Asked Questions
Does alt text help SEO?
It helps search engines and screen readers understand an image. It is not a ranking trick, so write it for people first.
Do file names matter for SEO?
Descriptive names give extra context and keep your library tidy, so they are a good habit.
Is WebP better for SEO?
Not directly. It helps indirectly by making images smaller and pages faster.
How big should my images be?
As big as they are displayed, or about twice that for sharp screens, and no larger.
Keep reading
Learn how to reduce image file size with five simple steps: resize, pick the right format, compress, convert to WebP and measure the result.
How to Use WebP Images in WordPressLearn how to use WebP in WordPress: convert images, upload them to the media library, check the results and avoid common mistakes.
How to Compress Images Without Losing QualityLearn how to compress images without losing quality: lossy vs lossless, quality settings, formats and a simple step-by-step workflow.