On-page SEO · 17 Nov 2026 · 6 min read
Image SEO: alt text, file names and image sizes
Image SEO is mostly three habits: describe each image honestly, name the file sensibly, and send the smallest file that still looks good.
The short answer
Good image SEO means describing what an image shows in the alt text, giving the file a short descriptive name, and serving a file sized for where it appears. Alt text helps screen reader users and search engines. File names are a minor hint. Image weight affects page speed, which affects visitors.
How to write good alt text
Alt text is a short description placed in the alt attribute of an image. It does two jobs. It is read aloud by screen readers, so a person who cannot see the image knows what it adds. And it gives search engines a text description of the picture, which they cannot fully read from pixels alone.
Write it for the first reader, a person using a screen reader, and the search benefit follows. Describe what the image shows and why it is on the page, in plain words, as you would to a friend on the phone.
- A photo of a plumber fitting a tap: "Plumber tightening a mixer tap under a kitchen sink". Not "plumber".
- A chart: say what it shows, such as "Line chart of monthly website visits rising over a year", and put the detail in the text beside it.
- A logo that links to the home page: the name of the business, because the image acts as a link.
- A purely decorative image, such as a divider or a background pattern: leave the alt attribute empty, so screen readers skip it. Leave it present but empty; do not leave it out.
Keep alt text short, usually a sentence or less. Do not start with "image of" or "picture of", since a screen reader already announces an image. Do not stuff it with keywords. Alt text that reads like a list of search phrases is unhelpful to people and is a spam signal to search engines. Use your main keyword only when it truly describes the picture.
Images that contain text, such as a banner with a headline, need that text in the alt attribute or, better, in the page as real text. This is also an accessibility point. Our guide to measuring SEO results explains how to see whether image changes affect traffic.
Do file names matter?
A little. Google's image guidance recommends descriptive file names, and a name like blue-ceramic-teapot.jpg tells a crawler and a person more than IMG_2043.jpg. It is a small hint, not a ranking lever, and the alt text and the page around the image matter more.
Adopt a simple convention and apply it to new images:
- Use lowercase letters, with hyphens between words.
- Describe the subject in a few words: what it is, and one distinguishing detail.
- Avoid spaces, accents and special characters, which can break in addresses.
- Do not repeat the same keyword in every file name; it reads as spam.
- Keep the name stable. If you rename a file, its address changes, and any page using the old one will break unless you redirect it.
That last point is more important than it looks. When images move, the old addresses return errors, and image search results can disappear. Our guide to HTTP status codes explains what the server should return when something has moved or gone.
How images affect page speed
Images are usually the heaviest part of a page. A large photograph straight from a phone camera can be several times larger than the space it fills, and a visitor on a mobile connection pays for every byte. Heavy pages load slowly, and slow pages lose visitors. Search engines also treat page experience as one signal among others, though good content comes first.
Four steps handle most cases.
- Resize before upload. If the image displays at a certain width on screen, do not upload one many times wider.
- Compress. Tools built into image editors and site platforms can reduce file size with little visible change.
- Choose a suitable format. Photographs usually suit JPEG or newer formats such as WebP or AVIF, where browser support covers your visitors. Logos and flat graphics often suit SVG or PNG. Check the current browser support before relying on a new format.
- Use responsive images, which let the browser pick a size to fit the screen, if your platform supports them.
Set the width and height on each image so the page does not jump while it loads. And lazy load images far down the page so they are fetched when needed. Do not lazy load the main image at the top, as that delays the part visitors see first. Our guide to Core Web Vitals covers how image weight and layout affect the loading and stability measures.
Make images findable and understood
Search engines look at the whole page when deciding what an image is about. The text near the image, the heading above it, and the page topic all count. Place an image close to the text it illustrates, and use a caption when a caption helps the reader.
Use real images from your own work where you can: your products, your premises, your finished jobs. Generic stock pictures say little and are used by many sites. Original images are also the ones people might link to or find in image search.
Make sure images are in the page as proper image elements, rather than just as backgrounds set in style sheets, if you want them indexed as content. Check that your robots.txt does not block the image folder, a mistake our guide on robots.txt describes. An image sitemap or entries in your main sitemap can help Google discover images that are loaded by script, though most pages do not need one.
If the same image is used on several pages, no special action is needed. But if the same page content exists at several addresses, the duplicates matter more than the pictures; our guide to canonical tags covers that.
A quick audit table
| Check | What good looks like | How to check |
|---|---|---|
| Alt text | Present, short, accurate, no stuffing | View the page source or use an accessibility checker |
| File names | Lowercase, descriptive, hyphenated | Look at the image address in the browser |
| File size | No larger than needed for its slot | PageSpeed Insights or browser developer tools |
| Dimensions | Width and height set | Page source |
| Top image | Not lazy loaded | Page source or a speed test |
| Broken images | None return an error | Site crawl or Search Console reports |
Work through your top pages first: the home page, key service pages, and the most visited articles. Fixing ten pages well beats trying to clean up a thousand images in one go.
Common mistakes
- Empty alt text on meaningful images, so screen reader users get nothing.
- The same alt text copied across a gallery of different images.
- Keyword lists in alt text.
- Camera originals uploaded at full size.
- Text baked into images with no text version.
- Renaming and moving files without redirects, leaving broken images.
- Pages with images but no surrounding text, so there is little for a search engine to read.
Most of these come from rushing at upload time. A short checklist in the upload routine prevents them, and a page that is not linked from anywhere, like those in our guide to orphan pages, wastes even well prepared images.
Where to start
Take your five most visited pages and look at every image. Fix the alt text, resize anything oversized, and check the top image loads first. Then set a rule for new uploads. If you would like a technical review that covers images, page speed and structure together, the search engine optimisation service from Liftup Technologies includes it.
Related guides
- SEO services
- Http status codes explained for seo
- How search engines work crawling indexing ranking
- How to measure seo results
- Canonical Tags Explained: When and How to Use Them
- Orphan Pages: How to Find Them and Link Them In
Questions and answers
How do I write good alt text?
Describe what the image shows and why it is on the page, in a short plain sentence. Skip phrases like image of, leave decorative images with an empty alt attribute, and avoid stuffing keywords.
Do file names matter for image SEO?
Slightly. Descriptive names in lowercase with hyphens give a small hint to search engines and help you stay organised. Alt text and the text near the image matter more.
How do images affect page speed?
Images are often the heaviest files on a page. Oversized or uncompressed files slow loading, especially on mobile connections. Resize before upload, compress, choose a suitable format and set dimensions.
Should I lazy load every image?
No. Lazy load images below the fold, but not the main image at the top of the page, because that delays what visitors see first.
Which image format should I use?
Photographs usually suit JPEG, WebP or AVIF, and logos and flat graphics suit SVG or PNG. Check current browser support for newer formats before relying on them.
Tell us what you are building.
A short call, a written plan and a fixed quote. No obligation.