How to Write Alt Text for SEO: The 2026 Guide (+ 10 Examples)

How to write alt text for SEO — magnifying glass revealing descriptive labels on a website photo

Learning how to write alt text for SEO is one of the highest-return on-page skills you can pick up in 2026. It takes under a minute per image, yet most sites leave half their images with blank, auto-generated, or keyword-stuffed alt attributes. The result: screen readers stumble, Google Images ignores your visuals, and your pages send weaker topical signals than they should. This guide gives you the exact formula, ten real before-and-after rewrites, a WordPress fix-up workflow, and the 2026 angles (AI Overviews, Google Lens) that older guides miss. This is your complete playbook for how to write alt text for SEO — from the five-part formula to ten before-and-after examples you can copy today. What Alt Text Actually Is (and What It Is Not) Alt text — short for alternative text — is a written description of an image embedded in the HTML of your page: <img src=”trail-running-shoes.jpg” alt=”Pair of blue trail running shoes with red laces on a rocky mountain path”> Its primary job is accessibility: screen readers read it aloud to visually impaired users, and browsers display it when an image fails to load. Its secondary job is SEO: search engine crawlers are still fundamentally text-based, so alt text is the clearest signal you give them about what an image shows. It is commonly confused with two other things: Title text — the tooltip that appears when someone hovers over an image. It carries almost no SEO weight and is not read by screen readers. Never use it as an alt text substitute. Image file name — the name of the uploaded file, like trail-running-shoes.jpg. Descriptive, keyword-aware file names support your alt text, but they do not replace it. Understanding these distinctions is the foundation of how to write alt text for SEO correctly, because treating alt text, title text, and file names as interchangeable is the most common beginner error. Why Alt Text Matters for SEO in 2026 Google Images is a search engine in its own right, and a meaningful slice of discovery traffic starts there. When someone searches for a product or a how-to visual, Google matches their query against the textual signals around your images — and alt text is the strongest of those signals. Pages whose images carry precise alt text consistently earn more image-search impressions than identical pages with blank alt attributes. If you are serious about learning how to write alt text for SEO, image search is the fastest place to see a payoff. If you are still on the fence, consider this: learning how to write alt text for SEO is one of the highest-ROI on-page tasks because it improves accessibility and image discovery at the same time. Alt text also reinforces the topic of the entire page. If your article targets “trail running for beginners” and your images describe “blue trail running shoes on a rocky mountain path” and “runner tying trail shoes before a forest run,” every one of those descriptions is another contextual vote telling Google what the page is about. There is also an honesty point worth making: alt text is not a magic ranking lever for web search. Stuffing keywords into alt attributes will not move a page from position 40 to position 4. What it does is remove friction — accessibility friction for users, and understanding friction for crawlers — and in 2026, with AI-powered search leaning harder on structured understanding of your content, removing that friction matters more than ever. Fortunately, how to write alt text for SEO is a learnable, repeatable skill rather than guesswork — the formula below makes it mechanical. Google’s own image SEO best practices confirm that descriptive alt text helps Google understand your images. How to Write Alt Text for SEO: The 5-Part Formula Here is the repeatable method for how to write alt text for SEO that balances accessibility, search signals, and readability. Apply it to every meaningful image you publish. 1. Describe what you actually see (5–12 words) Imagine describing the image to someone over the phone. Lead with the main subject, then one or two distinguishing details: color, setting, action, or model number. Specifics beat generics every time — “Dell XPS 13 laptop, silver finish, half-open on a wooden desk” beats “laptop.” 2. Add context from the page The same photo needs different alt text on different pages. A picture of running shoes on a product page should name the model and variant; on a marathon-training article, it should describe the action (“runner lacing trail shoes at sunrise before a long run”). Context is what makes alt text useful instead of generic. 3. Weave in your keyword naturally — once If the page’s target keyword genuinely describes the image, include it. A product page targeting “trail running shoes for beginners” can carry alt text like “blue trail running shoes for beginners on a rocky mountain path.” If the keyword does not fit, leave it out. Forced keywords read badly to humans and look spammy to algorithms. 4. Keep it under 125 characters Most screen readers cut off alt text after roughly 125 characters. Longer descriptions get truncated mid-sentence, which is a worse experience than a shorter complete one. If an image needs more explanation (a data-heavy chart, for instance), summarize in the alt text and put the full detail in the surrounding paragraph or a data table. 5. Never start with “image of” or “picture of” The <img> tag already tells assistive technology it is dealing with an image. “A picture of a cat” wastes seven characters announcing the obvious. Start with the subject: “Orange tabby cat sleeping in a sunbeam on a white windowsill.” You now have the complete method for how to write alt text for SEO — let’s see it applied to ten realistic image types. 10 Before-and-After Alt Text Examples Theory is cheap; examples stick. Here are ten realistic rewrites across common image types: Work through all ten, and you will internalize how to write alt text for SEO

Image SEO Optimization: Rank in Google Images (2026)

Complete image SEO optimization guide for 2026 showing how to rank images in Google Search and AI answers

