Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Broken images on your website: how to find and fix them

SEO-199Medium impactDetectedBy FunnelGuardPublished Updated
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.

How a broken image hurts a landing page
  1. Ad or search clickVisitor reaches the landing page
  2. Hero image requestedImage URL returns 404
  3. Page looks untrustworthyEmpty box where the product should be
  4. Form or checkoutFewer visitors continue

The page loads, but the visual that carries the offer does not.

Illustrative effect on conversion rateExample numbers
Illustrative effect on conversion rate (example)Images load: 3 %; Hero image broken: 2.1 %01232.1Images loadHero image broken%

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.

Find broken images
  1. 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.

  2. 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.

  3. Check the Console

    Open the Console tab and look for messages like 'Failed to load resource' or 'Mixed Content' naming an image URL.

  4. 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.

  5. Test from another device and network

    Hotlink protection, CDN rules and geo rules can break images for some visitors only.

Paste in the browser console to list broken images on the current pagejavascript
[...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.

Common causes and the fix
SymptomLikely causeFix
404 Not FoundFile deleted, renamed or movedRe-upload the file or correct the URL
403 ForbiddenHotlink protection, CDN or permission ruleAllow your own domain or fix file permissions
Mixed content warninghttp:// image on an https:// pageChange the URL to https://
Works on some pages onlyRelative path breaks in subfoldersUse root-relative or absolute URLs
Broke after a migrationOld domain or upload path still in contentSearch and replace old URLs
Fix broken images by platform
  1. 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.

  2. 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.

  3. Check plugins and CDN

    Temporarily disable image optimisation, hotlink protection or CDN plugins and see whether images return. Then fix that plugin's settings.

Apache: redirect a moved image folderhtaccess
RedirectMatch 301 ^/old-images/(.*)$ /images/$1
Use a full https URL and keep alt texthtml
<img src="https://www.example.com/images/product-blue.jpg" alt="Blue running shoe, side view" width="800" height="600">
Product page before and after

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

Confirm the fix
  • 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: no_broken_resources on journey pages.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.