Foldwren

Image SEO: file names, alt text and size

Learn how to name image files, write useful alt text, and resize and compress pictures so your site is faster and more accessible.

Images are usually the heaviest things on a web page and the least explained. A search engine cannot look at a photo of your shopfront the way a person can. It relies on the clues around the image: the file name, the description you give it, and the text nearby.

Getting those clues right takes a minute per image. It helps your pages load faster, helps your images appear in image search, and makes your site usable for people who cannot see the pictures at all.

Name files like a human would

Cameras and phones produce names such as IMG4821.jpg. That tells nobody anything.

Rename files before you upload them, using a few plain words separated by hyphens.

  • IMG4821.jpg becomes white-shaker-kitchen-renovation-hobart.jpg
  • photo1.png becomes cavoodle-after-full-groom.png
  • DSC0092.jpg becomes cellar-door-tasting-room.jpg

Keep it short and honest. Lowercase letters, hyphens between words, no spaces or odd symbols. Do not jam in a string of keywords. The name should describe what is in the picture.

Write alt text that describes the image

Alt text, short for alternative text, is a written description attached to an image. Visitors do not normally see it. It is read aloud by screen readers, shown if the image fails to load, and used by search engines to understand the picture.

Write what you would say if you were describing the image to someone over the phone.

Too vague: kitchen

Stuffed: kitchen renovation Hobart best kitchen renovations cheap kitchens Hobart builder

Good: Renovated galley kitchen with white shaker cabinets, timber benchtop and a green tiled splashback

Some guidelines:

  1. Be specific and brief. One sentence is usually enough.
  2. Skip "image of" or "photo of". The screen reader already announces that it is an image.
  3. Include a relevant term or location only where it is naturally true of the picture.
  4. If the image contains words, such as a sign or a promotional graphic, put those words in the alt text.
  5. If the image is a link or button, describe where it goes.
  6. If the image is purely decorative, such as a background swirl, leave the alt text empty so screen readers skip it.

Every website platform has a field for this, usually labelled "alt text" or "alternative text" in the image settings.

Why does this help accessibility?

People who are blind or have low vision often use screen reader software, which reads a page aloud. When it reaches an image with no alt text, it may say only "image", or read out the file name. A gallery of fifteen unlabelled photos becomes fifteen meaningless interruptions.

With good alt text, that same visitor learns that your gallery shows a deck with built in seating, a rendered front fence and a carport. They get the information the pictures were there to convey.

It helps others too: people on slow connections where images fail to load, and anyone using voice tools. Australian businesses also have general obligations not to discriminate in how they provide services, and an accessible website is part of meeting them. For specifics, look at the recognised web accessibility guidelines or get advice.

We like this part of SEO because the right thing to do for people and the useful thing to do for search are the same task.

Get the size right

Size means two things, and both matter.

Dimensions

A photo straight off a phone can be thousands of pixels wide. If it displays in a column a fraction of that width, most of the download is wasted. Resize images to about the largest size they will appear on the site. A full width banner needs to be much larger than a photo sitting within the text.

File weight

Compression reduces the file's weight with little or no visible difference. Most image editors have an export or "save for web" option with a quality slider, and tools such as Canva let you choose size and quality on download. Many website platforms also compress on upload.

As a rough habit, check the file weight before uploading. If an ordinary content photo is several megabytes, it needs more work.

Use modern formats

The format affects weight too.

  • JPEG is the long standing choice for photos
  • PNG suits graphics that need a transparent background, though it is heavy for photos
  • WebP and AVIF are newer formats that produce smaller files at similar quality
  • SVG is ideal for logos and icons, because it stays sharp at any size

You rarely need to convert by hand. Many platforms and hosting setups automatically serve newer formats to browsers that support them. Ask whoever looks after your site whether that is switched on.

Two related settings are worth asking about. Lazy loading delays images further down the page until the visitor scrolls near them. Responsive images send a smaller version to phones than to large desktop screens. Both are standard on well built sites.

A checklist before you upload

  • Is the file named in plain words with hyphens?
  • Has it been resized to roughly the size it will display at?
  • Has it been compressed?
  • Is it in a suitable format for what it shows?
  • Does it have alt text describing what is in it, or empty alt text if decorative?
  • Is any important wording also on the page as real text, not only inside the image?

Then pick your five busiest pages and bring their existing images up to this standard. That alone often makes a site noticeably quicker and far more usable.

Your order