Seoxpert.io
mediumBest Practices

Broken Images (404 / 5xx / Timeout)

One or more image URLs on your site do not load due to 404, 5xx errors, or timeouts.

By Seoxpert Editorial · Published

Why it matters

Broken images degrade user experience by displaying placeholders or broken icons, reducing trust and professionalism. They also prevent images from being indexed by Google or displayed in social and search previews, which can hurt traffic and engagement.

Impact

Leaving this unresolved results in poor UX and lost image search and social traffic.

How it's detected

An automated crawler attempts to fetch each image URL and flags those that return 404, 5xx, or timeout errors.

Common causes

  • Image was deleted or renamed without updating references
  • CDN cache invalidation missed some assets
  • Incorrect or outdated image URLs in HTML or CMS fields
  • Hotlinking to external images that are no longer available

How to fix it

Update or replace broken image URLs with valid ones, or remove the <img> tag if the image is no longer needed. For CMS sites, perform a media audit after renaming or deleting images. For Open Graph images, ensure the og:image URL is absolute and points to a stable, accessible path. Consider adding a CI check to fetch all image URLs in your sitemap and fail the build if any return non-200 responses.

Code examples

Broken image reference (problem)

<img src="/images/team-photo-2022.jpg" alt="Our Team"> <!-- 404 Not Found -->

Fixed image reference (solution)

<img src="/images/team-photo-2023.jpg" alt="Our Team"> <!-- 200 OK -->

FAQ

How can I quickly find all broken images on my site?

Use automated crawlers or site audit tools that check each image URL for 404, 5xx, or timeout errors.

What should I do if an image was deleted from my CMS?

Update or remove all references to the deleted image in your site's content.

Why do broken images affect social sharing?

Social platforms rely on og:image for previews; if the image is broken, previews will be missing or display errors.

Can broken images affect SEO rankings?

While broken images don't directly affect rankings, they harm user experience and prevent images from being indexed, which can reduce traffic.

Found this issue on your site?

Run a scan to see if Broken Images (404 / 5xx / Timeout) affects your pages.

Scan my website →