Web

Website Images Not Showing? Fix Broken Images and File Path Problems

Talha Aslan 18 min read

Short answer

Website images not showing: what should you check first?

Website images not showing means the browser could not find the image file at the requested address, was not allowed to download it, or could not decode what it received. The fastest diagnosis is the Network tab in your browser's developer tools: the status code, URL, and content type usually reveal the cause at a glance.

Keep reading for the full details and examples

In this guide we do not leave the diagnosis to guesswork. First, we classify the symptom. Then we narrow the cause by status code, and finally we cover the lasting fix. For example, if you only see empty boxes on a phone, lazy loading or format support is the likely culprit. If you see broken icons across the whole site, a file path that broke during a migration is far more likely. Making this distinction up front saves you hours of switching plugins on and off.

Is a broken image icon the same problem as an empty space?

No, they point to different causes. A broken image icon tells you the browser requested the file but did not get a valid image back. An empty space often means the browser never requested the file at all, or a style rule is hiding it. So start by naming exactly what you see.

  • Broken icon with alt text: the path is wrong, the file is missing on the server, permissions block it, or the server returns an error page instead of an image.
  • Completely empty box: the lazy loading script did not run, the image is a CSS background and that rule never loaded, or the container has zero height.
  • Image that flashes and disappears: a script is usually swapping the image, or a plugin is rewriting the URL.
  • Problem in one browser only: format support, an ad blocker, or the cache moves to the top of the list.

Also note that blurry or cropped images are a separate issue. For that case, see our guide on fixing a blurry logo and images. Here we only cover images that never appear.

How do you diagnose website images not showing with developer tools?

There is no single perfect method, but the browser's own logs are the most reliable starting point. You can follow the steps below in Chrome, Edge, Firefox, and Safari. Menu names vary slightly by browser.

  1. Open the affected page, right-click where the image should be, and choose "Inspect" or a similar option. This takes you straight to the element in the source.
  2. Read the image URL on the element. Note whether it is relative or absolute, whether it starts with http, and whether the file name contains capital letters.
  3. Switch to the Network tab, filter by images, and reload the page with the cache disabled.
  4. Look at the red rows. Does the status column show 404, 403, or 500, or does it note that the request was blocked?
  5. Open the Console tab. Mixed content, CORS, and content security policy warnings show up here.
  6. Open the image URL in a new tab. If the file loads on its own, the problem is on the page. If it fails, the problem is on the server or in the file itself.

For phone issues, turn on device emulation in the same tools and reload. With responsive images, the browser requests a different file based on screen width. As a result, the file that works on desktop may not be the file a phone asks for.

These steps usually narrow the cause to two or three options. Next, the diagnostic table below takes you to the exact cause.

Diagnostic table: symptom, likely cause, and first check

Read the table by status code and symptom. A single row will not give you a final verdict, but it tells you where to look first.

SymptomLikely causeFirst check
404 Not FoundWrong path, missing file, uppercase and lowercase mismatchCompare the real file name on the server with the URL, letter by letter
403 ForbiddenFile or folder permissions, hotlink protection, firewall ruleCheck permissions and protection settings in your hosting panel
Mixed content warning in ConsoleImage loaded over http on an HTTPS pageChange the image URL to https
200 but no imageServer returns HTML instead of an image, or the file is corruptRead the content type of the response
No request at allLazy loading script not running, CSS rule hiding the imageSee which attribute holds the real URL
Fails only in older browsersNo WebP or AVIF supportCheck whether a fallback format exists
Fails only in some regions or networksCDN cache, stale copy, regional blockPurge the CDN cache and test the origin URL
Blocked by client noteAd blocker or browser extensionTest in a private window without extensions

For the last row, our article on the ERR_BLOCKED_BY_CLIENT error explains which file names ad blockers tend to catch.

How does a wrong file path break images?

A wrong file path is the most common reason behind website images not showing. A relative path resolves against the folder of the current page. For example, "img/logo.png" works on the homepage, but on a page under "/services/" the browser looks for "/services/img/logo.png". That is why the same image appears on one page and breaks on another.

A root-relative path starts with a slash and points to the same place on every page. However, if the site lives in a subfolder, a root-relative path now points to the wrong folder. This is the pattern we see most after migrations: a site that ran under "/project/" on a staging server moves to the root on the live server, and every path shifts by one folder.

  • First, read the image URL in the source and compare it with the real location on the server.
  • If the domain changed, search the database for absolute URLs that still use the old domain.
  • In content management systems, confirm the site address setting shows the new domain.
  • Take a backup before any bulk replace, because plain text replacement can break serialized settings.

Hardcoded paths in theme files are also easy to miss. If a logo or background image is written into the theme with the old domain, it stays broken no matter how much you clean the database. So search both the database and the theme files.

