How to fix broken images on my website
A broken image means the browser asked for a picture and could not load it, usually because the file was deleted, moved, renamed, blocked or linked with the wrong address. Find the failing address in your browser's developer tools, then re-upload the file or correct the link.
A broken image is a picture that your page asks for but the browser cannot load. Instead of the photo you see an empty box, a small broken picture icon, or the image description (alt text) in plain letters. It is usually fixable in minutes once you know which of a handful of causes applies.
What you will see
The look depends on the browser, but the common signs are:
- A small broken picture icon where the image should be
- A blank gap, or a layout that looks squashed or shifted
- The alt text showing instead of the picture
- Images that load on one page or device but not another
- Images that appear for you but not for visitors (often a caching issue, because your browser may be showing an old saved copy)
Why it matters
Missing pictures make a site look neglected. A shop with blank product photos gives people little reason to buy, and a service page without its photos feels unfinished. Search engines cannot index an image they cannot load, so it cannot appear in image search, and a page whose key images fail is a weaker page. There is also a security angle: an image served over http on a page served over https is called mixed content, and browsers may block it or show a warning.
How to check if your site has it
All of these are free:
- Open the page, then do a hard refresh (
Ctrl+Shift+Ron Windows,Cmd+Shift+Ron Mac). Also try a private window, which skips most saved copies. - Right click a broken image and choose something like Open image in new tab (the wording varies by browser). If you get a Not Found page, the file is missing or the address is wrong.
- Press
F12to open developer tools, go to the Network tab, filter by Img and reload. Red entries with a status such as 404, 403 or 500 are your failing images. The Console tab will also list mixed content messages. - Crawl the whole site. The free version of Screaming Frog SEO Spider checks up to 500 URLs and reports the response code of every image.
- Check each page by hand if you only have a few pages. Look at the home page, top product or service pages and your contact page first.
SiteMonday looks for broken images and dead URLs in its week 6 broken links and 404 sweep, and the ranked fix list shows which pages to start with. Fixing them is still up to you or your developer.
Common causes and fixes
| Cause | What the Network tab usually shows | Fix |
|---|---|---|
| File deleted or moved | 404 | Re-upload the file, or update the image address to the new location |
| Typo, capital letters or spaces in the file name | 404 | Correct the address. Most servers treat Photo.JPG and photo.jpg as different files |
Image address starts with http on an https site | Mixed content warning | Change the address to https |
| File permissions block it | 403 | Ask your host to make the file readable. Folders are commonly set to 755 and files to 644 |
| Image hosted on another site that removed it or blocks outside use | 404 or 403 | Use your own copy of the image, if you have the right to use it |
| Site moved or domain changed | Old domain in the address | Replace the old domain in your content with the new one |
| Corrupt or unusual file type | Loads but shows an icon | Re-export as JPG, PNG or WebP and upload again |
| Cache, CDN or image optimisation problem | Old or missing files | Clear caches, purge your CDN, and temporarily switch off optimisation to test |
| Server error | 500 or 5xx | Contact your host |
The general method is the same everywhere. Find the exact address that fails, open it directly, and compare it with where the file actually lives. Either the file is not there (put it back), or the page points to the wrong place (fix the link). If the same picture fails across many pages, the cause is probably a site wide change such as a migration, a new domain or a cache.
A 404 on an image is the same kind of error as a missing page, so the 404 page not found guide helps if you see it elsewhere too.
Fixes on common platforms
Menu names change between versions and themes, so treat these as pointers.
- WordPress: Open Media, find the file and check it still exists. If you moved or cloned the site, the old domain is often still saved inside posts and needs a careful search and replace. Caching and image optimisation plugins are frequent culprits, so clear them first. See the WordPress broken images guide.
- WooCommerce: Check the product image and gallery. If only thumbnails are missing after a theme change, regenerating thumbnails (the Regenerate Thumbnails plugin is a well known option) often solves it.
- Shopify: Look in Content, then Files, and in the product's media section. Deleting a file there breaks every place that uses it. See the Shopify guide.
- Wix and Squarespace: These host your images, so the usual cause is a deleted or replaced file, or custom code or an embed pointing somewhere else. Re-upload through the media manager.
- Webflow: Check the Assets panel and any image that uses a custom link.
- Next.js: Images loaded by the
next/imagecomponent from another domain must be allowed innext.config.js(theremotePatternssetting). Files in thepublicfolder are case sensitive on most servers.
How to confirm the fix worked
- Hard refresh the page and open it in a private window.
- Check it on your phone using mobile data, which bypasses your own saved copies.
- Reopen the Network tab and confirm the Img filter shows no red entries.
- Run your crawl again and check that no image returns a 404 or 403.
- View the page after clearing any site cache or CDN cache, since old results can hide the fix for a while.
How to stop it coming back
- Before deleting anything from your media library, check where it is used.
- Use simple file names: lowercase, no spaces, no unusual characters.
- Test your key pages after migrations, theme changes, domain changes and the switch to
https. - Keep your own copy of important images rather than linking to other websites.
- Keep a recent backup so a deleted folder can be restored quickly.
- Run a crawl on a schedule, for example monthly, so new breakage is caught early. If the problem is links to other websites rather than images, see broken external links.
Step by step for your platform
- Broken images not displaying on WordPress
- Broken images not displaying on Shopify
- Broken images not displaying on Wix
- Broken images not displaying on Squarespace
- Broken images not displaying on WooCommerce
- Broken images not displaying on Webflow
- Broken images not displaying on Next.js
Questions
Why do my images show on my computer but not for visitors?
Your browser may be showing a saved copy, or the file may only exist on your computer and was never uploaded. Test in a private window and on your phone using mobile data.
Do broken images hurt my search rankings?
Broken images cannot be indexed, so they will not show in image search, and a page with missing key images is a poorer experience for visitors. Fixing them is a simple way to protect the page.
What does a 403 error on an image mean?
The file exists but the server refuses to serve it. This is commonly caused by file permissions or hotlink protection, and your host can usually fix it quickly.
Why did all my images break after moving my website?
Usually the images still point to the old domain or folder, or the files were not copied across. Check an image address in developer tools and update the old domain in your content.
Can a plugin or cache break my images?
Yes. Caching, CDN and image optimisation tools can serve old or missing files. Clear the caches, then switch the optimisation off briefly to see whether the images return.
Do I need a developer to fix broken images?
Often not. Re-uploading a deleted file or correcting an address is something most site owners can do, but server errors, permissions and code level problems may need your host or a developer.