Image SEO: How to Optimise Images for Google Search and Google Images
Images can bring search traffic and improve how pages perform, but only when they are fast, relevant and easy for crawlers to understand.
How images are found and used in search
Google can show images in its image search, in regular results and in features that pull visuals from pages. To do that it needs to crawl the image file, understand what it depicts and judge whether the surrounding page is relevant. It uses the image’s alt text, the file name, the text around the image, the page title and headings, and the image itself. Good image SEO makes each of those signals consistent.
1. Use descriptive, readable file names
Name files for what they show, with hyphens between words: red-running-shoes-side-view.webp rather than IMG_4021.webp. Keep it short, avoid stuffing keywords and do not rename files after they are indexed unless you also redirect or update references. File names are a small signal, but they cost nothing and help with accessibility and organisation.
2. Write alt text for people first
Alt text describes the image for people who cannot see it (screen reader users, or anyone when the image fails to load) and gives search engines context. Good alt text is specific, concise and natural:
| Image | Weak alt text | Better alt text |
|---|---|---|
| Product photo | shoes | Red lightweight running shoes, side view |
| Chart | chart | Bar chart showing LCP falling from 4.1 s to 2.2 s after compression (example) |
| Decorative divider | fancy line image | (empty alt: alt="") |
- Do not start with “image of” or “picture of”.
- Do not repeat the same keyword in every alt attribute.
- Use an empty
alt=""for purely decorative images so screen readers skip them. - For a linked image, describe the link’s destination or purpose.
3. Put images in context
Place each image next to text that explains the same topic, and use a caption where it helps. A relevant image on a strong page is more valuable than a stock photo that adds nothing. Avoid putting important text only inside an image, because it cannot be searched or translated, and always include the key information as real text too.
4. Make them fast: format, size and compression
Speed affects users and Core Web Vitals. Follow the same steps as in our image compression guide: resize to the displayed size with the resizer, compress with the JPG or WebP compressor, and consider WebP or AVIF. Pick formats supported by Google Search. Read image optimisation for Core Web Vitals for LCP and layout-shift fixes.
5. Use markup Google can crawl
- Use the
imgelement (orpicturewith animgfallback) so crawlers can discover the file. Images added only through CSS backgrounds are generally not indexed as content images. - Do not block image files in robots.txt.
- Use responsive markup, covered in srcset and picture.
- Add width and height to avoid layout shift, and lazy-load below-the-fold images only.
6. Sitemaps and structured data
If your images are loaded in ways that make them hard to discover, an image sitemap or image entries in your XML sitemap can help Google find them. Structured data for specific content types (for example products or recipes) can include images, and Google documents which image properties it uses. Only add markup that matches visible content.
Common image SEO mistakes
- Huge uncompressed originals that slow the page.
- Keyword-stuffed alt text.
- Generic names like
image1.jpg. - Text baked into images with no text equivalent.
- Lazy-loading the main image above the fold.
- Relying on stock images that appear on thousands of other sites instead of original visuals.
Remember that image optimisation supports good content; it cannot replace it. Google’s guidance on creating helpful, people-first content applies to pages with images too.
Try it now: Compress JPG
Free, private and runs in your browser. Nothing is uploaded.
Open Compress JPGFrequently asked questions
Sources and further reading
- Google Search Central: Image SEO best practices
- Google Search Central: Creating helpful, reliable, people-first content
- web.dev: Optimize Largest Contentful Paint
- MDN: The img element
External links open the original source. We cite primary or official documentation for factual claims and re-check them when we update an article. See our editorial policy.
Keep reading
- Image Optimization for Core Web Vitals: Fix LCP and CLSHow images affect LCP and CLS, with fixes: right size and format, fetchpriority, no lazy-loading the hero, and set dimensions on every image.
- Responsive Images in HTML: srcset, sizes and the picture ElementLearn how srcset, sizes and the picture element let browsers load the right image for each screen, with copy-paste examples and common mistakes.
- Image Compression Explained: Formats, Quality Settings and ToolsHow image compression works, which format to use, what quality setting to pick and how to shrink photos without visible loss. A practical 2026 guide.
- Image Compression for WordPress: A Practical GuideHow to optimise images for WordPress: sizes, formats, quality, lazy loading and the 2560px threshold, plus a pre-upload workflow that keeps your site fast.