Images make a website feel alive. They show your products, your team, your work and your premises far better than words alone. But images are also the most common reason a website loads slowly. A single photo straight from a phone camera can be several megabytes, and a page full of them can take many seconds to appear. Most visitors will not wait. They leave, and they rarely come back. The good news is that fast-loading images are not complicated. A few simple habits will keep your pages quick without making your photos look worse.

The core idea is simple: only send the visitor the image they actually need, at the size they actually see. A photo that displays at 800 pixels wide does not need to be 4,000 pixels wide. A picture that looks the same at 150 kilobytes does not need to be 3 megabytes. Every step below follows that idea, and together they can cut a page's loading time dramatically.

Resize images before you upload them

This is the single biggest win, and it is the step most people skip. Photos from a modern phone or camera are far larger than any website needs. Before uploading, resize each image to the size it will actually be shown at. A full-width banner might need 1,600 pixels wide. A photo in a column of text might need 800. A small thumbnail might need 300. Uploading a 4,000-pixel image and letting the website shrink it on screen still forces the visitor to download the full file, so the saving only happens if you resize first.

Most computers have a free tool that can do this in seconds, and most website platforms have free image tools built in. Make resizing part of your routine: whenever you add a new photo, resize it first, then upload. It adds a minute to the job and can save several seconds of loading time on every visit. If your site already has many oversized images, work through the most visited pages first, since those are the ones that matter most.

Compress images without losing quality

After resizing, compress the image. Compression removes data the eye barely notices, and a good tool can cut a file to a third of its size with no visible difference. There are free online tools that do this in a browser, and WordPress and Shopify both have plugins and apps that compress images automatically when you upload them. Set one up once, and every future upload is handled for you.

As a rough guide, a normal photo on a page should be under 200 kilobytes, and often much less. A large banner image might be a little bigger, but it should still be well under one megabyte. If you find images on your site that are over a megabyte, they are worth compressing. Check your homepage first, because it is the page most visitors see, and a slow homepage colours everything that follows. A professional website design review can also find the heaviest pages on your site and show you exactly where the problem is.

Use the right file format

Not all image formats are equal. Photos with lots of colour and detail, such as pictures of people, products or places, work best as JPEG or WebP. WebP is the newer format and usually produces smaller files than JPEG at the same quality, and most modern browsers support it. Graphics with flat colours, text or sharp lines, such as logos, icons and diagrams, work best as PNG or SVG. SVG is ideal for logos and icons because it stays sharp at any size and the file is usually tiny.

One common mistake is uploading a photo as a PNG. PNG is a fine format, but it is not designed for photographs, and a PNG photo can be several times larger than the same picture as a JPEG. Another mistake is using a huge file for a tiny display, such as a 2-megabyte logo in the header. If you are unsure about formats, keep it simple: JPEG or WebP for photos, PNG or SVG for logos and graphics. That rule alone fixes most format problems.

  • Photos of people, products and places: JPEG or WebP
  • Logos, icons and flat graphics: PNG or SVG
  • Never upload a photograph as a PNG if you can avoid it
  • Keep ordinary photos under 200 kilobytes where possible
  • Match the image width to the size it is displayed at

Load images only when they are needed

Many pages have images far down the page that a visitor may never scroll to. There is no reason to load all of them the moment the page opens. Lazy loading solves this: images below the fold are only downloaded when the visitor scrolls near them. The page opens faster, and the visitor still sees every image when they reach it. Most modern website platforms support lazy loading built in or through a simple setting, and it is worth making sure it is switched on.

Check your speed and keep it fast

Once you have resized, compressed and set the right formats, test the result. Free speed-testing tools will show you how long your pages take to load and which images are still too heavy. Test the homepage and your most important service pages, and test on a phone connection, not just fast office wifi, because that is how many of your customers will visit.

Make image care a habit, not a one-off job. Every time you add a new photo, resize and compress it before uploading. Every few months, run a speed test and look for new heavy images that have crept in. If your site still feels slow after fixing the images, the cause may be elsewhere, such as the hosting or the theme, and a look at SEO and site performance services or the wider services on offer can help you find the next step.

Frequently asked questions

How big should website images be?

Match the image to its display size: a banner might be 1,600 pixels wide, a photo in text around 800, and a thumbnail around 300. As a rough guide, keep ordinary photos under 200 kilobytes. Anything over a megabyte is worth resizing and compressing, starting with your homepage and most visited pages.

Does compressing an image make it look worse?

Not if it is done sensibly. Good compression removes detail the eye barely notices, and most visitors cannot tell a properly compressed image from the original. Problems only appear when an image is compressed too aggressively or resized too small and then stretched. Compress once, at the right size, and the quality stays good.

What is the best image format for a website?

Use JPEG or WebP for photographs, and PNG or SVG for logos, icons and flat graphics. WebP usually gives the smallest files for photos and works in most modern browsers. Avoid uploading photographs as PNG, since the file can be several times larger than the same picture as a JPEG.

What is lazy loading and should I use it?

Lazy loading means images lower down a page are only downloaded when the visitor scrolls near them, instead of all at once when the page opens. It makes pages open faster, especially on phones, and visitors still see every image when they reach it. Most modern platforms support it, and it is worth switching on.

Fast images mean faster pages, happier visitors and more enquiries. If your website feels slow and you would like a professional to find the heavy pages and fix them properly, Shehryar Noor is a web designer and developer since 2018, with 80+ websites built for small businesses. To talk about speeding up your site, please get in touch through the contact page.