Image SEO optimization is the practice of making every image on your website fast, discoverable, and understandable to search engines and AI systems. In 2026 it goes far beyond alt text — covering file naming, WebP/AVIF formats, compression, responsive delivery, schema, Google Lens visual search, and AI-answer citations. This image SEO optimization guide covers every step, plus three advanced tactics your competitors miss. What Is Image SEO Optimization? It combines three jobs: making images load fast (compression, modern formats, lazy loading), making them discoverable (alt text, filenames, captions, schema, sitemaps), and making them shareable (Open Graph and social preview images). When done well, image SEO optimization turns every visual on your site into a discoverable traffic asset. Image search accounts for roughly 30% of queries across the top 10 US web properties, more than one billion queries happen in Google Images every day, and images appear in about 34% of all search results — a second traffic channel most competitors leave half-abandoned. Why Image SEO Optimization Matters More Than Ever in 2026 First, visual search has exploded: Google Lens now has more than 1.5 billion monthly users and over 100 billion visual searches per year. People increasingly search with a camera or screenshot — unoptimized images are invisible in that entire channel. Second, AI answers are image-aware: Google’s AI Overviews, ChatGPT Search, and Perplexity all pull image data when answering visual and product queries, making structured image data a ranking signal for AI search — not just classic search. Third, page experience still counts. Heavy images remain the number one cause of slow pages and poor Core Web Vitals scores. Since Largest Contentful Paint (LCP) is often an image — especially the hero image — getting your images right directly protects your rankings. Step 1: Name Image Files Like You Mean It The filename is one of the strongest signals search engines use to understand an image — and one of the most ignored. IMG_4821.jpg tells Google nothing; leather-crossbody-bag-tan.jpg tells it everything. Getting filenames right is the simplest image SEO optimization win there is. Follow these rules for every image you upload: Use lowercase, hyphen-separated, descriptive names: leather-crossbody-bag-tan.jpg Include the page’s primary keyword naturally, but keep it short — high-performing image names run roughly 8 to 16 characters of keywords, or 2 to 3 descriptive words Rename files before uploading, since WordPress makes renaming after upload difficult Never stuff keywords: buy-cheap-seo-tools-best-seo-tools-2026.jpg risks a spam penalty Use the same image URL when the same image appears on multiple pages — Google updated its guidance in 2025 to recommend reusing identical URLs so it can cache the image once instead of recrawling duplicates, saving your crawl budget Step 2: Write Alt Text That Actually Describes the Image Alt text does three jobs: accessibility for screen-reader users, a fallback when images fail to load, and a strong on-page signal that helps search engines understand the image and the page’s semantic meaning. How to write perfect alt text Be short but descriptive — aim for under 125 characters Describe what is in the image and its function on the page, not just its appearance Include a keyword variation only if it fits naturally Never start with “image of” or “picture of” — screen readers already announce it as an image For decorative images that add no information, use an empty alt attribute (alt=””) so screen readers skip them If the image is a link, write the alt text like anchor text describing where the link goes Bad: image123 or seo tools, best seo tools, cheap seo tools. Good: wireless security camera mounted above a front door. Following these rules keeps your image SEO optimization accessible and search-friendly. One more note: the title attribute (the hover tooltip) is not indexed and has no SEO value — do not spend time on it. Step 3: Use Captions and Figcaption Tags Captions are criminally underused. A well-written caption is a placement opportunity for your keywords that users actually read — and search engines treat text immediately before and after an image as strongly connected to it. Use the figure and figcaption elements to wrap important images. Write one punchy sentence that serves the user first — a benefit, a key fact, or a well-placed punchline — while naturally including a target keyword. Put images near the copy they support; an image floating far from related text confuses both readers and crawlers. Step 4: Choose the Right Image Format Format choice is a core part of image SEO optimization: pick the right one from the 2026 shortlist below. Format Best for SEO benefit WebP Photos and most web images 25–35% smaller than JPEG at the same quality; near-universal browser support AVIF Photos where maximum compression matters Even smaller than WebP; growing browser support JPEG Legacy fallback for photos Acceptable, but convert to WebP when you can PNG Logos and graphics with transparency Sharp edges, but large files — use sparingly SVG Icons and simple graphics Infinitely scalable, tiny file sizes Avoid GIF for anything except tiny animations — an MP4 or WebM clip looks better and loads faster. For photographs on a modern site, the default answer in 2026 is WebP, with AVIF where your tooling and CPU budget allow it. Step 5: Compress Images Without Losing Quality Compression is the highest-ROI move in any image SEO optimization workflow. A 1.5MB photograph converted to a 250KB WebP can cut load time by three seconds or more — and faster pages consistently rank higher and convert better. Practical compression targets Blog and article images: aim for under 150KB each Product images: aim for under 300KB each Resize to the actual display dimensions first — never upload a 4000px image that displays at 800px Compress before uploading, not after: tools like TinyPNG, ShortPixel, and Squoosh handle this in seconds Test with Google PageSpeed Insights after optimizing to confirm the improvement Always compress aggressively, but never publish a blurry image — quality is a trust signal: about 70% of shoppers