On this page
What this issue is
A broken image happens when a page asks for an image file and the request fails. The browser then shows a small empty icon, a blank gap, or the alt text instead of the picture. The page itself still loads, so nobody gets an error message and the problem often goes unnoticed.
Common causes: the file was deleted or renamed, the site moved to a new domain or folder and old paths no longer work, a CDN or hotlink protection blocks the request, the URL has a typo or wrong case (Hero.JPG vs hero.jpg), or the image is served over http:// on an https:// page and blocked as mixed content.
Why it costs you leads or sales
Visitors judge a page in seconds. A missing product photo, logo, trust badge or hero image makes the site look neglected, and people are less willing to hand over an email address or a card. If the broken image is the product shot or the proof on a landing page, the offer itself is weakened.
There is a search side too. Images that return errors cannot appear in Google Images, and many broken files point to larger problems such as bad redirects after a migration. Broken images also trigger failed requests that slow rendering and clutter your logs.
- Ad or search clickVisitor reaches the landing page
- Hero image requestedImage URL returns 404
- Page looks untrustworthyEmpty box where the product should be
- Form or checkoutFewer visitors continue
The page loads, but the visual that carries the offer does not.
Example: a landing page converting at 3.0% with working images and a lower rate when the hero image is broken. Your numbers will differ.
How to check if your site has it
Start with the pages that matter most: landing pages, product pages, the checkout and the contact page. Then widen out to the whole site.
Look at the page in a private window
Open the page logged out so you see what visitors see. Look for empty boxes, missing logos and alt text showing where a picture should be.
Check the Network panel
In Chrome, press F12, open Network, filter by Img, reload the page and look for rows with a red status such as 404 or 403.
Check the Console
Open the Console tab and look for messages like 'Failed to load resource' or 'Mixed Content' naming an image URL.
Run a site crawl
Use a crawler such as Screaming Frog (Images tab, filter for client error 4xx) or the Pages and Page indexing reports in Google Search Console to find image URLs that error across the whole site.
Test from another device and network
Hotlink protection, CDN rules and geo rules can break images for some visitors only.
[...document.images].filter(i => i.complete && i.naturalWidth === 0).forEach(i => console.log(i.currentSrc || i.src));How to fix it
The fix depends on why the file fails. Work out which of these applies, then use the matching platform steps.
| Symptom | Likely cause | Fix |
|---|---|---|
| 404 Not Found | File deleted, renamed or moved | Re-upload the file or correct the URL |
| 403 Forbidden | Hotlink protection, CDN or permission rule | Allow your own domain or fix file permissions |
| Mixed content warning | http:// image on an https:// page | Change the URL to https:// |
| Works on some pages only | Relative path breaks in subfolders | Use root-relative or absolute URLs |
| Broke after a migration | Old domain or upload path still in content | Search and replace old URLs |
Check the Media Library
Go to Media > Library and confirm the file exists. Re-upload it if not, then reselect it in the page or post.
Fix URLs after a move
If the domain or http/https changed, use a search-and-replace tool or WP-CLI: wp search-replace 'http://old.example' 'https://new.example' --dry-run, then run it without --dry-run.
Check plugins and CDN
Temporarily disable image optimisation, hotlink protection or CDN plugins and see whether images return. Then fix that plugin's settings.
Check Content > Files
In admin go to Content > Files and confirm the image is there. Re-upload if it was deleted.
Reselect product images
Open the product in Products, check the media section, and re-add any image that shows an error.
Check theme code
In Online Store > Themes > Edit code, look for hard-coded image URLs and replace them with files from Content > Files or with asset_url or image_url filters.
Check the Assets panel
Open Assets and confirm the file exists. Re-upload and reselect it on the element if it is missing.
Check custom code embeds
Embeds and custom code can contain hard-coded image URLs. Update or remove any pointing to files that no longer exist.
Replace the image
Click the broken image in the editor, choose Change Image and pick a file from the Media Manager or upload it again.
Check external URLs
If you used an image from another site, upload your own copy instead so it cannot disappear.
Replace the image block
Edit the page, click the image block and upload the file again from your device.
Check Code Injection
In Settings > Developer Tools > Code Injection (plan dependent), look for hard-coded image URLs.
Check Media Storage
In the Media Library, confirm the file still exists. Re-upload it if not.
Reselect the image in the builder
Open the funnel or website page, click the image element and choose the file again. Check custom code blocks for old URLs.
Fix the path
Confirm the file exists on the server at the exact path and case used in the src attribute.
Add a redirect for moved files
If files moved, add a 301 redirect from the old path to the new one in your server config.
Add a fallback
Optionally use an onerror handler or a picture element fallback so a failure shows a safe default image.
RedirectMatch 301 ^/old-images/(.*)$ /images/$1<img src="https://www.example.com/images/product-blue.jpg" alt="Blue running shoe, side view" width="800" height="600">Before
- Main product photo returns 404
- Empty box and alt text shown
- Visitors unsure what they are buying
After
- File restored and URL corrected
- Photo loads over https
- Page looks complete and trustworthy
How to confirm it's fixed
- Hard refresh the page (Ctrl+Shift+R or Cmd+Shift+R) and see the image
- Network tab shows 200 for every image request
- Console has no failed resource or mixed content messages
- The image URL opens on its own in a private window
- Check on mobile and on a second network
- Clear your CDN or caching plugin cache, then test again
- Re-crawl the site and see no 4xx image URLs
How to prevent it happening again
- Do not delete files from the media library without checking where they are used
- Upload your own copies of images instead of linking to other sites
- Keep file names stable; avoid renaming after publishing
- Run a search-and-replace and a full check after any domain, theme or hosting migration
- Add redirects whenever image paths change
- Crawl the site on a schedule and check key pages after every release
How FunnelGuard handles this
FunnelGuard detects this today. Its no_broken_resources check runs on the pages in your monitored journeys, where a robot visitor loads each page on a schedule and looks for resources, including images, that fail to load. If one does, the failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.
This covers the pages on your journeys, such as landing pages, forms and checkouts, not every page of your site. Use a site crawler for a full sweep. The Free plan includes 1 site and 2 journeys with daily checks and no card, and paid plans start with a 3-day free trial.
Questions people ask
Why are my images not showing on my website?
Usually the image URL returns an error. The file may have been deleted, renamed or moved, the path may have a typo or wrong letter case, or a CDN or hotlink rule may block it. Open the browser's Network tab, filter by Img and check the status code of the failing request.
How do I find all broken images on my website?
Run a crawler such as Screaming Frog and filter the Images report for 4xx errors. For a single page, open Chrome DevTools, go to Network, filter by Img and look for red rows. You can also run a short console script that lists images with a natural width of zero.
Do broken images hurt SEO?
Yes, indirectly. Broken images cannot appear in image search, they make pages look low quality, and they often signal wider problems like bad redirects after a migration. Google does not publish a fixed penalty for them, but fixing them helps users and crawlers.
Why did my images break after a website migration?
Content often still points to the old domain, an old uploads folder or http:// URLs. Run a search and replace on the database or templates to update paths, add 301 redirects for moved files, and then re-test key pages.
Why do images show a broken icon only on some browsers or devices?
Causes include mixed content blocking, CDN or geo rules, unsupported formats such as AVIF on old browsers, and cached older versions. Test in a private window on another network and check the Console for blocked requests.
How do I fix a broken image in WordPress?
Go to Media > Library and check the file exists. If not, re-upload it and reselect it in the post or page. If the site moved, use a search and replace tool to update old URLs, and check that CDN or optimisation plugins are not blocking the file.
Can I monitor my site for broken images automatically?
Yes. FunnelGuard's no_broken_resources check loads the pages in your monitored journeys on a schedule and flags resources that fail, including images, with a screenshot and a likely cause. For whole-site coverage, also schedule a crawler.
Related issues
- SEO-195Missing alt text on imagesFix guide
- SEO-198Oversized images slowing pagesFix guide
- SEO-200Images not in modern formats (WebP/AVIF)Fix guide
- SEO-204Image CDN blocks Googlebot-ImageFix guide
- SEO-207Image hotlinks to another domain that disappearFix guide
- SEO-201Images missing width/height causing layout shiftFix guide