Why Are Images Not Loading on My Website?

The Venbit TeamUpdated November 29, 20267 min read

12

causes of a broken image, found with one test

A page asks for its team photo and gets a 404 back, so the browser shows the broken-image icon instead.

The short answer

An image fails to load when the browser requests it and gets no file. Paste the image address into a new tab. A 404 means the file moved or was deleted, most often in a site move. A 403 means the server refuses it. If the picture opens there, the page or your browser is blocking it.

Uploading the picture again fixes nothing until you know which of a dozen failures you have, and the browser can tell you in about a minute. The finder below starts from the test we run first.

Find your cause

Why is your image not loading?

Start with the image address test. Your answers stay in your browser.

Right-click the missing image, copy its address and open it in a new tab. What do you get?

Chrome and Safari call it Copy image address, Firefox Copy Image Link.

The console names the cause in one line

Right-click the page, choose Inspect, open the Console tab and reload. Chrome prints a line for each file that failed.

The console saysWhat it meansCheck
404 (Not Found)No file at that addressA move, a deleted file, an outside image or a failed upload
403 (Forbidden)A file is there and the server refused itHotlink protection, permissions or a firewall rule
Mixed ContentAn http image on an https pageChange the link to https
net::ERR_BLOCKED_BY_CLIENTAn extension in this browser stopped the requestAn ad blocker and the file's name
net::ERR_NAME_NOT_RESOLVEDThe image's domain did not resolveAn expired domain or a retired CDN address
Nothing about the imageThe browser never asked for itA lazy-load script that did not run
Console messages for a missing image, and the cause each points to
Three console lines from one page: a missing file, an ad blocker and an http address on a secure page.

After a site move, pages still ask for the old address

This is the cause we meet most. WordPress saves each image's full address inside the page that shows it. Move from a staging copy to the live domain, switch hosts or restore part of a backup, and the file lands somewhere new while the page keeps asking the old place.

The address saved in the page still carries the staging domain and returns 404, while the file sits at the live address.

The fix is a search-and-replace across the database, old address for new. It rewrites every page at once, so take a backup you can restore first. The Better Search Replace plugin, under Tools, has a dry run that reports how many fields would change, and WP-CLI's wp search-replace does the same with --dry-run. If the move is still ahead of you, build and test the new copy before you switch.

An http image can fail on an https page

Once a site moves to https, every image link saved as http is mixed content. MDN documents what browsers do with it: a plain image is upgraded to https and fails if no https copy exists, and an image set through srcset or a picture element is blocked outright. That is why one photo can vanish while the one beside it loads. Change the links to https, and check what else Chrome flags as not secure.

Check five inside pages after every change

Broken images hide on interior pages, so after a move, a redesign or a media clean-up, open five pages deep in the site and not the home page alone. Convert iPhone photos to JPEG at the right width for their spot before they go up. If a picture loads but looks soft, that is a different problem with its own causes. On our website maintenance plans we check the live site after each update, broken images included.

More website guides

Every question in this series, from Fix website problems.

Symptoms & emergencies17
What happens if...11
Plans & hiring1
Ownership & switching11
Platform-specific3
Seattle & local1

Questions & Answers

  • The media library reads files straight from the server, while a page asks for them over the web at a saved address. A wrong path, hotlink protection or file permissions can each break the second without touching the first.

  • Know the cost first. Cloudflare's documentation says its Hotlink Protection will prevent your images from being displayed on sites such as Google Images, Pinterest and Facebook.

Keep reading

Let’s grow your business

Tell us about your business. We would love to hear from you. Or call us at (425) 314-1415.

Join the local businesses that grow with us

  • Pawn Fathers
  • Protectee
  • Pinnacle Energy Services
  • See Clearwater Beach
  • Q Blinds
  • Domaine des Florines
  • Track & Field AI
  • Edgewater Commercial Park
  • Colour Play Salon
  • Houston Hurricane & Security