How should you name images and write alt text?
Image filenames should be short and descriptive. Alt text should describe what the image shows and how it relates to the page, without keyword stuffing. Search engines do not rely on filenames, alt text, or title attributes alone; Google’s documentation says that both alt text and surrounding text help them understand images. The available information does not establish how much weight each factor carries, so focus on making images and text work together rather than relying on any one factor.
Describe the subject in the filename and separate words with hyphens
Replace camera- or system-generated sequential filenames with meaningful names that briefly describe the image. In its advice on jewelry images, Yoast cites Google’s documentation: filenames provide only very light clues about the subject matter. Keep them short and descriptive rather than stuffing them with a long string of search terms.
- Keep words that identify the subject, such as the product type, color, or camera angle.
- When using English words, separate them with hyphens rather than running them together.
- Do not leave the filename as IMG_001.jpg, but do not cram every product selling point into it either.
For example, if an image shows a side view of a white ceramic cup, you could name it white-ceramic-cup-side.jpg. This is a naming example, not a requirement to use English or a guarantee of search rankings.
Write alt text for people who need to understand the image
Alt text is not just for search engines. Screen readers can read it aloud, and it can provide information when an image fails to load. Google’s documentation describes it as short, descriptive text that explains the relationship between an image and the content.
Start by identifying what the image actually shows, then select details relevant to the paragraph. For example, if the same ceramic cup photo is used to discuss the handle design, you could write “Side view of a white ceramic cup showing its curved handle” rather than “recommended ceramic cup, popular cup, best gift.” The first describes the image; the second is merely a list of terms.
- Describe the visible subject and important details without adding characteristics the image cannot show.
- Relevant keywords can appear naturally, but there is no need to repeat them in different forms.
- Keep it concise rather than turning the alt text into a full product advertisement.
Surrounding text provides context; title is not the same as alt
Google recommends placing clear images near relevant text. For example, pairing a store photo with a paragraph about its location establishes a stronger connection between the image and text than placing it in an unrelated section. Alt text describes what the image shows, while surrounding paragraphs explain its significance within the article.
An image’s title and alt attributes serve different purposes; filling in the title attribute does not mean you have supplied alt text. If a website has separate mobile and desktop versions, Google’s documentation also requires images on both versions to use the same descriptive alt text, along with corresponding titles, captions, and filenames. The images themselves must still be accurate and clear; even the best description cannot make up for a misleading product photo.
Image naming and alt text: perspectives from across the web
Does the same chart need identical alt text when used in different sections?
Not necessarily. Adjust it to reflect what the image is intended to convey in each location rather than reusing the same sentence every time. Semrush gives an example of how the same chart can have different alt text depending on the point it illustrates. However, if a chart contains a large amount of data, short alt text may not convey it fully. Another article cautions that turning complex tables into images and relying solely on alt text to list the data may not be appropriate.
Do purely decorative images need descriptions too?
If an image is purely decorative, Semrush recommends not writing descriptive alt text for it, to avoid distracting people who use assistive technology. Another article recommends using CSS to display purely decorative images. First, confirm that the image truly conveys no information and serves no function. If it helps readers understand the page, it should not be disregarded simply because it looks decorative.
How should filenames distinguish different sizes of the same image?
You can append the width and height to a filename that identifies the image, making versions easier to distinguish. If there are only two sizes, some people use different suffixes instead. One user shared that they use “640x480” to indicate dimensions, or “s” and “b” to distinguish two versions. This is a personal file-management approach, not a search engine requirement. If you adopt it, make sure your team understands what each suffix means.
Are a good filename and alt text enough when using Creative Commons images?
No. When using these images, you should also check the license type at the original source and provide appropriate attribution as required by the license. Descriptive filenames and alt text that naturally describe the scene and location can provide context, but they do not replace checking the license. The specific attribution format should follow the license terms applicable to that image.
References
- 行動版Content優先索引系統的最佳做法 | Google 搜尋中心 | Documentation | Google for Developersdevelopers.google.com — Source used in the article above.
- 搜尋引擎最佳化 (SEO) 入門指南:基本概念 | Google 搜尋中心 | Documentation | Google for Developersdevelopers.google.com — Source used in the article above.
- Image SEO: How to Optimize Images for Search Engines & Userswww.semrush.com · 2020-07-14T11:00:00Z — Discusses: Does the same chart need identical alt text when used in different sections?; Do purely decorative images need descriptions too?
- 圖片優化會影響SEO排名?圖片優化5步驟+7技巧報你知welly.tw · 2024-10-08T03:34:04.485Z — Source used in the article above.
- AI Overviews Now Answer Most Local Searches – How To Get Your Business Citedwww.searchenginejournal.com · 2026-07-22T09:30:25+00:00 — Discusses: Are a good filename and alt text enough when using Creative Commons images?
- Website圖片不同size的jpg圖檔的命名規則www.mobile01.com — Discusses: How should filenames distinguish different sizes of the same image?
- Img AltWhat does it mean?好的替代文字怎麼寫?SEO專家教你7秘訣!welly.tw · 2022-03-01T02:46:06.543Z — Discusses: Do purely decorative images need descriptions too?
- Common UX Accessibility Mistakes Found on Websitesneilpatel.com · 2022-09-30T19:00:00+00:00 — Discusses: Does the same chart need identical alt text when used in different sections?
- More than bling: How SEO can help your jewelry brand get foundyoast.com · 2026-10-30T14:46:12+00:00 — Source used in the article above.
- SEO 教學:45 個Website新手處理 SEO 要注意的小技巧和清單ithelp.ithome.com.tw — Source used in the article above.


Join the discussion 0 comments
What are you working through? Share a question or experience and let’s find the next step.
No comments yet. Start the conversation.