ummseo
On-Page SEO

Image SEO: How to Optimize Alt Text, File Names and Compression for More Organic Traffic

By The UMM SEO Editorial Team··8 min read·1,042 words

Image SEO is the practice of optimizing alt text, file names, image formats, compression and markup so search engines can understand and index your images while your pages still load fast enough to rank. It sits at the intersection of accessibility, technical performance and on-page relevance, and most sites get at least one piece of it wrong.

It matters more in 2026 than it used to. Google Images and AI-generated answers increasingly surface photos and diagrams directly inside results, oversized images remain one of the most common causes of a failing Largest Contentful Paint score, and screen-reader users depend on the same alt text that helps a crawler understand the page. Getting image SEO right is a low-effort, high-leverage piece of a broader on-page SEO programme.

What is image SEO and why does it matter?

Image SEO is the set of technical and on-page practices — descriptive alt text, meaningful file names, modern compressed formats, and supporting markup — that help search engines understand what an image shows and index it correctly, while keeping page weight low enough to protect Core Web Vitals and overall rankings.

Unlike a standalone tactic, image SEO is woven into technical SEO, content writing and page speed at once. A product photo with no alt text, a 4MB PNG hero image, and a filename like IMG_4821.jpg are all separate problems with the same root cause: images treated as an afterthought. A technical SEO audit will usually surface all three at once.

How do you write alt text that actually helps rankings?

Good alt text describes what is literally shown in the image in plain language, states the subject and context without stuffing in keywords, stays under roughly 125 characters so screen readers read it cleanly, and is left empty only for images that are purely decorative — this improves accessibility compliance and gives search engines an accurate signal of relevance.

Write alt text the way you'd describe the image to someone on the phone who can't see it. "Red leather office chair with adjustable armrests" helps both a screen-reader user and a crawler; "best office chair cheap buy now" helps neither and reads as manipulative. This is content writing work as much as technical work, which is why it should sit inside your SEO content writing process rather than get bolted on at launch.

  • Describe the subject and relevant context, not every visual detail
  • Skip phrases like "image of" or "picture of" — screen readers already announce it's an image
  • Never keyword-stuff alt text or repeat the same alt text across unrelated images
  • Use an empty alt="" attribute for purely decorative images (borders, spacers, icons with adjacent text)
  • Put the real information in alt text, not just in a visible caption, if the image conveys data

Which file names, formats and compression settings matter most?

File names should be short, descriptive and hyphenated — blue-leather-office-chair.jpg rather than IMG_4821.jpg — formats should default to WebP or AVIF for smaller sizes at equal visual quality, and compression should target the smallest file size that doesn't visibly degrade the image, since heavier images directly slow down Largest Contentful Paint.

Most CMS and e-commerce platforms now support WebP natively, and the gain is rarely marginal — it's common for a WebP export to come in at a fraction of the size of an unoptimized JPEG at the same resolution. Pair format and compression choices with explicit width and height attributes so the browser can reserve space before the image loads, which prevents the layout shift that drags down a page's Core Web Vitals score and, by extension, its technical SEO audit results.

  • Resize images to the dimensions they'll actually display at — never ship a 4000px image into a 400px slot
  • Serve WebP or AVIF with a fallback, and compress before upload rather than relying on the CMS
  • Set explicit width/height (or aspect-ratio in CSS) to prevent cumulative layout shift
  • Lazy-load images below the fold, but never lazy-load the hero image users see first

Do image sitemaps and structured data still help in 2026?

Yes — an XML image sitemap tells Google about images it might otherwise miss, particularly ones loaded dynamically through JavaScript, and pairing key images with Product, Article or Recipe structured data increases the odds they surface in Google Images, rich results and AI-generated answers that cite visual sources.

Google's own guidance confirms both pieces still carry weight: its documentation on image sitemaps explains how to list images Google might not discover through normal crawling, and its lazy-loading guidance spells out how to implement deferred loading without hiding content from crawlers that don't scroll or trigger JavaScript the way a browser does.

What image SEO mistakes quietly cost businesses traffic?

The costliest mistakes are the quiet ones: unoptimized hero images that tank Core Web Vitals, missing or keyword-stuffed alt text, generic filenames across an entire product catalog, and JavaScript-rendered galleries with no image sitemap feeding them to Google — all of which suppress visibility without throwing an obvious error anywhere.

Local and multi-location businesses have an extra failure mode worth flagging: generic stock photography on location or service pages reads as low-trust to both users and Google, undermining the authenticity signals that support strong local SEO. Original photos of the actual premises, staff or product — correctly named and described — consistently outperform stock substitutes on pages meant to build local trust.

  • A single unoptimized hero image can account for most of a page's load weight
  • Duplicate alt text across a product catalog reads as low-effort to both users and crawlers
  • Decorative icon images with real alt text (instead of empty alt="") create noisy, useless crawl signals
  • Image-only infographics with no surrounding text leave search engines nothing extractable to cite

How do you measure whether image SEO is working?

Measure image SEO by tracking Google Images impressions and clicks in Search Console's Performance report filtered to image search, monitoring Largest Contentful Paint and other Core Web Vitals in PageSpeed Insights or the Chrome UX Report, and watching whether priority images start appearing in image packs or AI-generated answers for your target queries.

None of this needs to be guesswork. If a site has never audited its images, start with the pages that matter most commercially, fix alt text and compression there first, add or refresh the image sitemap, and re-check Search Console a few weeks later. Agencies offering SEO consulting typically fold this into a broader technical review rather than treating it as a one-off project, since the same crawl that catches thin alt text usually catches the compression and sitemap gaps too.

Try the free Link Gap Calculator

See roughly how many quality backlinks you need — and how long it takes — to rank for your keyword on Google and in AI search engines.

Open the Link Gap Calculator →

The UMM SEO Editorial Team

SEO strategy & link building

Written and fact-checked by the UMM SEO team — the strategists, link builders and content specialists who run real SEO campaigns for clients every week. Our guidance comes from hands-on backlink building, technical and on-page SEO, content and digital PR work, not from theory.

Frequently asked questions

What is image SEO?

Image SEO is the practice of optimizing alt text, file names, formats, compression and supporting markup so search engines can understand and index images, while keeping page weight low enough to protect load speed and rankings.

Does alt text actually affect rankings?

Alt text helps search engines understand image relevance and is a required accessibility attribute, which together make it a meaningful on-page signal — but it works alongside content quality and technical performance, not as a standalone ranking shortcut.

Is WebP better than JPEG for SEO?

WebP (and AVIF) typically produce much smaller file sizes than JPEG at equivalent visual quality, which improves page load speed and Core Web Vitals. Since page speed is a confirmed ranking factor, switching formats is one of the highest-leverage technical image fixes available.

Do I need an image sitemap?

You need one if your images are loaded dynamically through JavaScript or otherwise hard for Google to discover through normal crawling. For simple, server-rendered image tags on indexed pages, a dedicated image sitemap is less critical but still a safe addition.

How much do large images hurt Core Web Vitals?

Oversized, uncompressed images are one of the most common causes of a poor Largest Contentful Paint score, since the largest visible element on most pages is an image. Resizing, compressing and serving modern formats is usually the fastest way to improve that metric.

Want this done for your site?

Message us on Telegram for a free SEO audit, a tailored strategy and a custom quote. No forms, no sales calls — just a straight answer.