Images make your pages more useful and more memorable, but they’re also one of the easiest places to lose search visibility and page speed. Google uses images in regular search results, Google Images and Discover, and AI search tools lean on the same signals to understand what an image shows. Here are the image SEO best practices we use for clients heading into 2027.

Why image optimization matters for SEO

Images play a big role in on-page SEO, affecting page speed, user experience and how search engines understand your content.

Images are often the largest part of a page’s weight, so oversized files slow your site down, which hurts both visitors and rankings. Search engines also read the information around your images (file names, alt text, captions and nearby text) to decide what an image shows and which searches it’s relevant for.

With mobile-first indexing, Google looks at the mobile version of your pages first. That makes fast, well-sized images on mobile more important than ever.

1. Use unique images when you can

Stock photos have their place, but original images give you an edge. Custom photos, charts, diagrams and illustrations show something people can’t find anywhere else, and they make your brand more memorable.

Original images also tend to match your content more closely, which helps both readers and search engines understand the page. Google recommends sharp, high-quality images, since they look better as thumbnails in search results and can earn more clicks.

2. Choose the right image format

Google supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF images. For most websites, these are the ones that matter:

Comparison of JPEG, PNG and WebP image formats

  • JPEG works well for photos thanks to strong compression, with some loss of quality.
  • PNG is best for graphics that need transparency or crisp detail, though files are larger.
  • WebP offers great quality at much smaller file sizes and is a strong default for most images.
  • AVIF is newer and often compresses even smaller than WebP. WordPress has supported AVIF uploads since version 6.5.
  • SVG is ideal for logos and icons, since it stays sharp at any size.

Make sure the file extension matches the actual file type, so a WebP image ends in .webp, not .jpg.

3. Resize images and lazy load the right ones

Oversized images slow your site down. Resize images to the largest size they’ll display. If a spot shows an image 300px wide, there’s no need to upload a 3,000px file. (We recently found a 3,000px logo on our own site that displayed at 150px, so this happens to everyone.)

Lazy loading delays offscreen images until someone scrolls to them, which speeds up the first load. Use it for images further down the page, but don’t lazy load the main image at the top of the page. That image should load right away.

4. Compress images without losing quality

Compression shrinks file sizes while keeping images looking sharp. Tools like TinyPNG, ImageOptim and ShortPixel can cut file sizes dramatically. Aim for the smallest file that still looks good on a large screen.

If you use a compression plugin on WordPress, back up your images first and test it on a few before running it across your whole library. Aggressive settings can make images look blurry or break them.

5. Use short, descriptive file names

File names help search engines understand what an image shows. Google recommends short, descriptive file names over generic ones.

Rainbow over Niagara Falls

For example, instead of “IMG001.jpeg,” name the image above something like “niagara-falls-rainbow.jpeg.” Keep names short, separate words with hyphens, and match them to the page’s topic. If your site is in more than one language, translate file names too. Bonus: it keeps your media library organized.

6. Write helpful alt text

Google calls alt text the most important attribute for describing an image. It helps search engines understand the image, and it describes the image for people using screen readers. Describe what’s in the image clearly and naturally, and avoid stuffing in keywords.

Example of writing descriptive alt text for an image

For example, instead of “ice cream,” write “holding an ice cream cone on the boardwalk.”

Clear alt text also helps AI search tools understand your images, so it’s doing double duty.

7. Place images near relevant text, with captions and titles

Google uses the text around an image to understand it, so put images next to the content they relate to. Captions and image titles add more context, and captions are one of the first things readers notice when they scan a page.

Keep captions short and specific to the image. Avoid putting important words inside the image itself. Search engines read text on the page much more reliably than text baked into a graphic.

8. Use structured data and set a preferred image

Example of image structured data markup

Example of image structured data from Google Search Central.

Structured data helps search engines understand your images in context. For products, recipes and articles, including the image property in your markup can make your pages eligible for rich results and badges in Google Images.

You can also tell Google which image best represents a page with the og:image tag or your schema markup. Pick a relevant, high-resolution image without text on it, and avoid using your logo. In WordPress, Yoast sets og:image from your featured image automatically.

9. Help Google find your images

Google finds images in standard HTML image tags, but it doesn’t index images added through CSS backgrounds. Use regular image elements for any image you want to show up in search.

An image sitemap helps Google discover images it might otherwise miss. If you use Yoast on WordPress, your sitemap already includes the images on each page. If an image appears on several pages, use the same file each time, so Google can recognize it as one image.

10. Use responsive images for mobile

Responsive images let each device load the right size. The srcset and sizes attributes give browsers several versions of an image to choose from, so phones don’t download desktop-sized files. WordPress adds srcset automatically for images you insert through the editor.

Always keep a regular src attribute as a fallback, since some browsers and crawlers don’t support srcset. Then check your pages in PageSpeed Insights to see how your images affect load time on mobile.

Image SEO FAQs

What are the best practices for optimizing images for SEO?

Use original, high-quality images in a modern format like WebP or AVIF, resize and compress them, give them short descriptive file names and helpful alt text, and place them near related text. Then make sure Google can find them through standard image tags and your sitemap.

What is image optimization in SEO?

Image optimization is the process of making images load fast and easy for search engines to understand. It covers file size, format and dimensions, plus the file names, alt text, captions and structured data that describe each image.

Should I optimize image titles for SEO?

Image titles and captions add helpful context, but alt text matters more. Write titles and captions for people first, keep them specific to the image, and spend most of your effort on clear alt text and descriptive file names.

How do I optimize images for SEO in WordPress?

Rename files before you upload them, add alt text in the media library, and upload images close to the size they’ll display. WordPress handles srcset and lazy loading automatically, and Yoast adds images to your sitemap. If you use a compression plugin, back up first and test it on a few images.

Which image format is best for SEO?

WebP is the best all-around choice for most sites, with AVIF as an even smaller option. Use SVG for logos and icons and PNG when you need transparency. Google supports all of these.

Does image SEO help with AI search?

Yes. AI search tools rely on many of the same signals as Google Images, like alt text, captions, nearby text and structured data, to understand what an image shows and how it relates to the page.

Want help with image SEO?

Image optimization is one of the simplest ways to improve page speed, user experience and search visibility, and it’s easy to let slip as your site grows. Auditing your images once or twice a year keeps everything in shape.

Simple Search Marketing’s SEO team audits images as part of every technical SEO review, so you can fix what’s slowing you down and get more from the images you already have. Let’s talk.

Sources