Broken Image Checker

Last updated: What’s new

Enter a page URL to scan for broken images:

How the Scanner Works

  1. Fetch the page, the host is validated, then the HTML is read.
  2. Collect images, img src is used when present; only the first srcset candidate is used when src is absent. Custom data-src and JavaScript changes are not read.
  3. Test each one, images are requested and their status codes recorded.
  4. List the broken ones, you get a clear report of what failed.

Why It Matters

  • User trust, missing images make a site look neglected.
  • Layout stability, broken images can worsen layout shift.
  • Image SEO, missing files cannot rank in image search.
  • Crawl efficiency, fewer dead requests for bots to chase.

Broken images tend to creep in over time as files get renamed, moved, or deleted, which is exactly the kind of slow rot our website maintenance services catch and fix before your visitors do.

Common Broken-Image Causes & Fixes

Most broken images trace back to a handful of recurring causes. Match the symptom you are seeing, usually a status code or a blank space where the picture should be, to the cause below, then apply the fix. The scanner above reports the status code for each image to help you tell these apart.

Cause Symptom Fix
404 / wrong path Image returns 404; the src points to a folder or filename that does not exist. Correct the src (and srcset) to the real file location; watch for missing segments after a migration.
Renamed / deleted file Previously working image now 404s after an edit, cleanup, or media-library change. Restore or re-upload the file, then update the link to the new URL.
Mixed content (http on https) File exists but is blocked; browser console warns about insecure content on an HTTPS page. Serve every image over HTTPS; update hard-coded http URLs to https.
Hotlink blocked External image returns 403 (listed as not verified); it loads on its origin but not when embedded on your site. Host your own copy of the image, or get a permitted, stable URL.
Case-sensitive path Image 404s on Linux hosting though it worked on Windows or macOS. Match the filename case exactly (e.g. photo.jpg vs Photo.JPG).
Lazy-load misconfig Blank or placeholder image; the real URL sits in data-src and never swaps in. Ensure the lazy-load script initialises; provide a valid fallback src or noscript image.

If broken assets keep reappearing, ongoing website maintenance services monitor your pages and fix missing images, mixed content, and bad paths before visitors notice.

What’s new

  • Images with unquoted attributes are now found, an HTML page served in place of an image counts as broken, a 403 to HEAD is retried with GET, and alt="" counts as decorative instead of missing.

  • Images that time out, refuse the check, are rate limited or show a bot check are listed as not verified, not broken. An image whose server refuses our 64-byte range request is checked with an ordinary GET.

Broken Image Checker: FAQ

What does the Broken Image Checker scan?
It fetches one public page, extracts unique image URLs from img elements, and tests each URL with a HEAD request. If HEAD returns any 4xx or 5xx status, or does not say the file is an image, the checker retries with a small ranged GET request for the first 64 bytes. When the server refuses that ranged request, it makes the ordinary GET a browser makes, reads only the first bytes and stops. The result includes the image URL, response status when available, and whether the request succeeded.
Which responses are marked as working, broken or not verified?
A 200 to 399 response that is an image (by its Content-Type, or by its first bytes when the type is missing) is treated as working. An image is broken only when the answer to an ordinary request says so. A missing image is HTTP 404 or 410, another definite client error, an HTML page served in place of the image, a domain that does not exist, or a certificate a browser would refuse. A server error on this check (HTTP 500 or 501) is also counted as broken, because the site owner can act on it, but it is labelled as a server error and never as missing: the file may still exist. No answer within eight seconds, a refusal or sign-in request (HTTP 401 or 403, often hotlink protection), an HTTP 451 answer to our request (unavailable for legal reasons), a rate limit (HTTP 429), a temporary or gateway error (HTTP 408, 502, 503, 504 and every other 5xx), a version of HTTP our client cannot use (HTTP 505) and a bot check are listed as not verified: they are not counted as broken or as working, and the result is marked partial.
Why does the report say the scan was truncated?
The endpoint checks at most 40 unique image URLs with four concurrent workers and a 25-second budget for the image checks. When the cap or time limit stops the sample, truncated is set and the counts show how many were found versus checked. Do not treat a clean partial result as a complete page scan.
How does the checker handle srcset and lazy-loaded images?
It uses src when present and falls back to the first srcset candidate, then to data-src, data-lazy-src or data-original, only when src is absent. It does not execute lazy-loading JavaScript, so images injected after rendering can be missed. Images inside HTML comments, scripts and templates are not counted.
Are missing alt text and broken image requests the same issue?
No. The report counts images with no alt attribute separately from URLs that fail to load. An empty alt value (alt="") marks a decorative image, which is correct under WCAG, so it is counted as decorative rather than missing. A reachable image can still need meaningful alt text. Review the image purpose before editing alt text.
Why are some images listed as not verified?
An image host may block the scanner, require cookies or a referrer, rate-limit requests, show a bot check, or respond too slowly. When no request (HEAD, the ranged GET or the ordinary GET) gives an answer that settles the image, it is listed as not verified instead of broken. Open the page itself and inspect the browser network panel before replacing the asset.
How should I fix a confirmed broken image?
For a missing image (HTTP 404 or 410, or a page in place of the file), correct the src and relevant srcset values, restore or re-upload the file, update a moved CDN URL, or remove the image when it is no longer needed. Preserve explicit dimensions or aspect ratio so the repair does not introduce layout shift. For a server error on this check (HTTP 500 or 501), the file may still exist: check again later, look at the server error log when it is your own server, or tell whoever runs the image host.
What data is sent during a broken image scan?
The public page URL is sent to the Web Aloha API. The server reads up to the first 2 MB of its returned HTML (a larger page is reported as partial) and requests a bounded sample of up to 40 public image URLs. Private-network hosts are blocked, no login is requested, and the endpoint contains no application-storage step for the URL or results.

Free Website Audit

Not sure what to fix first on your own website? We'll review it and tell you, in plain English, within 48 hours. Free and non-obligatory.

Want a Polished, Fast Website?

We audit and fix broken assets, optimise images, and tune Core Web Vitals for a flawless experience.