Compress

Compress JPGCompress PNGCompress WebPCompress AVIFCompress to 100 KBCompress to 200 KBCompress to 500 KB

Convert

Convert to JPGConvert to PNGConvert to WebPConvert to AVIFWebP to JPGPNG to JPGJPG to PNGWebP to PNG

Image tools

Crop ImageResize ImageImage to PDFImage to Base64

More tools

AI Prompt GeneratorColor PickerTime Zone ConverterQR Code GeneratorWord CounterPassword Generator
SEO

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.

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:

ImageWeak alt textBetter alt text
Product photoshoesRed lightweight running shoes, side view
ChartchartBar chart showing LCP falling from 4.1 s to 2.2 s after compression (example)
Decorative dividerfancy 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 img element (or picture with an img fallback) 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 JPG

Frequently asked questions

Yes. Alt text gives search engines context about the image and makes the page accessible. Write it for people and describe the image naturally.
Use descriptive words that reflect the image, which often includes your topic. Avoid stuffing or repeating keywords.
Use a format Google Search supports, and prefer one that keeps files small, such as WebP, with JPEG or PNG where needed. The best format is the one that looks good and loads fast.
Large images slow pages and can hurt Core Web Vitals, which are part of Google’s page experience signals. Speed is one of many factors.
Not always. Standard markup with img elements is usually discoverable. An image sitemap can help when images are loaded in less crawlable ways.

Sources and further reading

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