Image SEO guide: formats, compression, file names, alt text, dimensions, lazy loading, image sitemaps and structured data, plus how Google Lens and multimodal AIs read images.

On this page
In short
Image SEO makes your images easy to find, understand and load. The essentials: use an "img" element, a modern format (WebP or AVIF), a file compressed and sized for display, a descriptive file name, a specific alt text and relevant text around the image. Add width and height to avoid layout shifts, lazy load images below the fold and list important images in your sitemap. Done well, image SEO brings traffic from Google Images and Lens, speeds up your pages and helps multimodal AIs describe your content.
Want to go further? Ask
Quick quiz
Who should fix the technical side of your site?
Our advice for you
Check it yourself with free Google tools
Search Console lists the pages Google cannot read, and PageSpeed Insights tests speed. Many small issues are fixed from your website builder settings.
Our advice for you
A web developer
Your problem is in the code or the server: a developer who knows SEO is the right person. Give them the list of errors from Search Console.
Our advice for you
A technical audit tool
Your site has many pages: a crawler reads them all like Google does and gives a full list of errors to fix, page by page.
Our advice for you
An automatic audit, then content
Your site works but brings few visitors: technical issues are rarely the cause. Sorank audits the site, then writes the pages that bring traffic.
Images are often the heaviest part of a page and the least optimized. Image SEO fixes both problems at once: lighter pages rank and convert better, and well-described images earn their own visibility in image search and visual answers. This guide covers each lever, from format to structured data, with the rules Google documents.
Images affect three things: speed, understanding and an extra source of traffic. The largest image of a page is often the element measured by Largest Contentful Paint (LCP), one of the Core Web Vitals. Images also give search engines context about the page, and they can rank on their own in Google Images, in visual results and through Google Lens, where people search with a photo instead of words.
Choose the lightest format that keeps the quality you need. Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF images.
| Format | Best for | Note |
|---|---|---|
| WebP | Photos and illustrations | Much lighter than JPEG at similar quality, widely supported |
| AVIF | Photos where weight is critical | Often lighter than WebP, encoding is slower |
| JPEG | Photos, fallback | Universal, heavier |
| PNG | Screenshots, transparency, sharp text | Heavy for photos |
| SVG | Logos, icons, simple diagrams | Vector, sharp at any size |
Serve each image at the size it is displayed, compressed as much as quality allows. A 4000-pixel photo shown in a 800-pixel column wastes bandwidth on every visit. Resize before uploading, compress with a tool such as our free image compressor, and use responsive images ("srcset" and "sizes") so phones receive smaller files than large screens.
To serve next-gen formats, export each image as WebP or AVIF, then wrap the files in a picture element with the JPEG or PNG as the fallback. The browser skips any type it cannot read and uses the best match among the rest. Your visitors get the lighter file, and older browsers still show the image.
<picture>
<source type="image/avif" srcset="/img/trail-shoes.avif">
<source type="image/webp" srcset="/img/trail-shoes.webp">
<img src="/img/trail-shoes.jpg" alt="Red trail running shoes with a deep grip sole, side view" width="800" height="600">
</picture> Follow these steps so the picture element works as intended:
Tip
If a CDN converts images for you, check that it sends the correct image type and a Vary: Accept header. Without it, a cache can send a WebP file to a browser that cannot read it.
MDN Web Docs, in its reference for the picture element, explains that a source with an unsupported type is skipped and that the img is used when no source matches.
Describe what the image shows, in plain words, in the context of the page. Google's image guidelines recommend short, descriptive file names ("red-trail-running-shoes.webp" rather than "IMG_0042.jpg") and useful alt text. Alt text serves two audiences: screen reader users and search engines.
| Quality | Alt text example |
|---|---|
| Missing | (empty) |
| Too vague | shoes |
| Keyword stuffing | shoes running shoes best running shoes cheap shoes |
| Good | Red trail running shoes with a deep grip sole, side view |
Decorative images (separators, background textures) can have an empty alt attribute so screen readers skip them. Our glossary entry on alt text gives more examples.
Size an image to the width it fills on the screen, not to its original dimensions. Measure that width in CSS pixels, export versions near it (plus a 2x version for high density screens), then let the browser choose with srcset and sizes. A file of the right size loads faster, and a small file stretched by the browser looks blurry.
480w. The browser then knows each file's width before it downloads anything.<img src="/img/trail-800.jpg"
srcset="/img/trail-480.jpg 480w, /img/trail-800.jpg 800w, /img/trail-1600.jpg 1600w"
sizes="(max-width: 600px) 100vw, 800px"
alt="Red trail running shoes with a deep grip sole, side view"
width="800" height="600"> The sizes value must match the CSS width of the image. web.dev's guide to responsive images explains that sizes tells the browser how wide the image will be when displayed. It accepts units such as px, vw and calc(), but not percentages.
| Mistake | What happens | Fix |
|---|---|---|
| No sizes attribute | The browser assumes the image fills the full viewport and may download a file too large for a sidebar | Add sizes for each breakpoint |
| Percentages in sizes | The browser ignores the value and assumes 100vw | Use px, vw or calc() |
| sizes that differ from the CSS width | The browser picks a file for the wrong width | Keep both values in sync |
| Enlarging a small file | The image looks soft, and no bytes are saved | Export from the original, and never upscale |
Tip
Your PageSpeed Insights report flags images that are larger than their display size. Start with those, since they are the cheapest to fix.
Use standard HTML, keep images crawlable and give them context.
They read the image itself, not only its tags. Google Lens recognizes objects, products, places and text in photos and matches them with pages. Multimodal AI models such as Gemini, GPT models and Claude can describe images, read charts and extract text from screenshots. Original images that clearly show your product, a process or your data are easier to match and cite than generic stock photos used on thousands of sites.
Practical consequence: add original visuals where they carry information (a comparison table as an image is less useful than an HTML table, but a labeled diagram or a real product photo adds value), and keep the text explanation next to them so both search engines and AIs can connect the two.
Ten checks before publishing:
Image SEO is mostly discipline: light files, clear names, honest alt text and clean HTML. It speeds up pages, opens a second source of search traffic and helps multimodal AIs understand what you publish. Sorank applies these rules to every article it writes and publishes on autopilot, with images, internal links and structured data: see the plans and the 3-day free trial.

Image SEO is the set of practices that help search engines find, understand and rank your images, and that keep images from slowing your pages. It covers the file format and weight, the file name, the alt text, the surrounding text, the HTML used to embed the image, image sitemaps and structured data.
Yes. Google uses alt text, together with the page content and the file name, to understand what an image shows, and screen readers read it aloud to visually impaired users. Write a short, specific description of the image in context; avoid stuffing keywords or leaving it empty on meaningful images.
WebP and AVIF usually give the smallest files at equal quality and are supported by Google and modern browsers. Use JPEG as a fallback for photos, PNG for images that need sharp edges or transparency, and SVG for logos and icons. What matters most is a light file at the size it is displayed.
