Image Tools

Image SEO: Alt Text, File Names and Compression

A practical image SEO guide covering descriptive alt text, keyword-friendly file names, correct sizing, modern formats, image sitemaps and EXIF privacy.

2 min read·Updated 2026-06-01

Images do three jobs at once: they make pages look good, they rank in Google Images, and they drive page speed. Getting the details right turns a folder of screenshots into a steady source of traffic and keeps your Core Web Vitals green. Here is how to handle alt text, file names, sizing and formats correctly.

Write descriptive alt text

Alt text describes what an image shows to users who cannot see it and to search engines that cannot read pixels. Describe the content concretely and include a keyword only when it fits naturally. "Red mountain bike on gravel trail at sunset" beats "bike" and "best cheap bikes 2026 discount". Decorative images should get an empty alt="" so screen readers skip them.

Use keyword-friendly file names

The file name is a real ranking signal in image search. Save files as red-mountain-bike-gravel-trail.jpg rather than IMG_4821.jpg. Use lowercase letters, hyphens between words, and no spaces or underscores. Keep the name honest: it should match the image, not stuff keywords.

Size and compress correctly

  • Export at the dimensions you actually display, not the full camera resolution.
  • Compress with quality around 75 to 85 percent, which is visually lossless for most photos.
  • Let CSS scale images responsively instead of serving one oversized file to every device.

Run assets through the Image Resizer to set exact dimensions, then the Image Compressor to cut weight before upload.

Adopt modern formats

WebP saves 25 to 35 percent over JPEG at similar quality, and AVIF goes further on many photos. If you cannot serve next-gen formats yet, at least use JPEG for photos and PNG only for images that need transparency or sharp edges. Always set explicit width and height so the browser reserves space and layout stays stable.

Image sitemaps and discovery

Include image URLs in your XML sitemap using the image extension so Google can find images even when they load through JavaScript. Ensure lazy-loaded images still appear in the DOM with a proper source and alt attribute, and keep important images out of CSS background declarations where crawlers may miss them.

Strip EXIF for privacy

Photos from phones and cameras carry EXIF metadata, including GPS coordinates and device details. That data can expose where a photo was taken and adds file weight. Remove it before publishing with the EXIF Remover, which is especially important for user-uploaded content and sensitive locations.

Frequently asked questions

Does image SEO help normal web rankings? It helps page experience and can win image pack visibility, which brings traffic even when your page does not rank first in web results.

How long does alt text need to be? Long enough to describe the image clearly, typically under 125 characters. There is no benefit to padding it.

Should I use the same alt text on repeated images? Only if the images show the same thing. Each image should have alt text that fits its specific role on the page.

Tools used in this guide

Related guides