A broken image on your website is one of those small problems that can make a big difference. Instead of a photo of your product, your team, or your work, visitors see a small empty box or a little torn-picture icon. It looks careless, even when the rest of your site is well made, and it can quietly put people off doing business with you. The good news is that most broken images are easy to fix once you know where to look.
A broken image usually means the browser could not find the picture file, or could not load it for some other reason. The file may have been moved, renamed, or deleted. The link to it may have a small typing mistake. Or the image may have been uploaded to the wrong folder. None of these are serious problems, and none of them need a developer to solve in most cases. With a calm, step-by-step check, you can find the cause in a few minutes and put the right picture back in place.
Before you change anything, take a moment to look at the problem properly. Open the page in your browser and note exactly which images are broken. Is it one image or several? Is it on one page or across the whole site? If only one image is broken, the problem is probably with that single file. If many images are broken at once, something bigger has changed, such as a folder being moved or a website address changing. This simple observation saves time, because it tells you whether to look at one file or at the site as a whole.
Find out why the image is broken
The first step is to find the address of the image that is not loading. In most browsers, you can right-click on the broken image area and choose an option like "Open image in new tab" or "Copy image address". If the new tab shows an error message, the browser is telling you it cannot find the file at that address. Read the address carefully. It will show you the folder and the file name the page is looking for.
Now compare that address with the file you actually have. Open your website's media library or file manager and search for the image by name. If you cannot find it at all, the file was probably deleted or never uploaded. In that case, the fix is simple: upload the image again and make sure it goes to the right folder. If you can find the file but its name is slightly different from the address, you have found the problem. A single changed letter, an extra space, or a different capital letter is enough to break the link.
Check the file type and the file size
Sometimes the file exists and the name is right, but the image still does not show. The file type may be the cause. Most websites use JPG, PNG, or WebP images. If someone saved a picture in an unusual format, such as a TIFF or a BMP file, many browsers will not display it. Converting the image to JPG or PNG usually fixes this straight away. If you are not sure which format to use, JPG is a safe choice for photos, and PNG is a good choice for logos and graphics with sharp edges.
Fix the link or replace the image
Once you know the cause, the fix is usually straightforward. If the file was deleted, upload it again and check that the page shows it. If the file name was wrong, correct the name in your media library or fix the link in the page editor so that it points to the right file. If the image was uploaded to the wrong folder, move it to the folder the page expects, or update the link to point to where the file actually is. After each change, reload the page in your browser and check whether the image appears. It is better to fix one thing at a time and test after each step, so you know exactly what worked.
If your website runs on WordPress, there is another common cause worth checking. When a site moves to a new domain name or changes from http to https, old image links can still point to the old address. These links may stop working, and every image that uses them will break at the same time. If you have recently changed your domain or added a security certificate, this is a likely cause. A search-and-replace in the database can update the old links, but that is a job to do carefully, and it is wise to make a backup first. You can learn more in our guide on how to make a simple backup of your website before making changes.
Prevent broken images in the future
A few simple habits will prevent most broken images from happening again. First, always upload images through your website's own media library rather than linking to pictures hosted somewhere else. Images hosted on another site can disappear without warning if that site changes or removes them. Second, give every image a clear, simple file name before you upload it, and avoid renaming files after they are already used on a page. Third, when you delete an image from your media library, check first whether it is used on any page. Deleting a file that is still in use will break every page that shows it.
Frequently asked questions
Why does my image show on my computer but not on the website?
This usually happens because the image on your computer is linked from your hard drive rather than uploaded to the website. The browser on your computer can see the local file, but visitors cannot. Upload the image to your website's media library and link to the uploaded copy instead.
Can a broken image hurt my website in search results?
A single broken image will not ruin your search rankings, but a site with many broken images gives visitors and search engines a poor impression. It can also slow down pages and make people leave sooner. Fixing broken images is a simple part of keeping your site in good shape.
What should I do if all the images on my site break at once?
When every image breaks at the same time, the cause is usually something that affects the whole site, such as a domain change, a security certificate problem, or a folder being moved. Check whether your website address has changed recently, and contact your hosting provider if you cannot find the cause yourself.
Should I use alt text on my images?
Yes. Alt text is a short description of an image that appears if the image cannot load, and it is read out by screen readers for visitors who cannot see the picture. Write a short, honest description of what the image shows, such as "Blue ceramic mug on a wooden table". It helps visitors and supports accessibility.
If a broken image keeps coming back, or if several images break at once and you cannot find the cause, it may be time to get a second pair of eyes on your site. Shehryar Noor has been designing and building websites since 2018, and has built more than 80 websites for small businesses, so he can track down the problem and fix it properly. Contact Shehryar Noor to talk about your website and get the help you need.