Why do uppercase and lowercase letters break images on Linux servers?

The default file systems on Windows and macOS usually treat "Logo.PNG" and "logo.png" as the same file. Linux servers treat them as two different files. Consequently, your site looks fine on your own computer, then some images return 404 the moment you upload it to a live server.

In practice, the telltale signs are consistent. The error affects only certain files, the files do exist on the server, and the URLs look right at first glance. However, a letter by letter comparison reveals ".JPG" versus ".jpg" or "Product" versus "product".

Therefore, the lasting fix is a naming rule. On new sites, our team keeps every image name lowercase, free of special characters, and separated by hyphens. For example, use "product-photo-1.jpg" instead of "Product Photo 1.JPG". This removes case errors and the encoding problems that spaces and special characters cause in URLs.

Also, when you rename existing files, update the code at the same time. If you only rename the file, every page that still calls the old name will break instead.

How do file and folder permissions block images?

If the server cannot read a file, it usually sends a 403 to the browser. This often happens after you upload files as a different user, extract them from an archive, or run a security script that changes permissions in bulk.

Shared hosting providers recommend specific permission patterns for folders and files, but the right values depend on the server configuration. So we do not give numbers here; check the recommended values in your host's documentation. Broad settings that give everyone write access may seem to solve the problem, yet they open a security hole. Avoid that route.

On the other hand, a 403 does not always mean permissions. A server firewall can also reject a request because it finds a suspicious pattern in the file name. We explain how to tell the two apart in our article on ModSecurity and 403 errors. In short, if other images in the same folder load and one file returns 403, check the file name first. If they all return 403, check permissions first.

Can hotlink protection block your own images?

Yes, a hotlink rule with an incomplete allow list can block your own site. Hotlink protection stops other websites from embedding your images directly on their pages. The server looks at where the request comes from and refuses images to sources that are not on its allow list.

In practice, the trouble usually starts with a missing entry. For example, if the list only includes the "www" version of your domain, images break on pages opened without "www". Similarly, if your CDN subdomain, checkout subdomain, or a new language domain is missing, images fail there too.

  • Check whether hotlink protection is turned on in your hosting panel.
  • Add every domain variation and subdomain you use to the allow list.
  • Allow requests that arrive with an empty referrer; otherwise some browser privacy settings will block direct visits too.

If you suspect other sites are using your images without permission, read our guide on what to do when someone uses your website images before you enable protection. There we separate the cases where hotlink rules help from the cases where a takedown notice works better.

Why does mixed content hide images on an HTTPS site?

Mixed content happens when a page loaded over HTTPS requests a resource over insecure http. According to MDN's mixed content documentation, browsers auto upgrade most image, video, and audio requests to HTTPS. However, the same page lists two key exceptions: images set through srcset or the picture element are blocked, and so are images requested from an IP address instead of a domain name.

This detail matters most on phones. Your main image may display fine while the same image inside a responsive set breaks on phones. In addition, auto upgrade only works when the other server supports HTTPS. If an old image server does not, the upgraded request fails as well.

The fix is always the same: write every image URL with https, or use a root-relative path without a protocol. Then clear each mixed content warning in the Console. For detailed steps and how to find old URLs in your database, see our mixed content error guide.

Why can lazy loading stop images from appearing at all?

Lazy loading downloads offscreen images only as the user scrolls near them. The browser's native loading="lazy" attribute usually works without trouble. Problems tend to come from script-based plugins instead. These plugins store the real URL in an attribute such as data-src and move it into src when the script runs. If the script throws an error, loads late, or another optimization plugin defers it, the image never arrives.

The web.dev article on browser-level image lazy loading also advises against lazy loading images likely to be in the viewport on page load, especially the LCP image. In other words, lazy loading your hero image adds delay and sometimes leaves an empty space.

  • Is src empty while data-src holds a URL? Then the script is not running.
  • Is there a JavaScript error in the Console? One error can stop every script after it.
  • Are two lazy loading plugins running at once? Conflicts are common, so disable one.

We cover the effect of lazy loading on speed and search visibility in our article on lazy loading and SEO.

Can missing WebP or AVIF support make images disappear?

Most current browsers support WebP, while AVIF support depends on the browser version. That is why the problem usually shows up in an old browser, an old email client, or on unmanaged devices in corporate networks. We do not state version numbers here; check the current support table in the browser vendor's documentation.

There is also a sneakier case: a file can carry a ".jpg" extension while its contents are actually WebP. Some conversion plugins cause this mismatch, and the server then reports the wrong content type. Google's image SEO best practices list BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF as supported formats and recommend that the file extension match the actual file type.

