Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Image SEO in 2027: The Complete Guide to Optimizing Your Images

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.

Published on
16/10/2026
Updated on
16/10/2026
Reading time
7 min
Image SEO in 2027: The Complete Guide to Optimizing Your Images

Tools

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?

Question 1 of 425%
What is happening today?

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.

Why does image SEO matter?

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.

Which image format should you use?

Choose the lightest format that keeps the quality you need. Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF images.

FormatBest forNote
WebPPhotos and illustrationsMuch lighter than JPEG at similar quality, widely supported
AVIFPhotos where weight is criticalOften lighter than WebP, encoding is slower
JPEGPhotos, fallbackUniversal, heavier
PNGScreenshots, transparency, sharp textHeavy for photos
SVGLogos, icons, simple diagramsVector, sharp at any size

How do you compress and size images?

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.

  • Aim for the smallest file that looks right; most content images can stay well under 200 KB.
  • Always set "width" and "height" attributes so the browser reserves space and the layout does not jump.
  • Lazy load images below the fold with "loading="lazy"", but never the main image at the top of the page.

How do you serve images in next-gen formats?

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:

  1. Convert from the original. Export WebP and AVIF from the master file. Converting from a JPEG that is already compressed adds a second round of loss.
  2. Keep the same dimensions. All versions need the same width and height, so the layout does not shift when the browser swaps files.
  3. Set the type attribute. It tells the browser the format of each source before it downloads the file.
  4. Keep the img last. It is the fallback, and it carries the alt text, width and height.

Mistakes to avoid

  • Renaming a JPEG to .webp. The content is still JPEG, so export a real WebP file.
  • Serving AVIF only. Browsers that cannot read it show nothing, so keep a fallback.
  • Skipping the visual check. Compare the converted file with the original on screen, and lower the quality only while the difference stays invisible.
  • Converting on every request. AVIF takes longer to encode than WebP, so convert once at export time or let your CDN cache the result.

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.

How do you write file names and alt text?

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.

QualityAlt text example
Missing(empty)
Too vagueshoes
Keyword stuffingshoes running shoes best running shoes cheap shoes
GoodRed 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.

How do you size images properly for every screen?

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.

  1. Measure the slot. Read the displayed width in your browser's developer tools at each breakpoint, such as an 800 pixel column on desktop and the full screen width on phones.
  2. Export a few widths. For example 480, 800 and 1600 pixels wide, with the same aspect ratio.
  3. Add srcset. List each file with its width descriptor, such as 480w. The browser then knows each file's width before it downloads anything.
  4. Add sizes. Describe the displayed width for each layout, so the browser can match a file to the screen.
  5. Check the result. Reload the page in the network panel on a phone emulator and confirm the browser loaded the smaller file.
<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.

Common mistakes

MistakeWhat happensFix
No sizes attributeThe browser assumes the image fills the full viewport and may download a file too large for a sidebarAdd sizes for each breakpoint
Percentages in sizesThe browser ignores the value and assumes 100vwUse px, vw or calc()
sizes that differ from the CSS widthThe browser picks a file for the wrong widthKeep both values in sync
Enlarging a small fileThe image looks soft, and no bytes are savedExport 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.

How do you help Google find and index your images?

Use standard HTML, keep images crawlable and give them context.

  1. Embed with "img" or "picture": Google does not index images set only as CSS backgrounds.
  2. Do not block image folders in robots.txt if you want the images indexed.
  3. Place images near related text: captions and the paragraph around the image are strong signals.
  4. Add an image sitemap or image entries in your XML sitemap for images loaded by JavaScript or hosted on a CDN.
  5. Use structured data (Product, Recipe, Article) with an image property to be eligible for rich results with visuals.
  6. Keep stable URLs: changing image URLs forces Google to rediscover them.

How do Google Lens and multimodal AIs use images?

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.

What is a quick image SEO checklist?

Ten checks before publishing:

  • Modern format (WebP or AVIF) with a fallback if needed.
  • File resized to its display size and compressed.
  • Responsive versions with "srcset" for large images.
  • Width and height attributes set.
  • Main image loaded normally, others lazy loaded.
  • Descriptive file name with hyphens.
  • Specific alt text on meaningful images, empty alt on decorative ones.
  • Caption or nearby text that explains the image.
  • Image folder crawlable and included in the sitemap.
  • Structured data image property on product, recipe or article pages.

Conclusion

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.

Frequently asked questions

What is image SEO?

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.

Does alt text help SEO?

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.

What is the best image format for SEO?

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.

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.Profile photo of Xavier Breull, Sorank customer
Google
Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.Solid yellow five-pointed star icon on transparent background.
5/5
+5,000
users

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel