A photo on a website does two jobs at once: it shows something to a sighted visitor, and it provides information to search engines and to visitors using assistive technology, if it's set up correctly. Most small business sites only handle the first job and skip the second entirely.
Doing the second job well takes four small things: alt text, the file name, a visible caption where it helps, and the words on the page around the image. None of them is difficult, and together they take a minute or two per photo. This guide covers each one, what to write, what to skip, and how to work through a whole site without it becoming a project.
The four places a photo gets its meaning
Search engines can't look at a photo the way a person does. They can analyze images to some degree, but they lean on text signals to understand what an image is for. Those signals are:
- Alt text, the hidden description attached to the image.
- The file name, which is read before anything else.
- The caption, the visible line of text under or beside the photo.
- The surrounding content, the heading and paragraphs near the image.
Each one is small. The idea isn't to optimize any one of them to the limit. It's for all four to say the same honest thing, so nothing contradicts anything else.
Alt text isn't optional decoration
Alt text (alternative text) is a short description attached to an image, invisible in normal browsing but read aloud by screen readers and used by search engines to understand what the image actually shows. An image with no alt text, or generic alt text like "image1," provides none of that information to either audience.
It also shows up for everyone when an image fails to load, on a weak connection, in a blocked-images email view, or on an old device. In those moments the alt text is the only thing the visitor gets.
Write alt text that describes the actual content
A good alt text describes what's genuinely in the photo, specifically: "Finished kitchen remodel with white shaker cabinets and quartz countertops" rather than "kitchen photo" or, worse, nothing at all. This helps a screen reader user understand the page and gives search engines real context about the image's relevance to the page's topic.
A useful test is to imagine reading the page aloud over the phone to someone who can't see it. What would you say about the picture so that they understand why it's there? That sentence is your alt text. Start with what the image shows, add the detail that matters (the material, the problem, the result), and stop. You don't need to begin with "image of" or "photo of," since screen readers already announce that it's an image.
Here are a few before-and-after examples for typical trade photos, each of them hypothetical:
- A roofer's photo: not "roof," but "Roof section with missing shingles and exposed underlayment after a windstorm."
- A plumber's photo: not "water heater," but "New tank water heater installed in a garage with new shutoff valve and expansion tank."
- A landscaper's photo: not "yard," but "Backyard patio with paver walkway and raised flower bed after installation."
- A painter's photo: not "painting," but "Living room walls painted soft gray with white trim, fresh coat finished."
- A cleaner's photo: not "clean kitchen," but "Kitchen counters and stovetop after a move-out cleaning."
Each one describes a particular scene a person could picture. Notice also that none of them stuffs in a service keyword. The service shows up because it's what's actually in the picture.
File names matter too, in a smaller way
A file named "IMG_4821.jpg" carries no information. Renaming it to something like "bathroom-tile-installation.jpg" before uploading gives search engines one more small, honest signal about what the image shows. Use lowercase words separated by hyphens, keep it short, and describe the picture. A phone's default file names are the problem to solve here, since they tell nothing about the work.
If you do have a real place name that belongs in the description, such as a distinctive named neighborhood or landmark that's actually in the shot, it can go in. If it isn't there, leave it out. Naming a place the photo doesn't show is just keyword padding.
A practical routine is to rename the files before they leave your phone or computer, in a batch, rather than trying to fix them one at a time inside your website editor later. Many sites let you rename after upload, but it's easier to get right the first time. Also keep the size in check, since a huge image slows the page: image file size and website speed explains how to shrink photos without losing much quality.
Captions are for people first
A caption is the visible text near the photo. Unlike alt text, every visitor can read it, and people do read captions more reliably than most body text. That makes them the right place for the kind of detail that helps a customer: what the job was, what was done, how long it took, what the problem turned out to be.
Say a tree service shows a photo of a large oak removed in sections near a house. The alt text might say "Crew removing a large oak in sections over a roof with ropes and a crane." The caption can carry the human side: "Removed in pieces because the tree leaned toward the house and there was no room to drop it. Took one day with a crew of four." The alt text describes the picture. The caption explains the job. They don't need to match word for word, and they shouldn't repeat each other.
You don't need captions on every image. A gallery of thirty photos doesn't need thirty captions. Use them where the photo needs context, such as before-and-after pairs, unusual jobs, and photos that anchor a service page. The advice in before and after photos: how to show your work online covers how to pair them so the caption has something to say.
The text around the photo does more work than you'd think
The heading above the image and the paragraph next to it tell search engines what the image is relevant to. A photo of a repaired water heater sitting beside a section about water heater replacement reads as relevant. The same photo on a general "About" page, surrounded by unrelated text, reads as decoration. That's one more reason to put photos where they belong instead of using them as filler. How to write a services page that ranks talks about placing real work photos on the page they relate to.
The images also need to be your own, where possible. Real photos of real work are the strongest signals of what you do, and generic stock images give search engines and customers nothing specific. See why stock photos hurt more than they help for the reasoning.
Don't stuff keywords into alt text
Alt text should describe the image accurately, not become a place to cram extra keywords that don't actually describe what's shown. Overstuffed, inaccurate alt text can read as manipulative to search engines and is actively unhelpful to a screen reader user trying to understand the page.
A quick way to spot stuffing: if the alt text reads like a list of search terms ("plumber best plumber emergency plumbing repair near me"), it's stuffed. If it reads like a sentence a person would say, it's fine. And if it describes something that isn't in the picture, it's wrong, whatever the keyword value.
Which images get empty alt text
Purely decorative images, such as a background texture, a divider line or a small icon that sits next to text that already says the same thing, should carry empty alt text on purpose. That tells screen readers to skip them, so the visitor isn't made to listen to "decorative swirl" a dozen times. Leaving the attribute out entirely is different: some screen readers will then read the file name aloud. An intentional empty alt is the correct way to say "nothing to see here."
The W3C's decision tree, linked in the sources, is a short and reliable way to decide, image by image, what kind of alt text it needs. Logos that link to the homepage need alt text describing the link, such as the business name. Icons that are buttons need alt text describing what the button does.
This connects directly to accessibility
Alt text is also a core requirement for website accessibility more broadly, not just a search optimization tactic. See website accessibility basics for small business for the wider picture. Writing alt text for people who can't see the image has the useful side effect of making the page clearer for everyone, including search engines.
A simple process for a whole site
If your site already has hundreds of untagged photos, don't try to fix everything at once. Work in this order:
- Start with the pages that matter most: homepage, main service pages, and the pages that already get visits.
- Fix the images that show real work first. Logos and icons can come after.
- Write alt text as you'd say it, one sentence, describing what's visible.
- Rename new photos before upload from now on, so the problem stops growing.
- Add captions to before-and-after pairs and any photo where the story isn't obvious.
- Spot-check by turning off images in your browser or using a screen reader, and read the page. If it still makes sense, you're done.
Going forward, build it into your photo habit. When you take pictures on a job, make a quick note on what the photo shows. Phone photography tips for showing off finished work covers getting good pictures in the first place, and how many photos a website actually needs helps you decide which ones are worth the trouble of describing. For your Google profile, Google Business Profile photos: what actually gets used covers the separate rules there.
What this means for your business
You don't need a plugin or an agency to do this. Take your ten most important photos, the ones on your homepage and main service pages, and give each a real file name, a single honest sentence of alt text, and a caption where the story needs one. Then do the same for each new photo as it's added. It's slow only the first time.
Questions
Do I need alt text on every single image?
Purely decorative images (a background texture with no informational content) can have empty alt text on purpose, which tells screen readers to skip them. Any image conveying real information needs real alt text.
How long should alt text be?
Long enough to accurately describe the image, typically one concise sentence. It doesn't need to be exhaustive, just accurate and specific.
Does this actually affect image search rankings?
Yes, accurate alt text and file names are among the signals Google's image search uses to understand and rank images, on top of their accessibility value.
What's the difference between alt text and a caption?
Alt text is hidden description for people who can't see the image and for search engines, and it describes what the picture shows. A caption is visible to everyone and adds context, like what the job was or why something was done. They do different things, so write them separately.
Should I include my business name or service in the alt text?
Only if it's part of what the image shows, such as a sign, a truck with your name, or a logo. Adding it to every image as a habit is padding, and it makes pages tedious for people using screen readers.
Are images that I upload to Google Business Profile treated the same way?
Not really. You can't add alt text to photos there, so the file name and the picture itself matter more, and Google looks at the content of the photo. Keep those photos honest, current and clearly connected to your work.
Does it matter if my website builder adds alt text automatically?
Check it. Some builders fill alt text from the file name, which is useless if the file is still called IMG_4821. Others use AI to generate descriptions, which can be wrong or oddly generic. Read what it produced and correct anything that doesn't match the photo.