The practical fix is to serve the modern format inside a picture element with a JPEG or PNG fallback. If you need to convert files between formats quickly, you can use our image converter. After converting, update the file name and extension together.

How do a CDN and caching show stale or broken images?

A content delivery network serves copies of your images from servers close to the visitor. If that copy is stale, or if the CDN cached an error response, visitors keep seeing a broken image even after you fix the file. This is especially true when an image returned 404 for a short time and the CDN stored that response. The problem will not go away on its own.

Instead of guessing, open the origin URL and the CDN URL separately. If the origin works and the CDN URL fails, purge the cache. Also, if your CDN offers image optimization or format conversion, switch it off temporarily and test again; these features occasionally break specific files.

Some CDNs serve images from a separate subdomain. In that case, mixed content, the hotlink allow list, and whether the SSL certificate covers that subdomain all enter the picture. For example, if the certificate covers the main domain but not the image subdomain, the browser will not trust the connection and the image fails.

The browser cache misleads you in the same way. So always test in a private window with the cache disabled. For the wider SEO question, see our article on whether a CDN affects SEO.

What does it mean when the status is 200 but the image still fails?

This means the server answered "success" but did not send an image. The most common example is a server that cannot find the file and, instead of a 404, returns the homepage or a custom error page with a 200 code. The browser receives HTML, cannot decode it as an image, and shows a broken icon.

So click the image row in the Network tab and look at the content type in the response headers. For a JPEG you expect an image type. If you see "text/html", the server is sending you a page, not an image. Also, if every broken image has the same small response size, that points to an error page too.

  • Review your redirect rules, because one broad rule may send every unknown URL to the homepage.
  • Download the file and open it in an image editor. If it will not open, it was corrupted during upload.
  • If you uploaded over FTP, check the transfer mode, since text mode can corrupt binary files.

In short, a 200 code does not always mean all is well; you need to check what the response actually contains.

WordPress images not showing: which settings should you check?

On WordPress, the complaint of website images not showing usually traces back to four sources: site address settings, media folder permissions, optimization plugins, and CDN plugins. First, confirm that the WordPress Address and Site Address in the general settings match and use the right protocol.

Next, check that the uploads folder exists on the server and is readable. If a newly uploaded image shows no thumbnail in the media library, the likely cause is permissions or the server's image processing library. That possibility grows stronger when old images work and new ones break.

Optimization plugins convert images, rewrite URLs, and add lazy loading. Therefore, to isolate the issue, temporarily disable only that plugin and purge the cache. If the images return, switch the plugin's settings back on one at a time to find the feature at fault. Meanwhile, two plugins doing the same job is the most common source of conflicts, so settle on one.

Do spaces and special characters in image names cause problems?

Yes, they can. The browser sends spaces and accented characters in encoded form. If the server, the content management system, and the CDN do not decode that encoding the same way, the file cannot be found. Moreover, some systems rename files on upload while the code keeps calling the old name.

For example, a file named "winter sale é.jpg" may open fine in one environment and return 404 on another server. That is why we recommend using only lowercase letters, numbers, and hyphens in file names. This removes the technical risk and keeps the file name meaningful for image search.

If your site already has hundreds of files, do not rename them all on the same day. Fix the broken ones first, then apply the rule to new uploads. If renamed images receive links from other sites, consider redirecting the old URL to the new one.

How far can you get on your own with website images not showing?

Put simply, you can find most of the causes in the table with this guide alone. For path, file name, mixed content, and lazy loading issues, someone comfortable with code is often enough.

However, in some cases the problem comes from technical debt. If the site has passed through many hands over the years, conflicting plugins, mixed path rules, and undocumented server settings pile up. You fix one image, and a week later the same issue appears somewhere else.

In that situation, rebuilding the foundation properly can make more sense than patching it again. As Talha Aslan and team, our web design services include optimized images, clean caching and server configuration, and documented code that someone else can take over. But first, look at the example scenario and common mistakes below; your issue may be one of them.

Example scenario: only product images break after a migration

This is an example scenario, not a real client case, so treat it as an illustration. A business moves its website to a new host. The homepage and logo look fine, but some images on product pages show a broken icon. What is more, the error affects only certain products.

  1. The Network tab shows the broken images return 404. So the request goes out, but the file cannot be found.
  2. The broken URLs end in ".JPG" and the working ones in ".jpg". The old server tolerated the case difference; the new Linux server does not.
  3. Next, the team checks the database records, not just the file names, and finds some were saved in uppercase.
  4. After taking a backup, they convert both files and records to lowercase under the same rule.
  5. Finally, they purge the CDN cache and retest every product page in a private window.

