Apollo Editor
Windows 10 & 11 Buy now · $69.95
Troubleshooting

Images Not Showing on Your Website After Uploading? How to Fix It

Images work on your PC but not online? Check file paths, upper and lower case, missing uploads, local C:\ paths and unsupported formats.

Updated 4 minute read The Apollo Editor team

When images show on your PC but not on your live website, the cause is almost always the image path. The HTML may point to a file on your own computer (such as C:\Users\...), the image may not have been uploaded, the folder may be different on the server, or the capital and small letters in the file name may not match. Fix the path so it is relative to the page, upload the image to the matching folder, and make the name match exactly.

This guide goes through each cause in the order you are most likely to hit them, with a quick way to find which one applies to you.

First, find out which address is failing

Before guessing, let the browser tell you what went wrong:

  1. Open the page with the missing image on your live site.
  2. Press F12 to open the browser's developer tools.
  3. Open the Console tab and look for an error mentioning the image, or open the Network tab, reload the page and look for the image shown in red, often with a 404 status.
  4. Note the full address the browser tried to load.

Then compare that address with where the file really is on the server. The difference usually points straight at one of the causes below. You can also right-click the broken image and open it in a new tab to see the address.

Cause 1: The path points to your own computer

If you inserted the image by browsing your hard drive, some tools write the full local path into the HTML, for example <img src="C:\Users\Sam\Desktop\site\images\logo.png"> or file:///C:/Users/.... It works on your PC because the file is there. Visitors' browsers cannot reach your hard drive, so they see nothing.

The fix is a relative path, which describes where the image is compared with the page: <img src="images/logo.png" alt="Company logo">. Search your HTML for C:\, C:/ and file:// to find any others.

Cause 2: The image was never uploaded

It is easy to upload your HTML pages and forget the images folder, or to add a new image locally and upload only the page that uses it. Check on the server that the image file exists in the folder the address expects. If it is missing, upload it.

Cause 3: Upper and lower case do not match

Windows treats Logo.PNG and logo.png as the same file, so on your PC the image loads either way. Many web servers, especially those running Linux, treat them as two different files. If the HTML says logo.png and the file is called Logo.PNG, the image is not found online.

The simplest long-term fix is a naming habit: use lower case letters, numbers and hyphens only, such as team-photo-2026.jpg. Rename the files and update the HTML to match. The same applies to folder names: Images/ and images/ are different on these servers.

Cause 4: The folder structure is different on the server

Relative paths only work if the folders on the server match the folders on your PC. Problems happen when:

  • You uploaded the pages into one folder and the images into another.
  • Your site folder was uploaded inside the public folder, so everything is one level deeper than expected.
  • A page in a subfolder uses images/photo.jpg when it needs ../images/photo.jpg to go up a level first.
  • The path starts with /, which means "from the root of the domain". That is fine when the site is at the root, but breaks if the site lives in a subfolder.
Path in the HTMLWhere the browser looks
images/photo.jpgAn images folder next to the current page
../images/photo.jpgAn images folder one level above the current page
/images/photo.jpgAn images folder at the root of the domain
C:\...\photo.jpgThe visitor's own hard drive, so it fails

Other causes worth checking

Spaces and special characters in file names

A file called my photo (1).jpg can work locally and fail online, or work in one browser and not another. Rename it to something like my-photo-1.jpg and update the HTML.

Wrong file extension or format

Check that the extension in the HTML matches the real file: .jpg and .jpeg are not interchangeable in a path. Also make sure the format is one browsers display. JPEG, PNG, GIF, WebP and SVG are widely supported. Formats such as HEIC from phones, or TIFF and BMP from older software, should be converted before use.

Images set in CSS

Background images in a stylesheet use paths relative to the CSS file, not the page. If your stylesheet is in a css folder, a background image in images usually needs url("../images/bg.jpg").

Upload or caching problems

A transfer that was interrupted can leave a damaged or empty file on the server. Upload it again. If you replaced an image but still see the old one, your browser may be showing a cached copy, so try a private window.

The easier way: relative image paths handled in Apollo Editor

Apollo Editor is a Windows desktop HTML editor that manages image paths for you, so pictures that work on your PC keep working when you publish.

  • Relative path management when you drag in an image or choose one from a file.
  • An Image Properties dialog for the file, alt text, size, alignment and links.
  • Site Explorer tools to organize assets and update links when files are renamed or moved.
  • Publishing that identifies changed files, so new images are not left behind.

Your site stays as ordinary HTML, so these paths work on any host. To go further, read how to insert an image in HTML, the best image format for websites and how to organize your website folder.

Frequently asked questions

Why do my images show on my PC but not online?

Often the path points to a file on your computer, such as C:\Users\..., the image was not uploaded, or the file name case does not match.

Does capitalization matter in image file names?

On many web servers, yes. Photo.JPG and photo.jpg are different files, so the name in the HTML must match exactly.

How can I see why an image is not loading?

Open your browser's developer tools and check the Console or Network tab, which shows the exact address that failed.

Get three guides like this every month, plus software update notices.Subscribe →