How to mark decorative images with empty alt text
Give every purely decorative image an empty alt attribute (alt=""), so screen readers skip it instead of reading out a file name or a pointless description. Images that carry meaning still need real alt text.
Some images on your site are there only to look nice: a swirl behind a heading, a divider line, a stock photo of a smiling team that adds nothing to the words next to it. A visitor using a screen reader does not need to hear about these. The correct way to tell the screen reader to skip them is an empty alt attribute, written alt="".
The problem appears when a decorative image has no alt attribute at all, or has filler text. Then a screen reader may read out the file name (something like "IMG underscore 4521 dot jpg") or a vague description such as "image" or "decorative swirl". Repeated across a page, this is tiring and confusing.
What people experience
A sighted visitor sees nothing wrong. A blind or low vision visitor hears clutter between the parts that matter. A page with ten decorative images and no empty alt can mean ten pieces of noise to listen through before reaching the content.
This is covered by WCAG success criterion 1.1.1 (Non-text Content). It says decorative content should be implemented so assistive technology can ignore it.
Why it matters
- Trust and sales: people who rely on screen readers will leave a site that is noisy and hard to follow, and they are potential customers.
- Legal and procurement: accessibility rules in many countries point to WCAG, and larger customers sometimes ask for it. Fixing basic issues like this is cheap insurance.
- Search: alt text on meaningful images helps search engines understand them. Keeping filler out of decorative images keeps your real descriptions clear.
- Quality: the same care that fixes this tends to improve the whole page for everyone.
Decorative or meaningful? A quick test
Ask: if this image vanished, would a visitor lose any information? If not, it is decorative.
- Decorative: background flourishes, spacers, icons next to a text label that already says the same thing, pure mood photos.
- Meaningful: product photos, charts, a photo of the owner on the About page, logos that identify your business, screenshots that explain a step.
- Watch out for images inside links or buttons. If an image is the only content of a link, it needs alt text that says where the link goes, not an empty alt.
How to check your site for free
- Look at the page source. Right click the page, choose View page source, and search for
<img. Decorative ones should showalt="". An<imgwith noaltat all is the problem. - Run Lighthouse. In Chrome, open DevTools (F12), go to the Lighthouse tab and run an Accessibility audit. It flags images without an alt attribute.
- Use a browser extension. WAVE and axe DevTools are free, well-known checkers that mark images on the page and show their alt text.
- Listen to it. NVDA (free on Windows) or VoiceOver (built into Mac and iPhone) will read your page aloud. Listen for file names or "image" announcements.
Note that automated tools cannot judge whether an image is truly decorative. They can find a missing alt attribute, but you decide which images are decorative.
How to fix it in general
In the HTML, the fix is one attribute:
<img src="/images/divider.png" alt="">
A few rules:
- Use
alt=""with nothing between the quotes. Do not use a single space, which some software handles inconsistently. - Do not leave the attribute out. A missing attribute and an empty one behave differently.
- Do not add a
titleattribute to a decorative image, since that can give it a name again. - If the image is purely visual styling, a CSS background image is often better. Screen readers ignore those, so no alt is needed.
- You may see
role="presentation"oraria-hidden="true"suggested. They can work, but empty alt is the simplest and most widely supported method for an<img>tag.
Fixing it on common platforms
Menu names change between versions and themes, so look for the idea rather than the exact label.
- WordPress: in the block editor, select the Image block and look in the sidebar for the alt text field. Recent versions have a toggle to mark an image as decorative. Otherwise, leave the alt field empty. Images added by themes or page builders may need a setting change or a code edit. See the WordPress guide.
- Shopify: product image alt text is set in the product editor. Decorative images that are part of the theme are usually controlled in the theme editor or the theme code, and it depends on the theme. See the Shopify guide.
- Wix: open the image settings in the editor and look for alt text options. Newer editors offer a way to mark an image as decorative. See the Wix guide.
- Squarespace, Webflow, Elementor, WooCommerce: the pattern is the same. Find the image settings, look for an alt text or decorative option, and leave the alt empty if there is no dedicated switch. Some page builders insert text automatically (such as the file name) when the field is blank, so always check the published page afterwards.
If your platform will not let you save an empty alt, ask your developer to adjust the template, or move the decoration into a CSS background.
How to confirm the fix worked
- Open the live page (not the editor preview) and view the source.
- Search for the image file name and check that the tag shows
alt="". - Re-run Lighthouse or WAVE on that page and compare the results.
- If you can, listen to the page with a screen reader and confirm the decorative images are skipped.
- Clear your site cache if you use caching, since old versions may still be served.
How to stop it coming back
- Make it a habit when uploading. Before saving an image, decide: meaningful or decorative? Write real alt text or mark it decorative.
- Give your team a short rule. One sentence is enough: "If the image adds no information, leave alt empty. If it does, describe it briefly."
- Check theme and template updates. A new theme or page builder update can reintroduce missing alt attributes, so re-test key pages after changes.
- Re-audit regularly. In SiteMonday, week 7 is the accessibility audit (WCAG 2.2), and the report includes a ranked fix list. SiteMonday finds and explains the problem, and the fix itself is up to you or your developer.
Related accessibility problems often show up on the same pages, so it is worth looking at images and forms together when you are already cleaning up a page.
Step by step for your platform
- Decorative images not marked with empty alt on WordPress
- Decorative images not marked with empty alt on Shopify
- Decorative images not marked with empty alt on Wix
- Decorative images not marked with empty alt on Squarespace
- Decorative images not marked with empty alt on Webflow
- Decorative images not marked with empty alt on Elementor
- Decorative images not marked with empty alt on WooCommerce
Questions
What does alt="" actually do?
It tells screen readers and other assistive technology that the image is decorative, so it is skipped. Sighted visitors see no difference.
Is a missing alt attribute the same as an empty one?
No. With no alt attribute, a screen reader may read the file name or announce the image, while an empty alt tells it to ignore the image on purpose.
Should my logo have empty alt text?
Usually not. A logo identifies your business, so give it alt text such as your business name. If it is the only content of a link to your home page, the alt text should reflect that purpose.
Can I just write a short description for every image to be safe?
It is better not to. Describing decorative images adds noise for screen reader users, so reserve descriptions for images that carry information.
Do CSS background images need alt text?
No. Screen readers ignore CSS backgrounds, which makes them a good choice for purely decorative visuals. Just make sure no important information is only shown in a background image.
Will fixing this improve my search ranking?
Not directly in any way I can promise. Good alt text on meaningful images helps search engines understand them, and keeping decorative images empty keeps the useful descriptions clear.