The second lesson matters too. Before fixing anything, the team lists every affected product, and after the fix it opens the same list one by one. That way it closes the issue on evidence rather than on "it seems fixed". Also, exporting a full file list from the old server before a migration lets you spot this kind of issue in minutes.

The main lesson is simple: when you fix the naming rule instead of a single file, the problem does not come back.

What are the most common mistakes when fixing broken images?

In our field experience, the same mistakes come up again and again. Knowing them keeps you from creating a new problem while fixing the old one.

  • Testing without clearing the cache: the fix works, yet you see the old copy and roll back the right solution.
  • Opening permissions to everyone: it hides the 403 for a while but exposes the site to attacks.
  • Disabling plugins at random: every change made before you find the cause makes diagnosis harder. Check the Network and Console tabs first.
  • Bulk replacing without a backup: plain text replacement in the database can break serialized settings.
  • Testing on desktop only: responsive images and lazy loading behave differently on phones.
  • Using a CSS background for content images: according to Google's image documentation, Google does not index CSS images, so add content images with an img element.

The last point affects image search visibility directly. To appear in Google Images, see our image SEO guide, and for accessibility, read our alt text examples.

How do you stop images from breaking again?

You make the fix once, but prevention is a habit. Run the checklist below after every migration, theme change, and major plugin update.

  1. Keep every image name lowercase, without special characters or spaces.
  2. Call content images with a root-relative path or a full https URL.
  3. Define a fallback format next to the modern one.
  4. Do not lazy load images in the first screen.
  5. Choose one lazy loading method and turn off the second.
  6. Add every domain variation to the hotlink allow list.
  7. After each change, purge the CDN and page cache, then test in a private window.

In addition, keeping image dimensions and file weight under control also reduces the risk of images timing out on slow networks. Our article on optimizing images for speed and SEO covers sizing and compression. If the image is missing only in link previews, that is a separate meta tag topic; see our link preview image guide.

What kind of help makes sense if image problems keep coming back?

If you get a new broken image report every week, the problem is not individual files; it is how the site was built. At that point, reviewing the structure takes less time and effort than another patch.

The scope of our web design work is clear: information architecture and user experience, brand-specific design, speed through optimized images and proper caching, SEO foundations including a Search Console connection, an admin panel you can edit yourself, and documented code that others can take over. You approve the design first, and our team writes no code before that approval.

If you are thinking about rebuilding or starting fresh, you can review the process and scope on our corporate website design page and describe your needs in the quote section. We confirm scope and timeline in writing after your request.

Frequently Asked Questions

Why did my website images suddenly stop showing?
The most common cause is a file path that broke after a migration, theme change, or plugin update. Case sensitivity after moving to a Linux server, mixed content after switching to HTTPS, and lazy loading conflicts from a new optimization plugin are also frequent. Check the image status code in the browser's Network tab to narrow the cause quickly.
Why do images show on desktop but not on mobile?
Start with responsive image sets and lazy loading. According to MDN, http images set through srcset or the picture element are blocked, while the same image in src gets upgraded and displays. Script-based lazy loading can also behave differently on mobile. Turn on device emulation in developer tools and inspect the Network tab.
The image file exists on the server, so why does it return 404?
Usually because of a case mismatch. Linux servers treat Logo.PNG and logo.png as different files. Compare the URL and the server file name letter by letter, and check for spaces and special characters. A relative path may also resolve to a different folder on subpages, because it depends on the current page location.
Do WebP images display in every browser?
Most current browsers support WebP, but older browsers and some email clients may not. Check the current support status in the browser vendor's documentation. The safest approach is to serve the modern format inside a picture element with a JPEG or PNG fallback. Devices without support then display the fallback file instead of a broken image.
Can hotlink protection block images on my own site?
Yes, it can when the allow list is incomplete. For example, if only the www version is listed, images break on pages opened without www. Your CDN subdomain and other language domains need to be on the list too. Review the protection settings in your hosting panel, add every domain variation, then purge the cache and retest.
Is using a CSS background for images bad for SEO?
Yes, for content images it is. According to Google's image documentation, Google does not index CSS images. You can still use CSS for decorative backgrounds, but add meaningful images such as products, team photos, or service visuals with an img element and descriptive alt text. That way they also have a chance to appear in image search.
  • website images not showing
  • broken images
  • file path
  • mixed content
  • lazy loading
  • WebP
  • hotlink protection
Share:
Talha Aslan

Google Partner digital marketing expert. Hands-on with SEO, Google Ads, web design and e-commerce projects since 2012; every post here comes from that experience.

Next project

Get a quote for your project.

Your brief goes straight to Talha Aslan and team: strategy led by Talha, delivery by an experienced team. We reply the same day and send the scope, timeline and price as a written quote within 1 business day.