Website Image Optimization: A Practical Guide
Web Design· 14 min· DCL Team

Images are, at the same time, the best and the worst part of a website. The best, because the right picture sells faster than a hundred words and builds trust in an instant. The worst, because unoptimised images are the main reason websites load slowly, especially on a phone, and drive visitors away at exactly the moment they were about to buy. Many companies invest in beautiful photography and then upload it to the site straight from the camera, with files of several megabytes each, turning an otherwise good site into a slow and frustrating one. This guide explains, in terms anyone can follow, why images weigh sites down, which formats to use and when, how to size and compress them correctly, what alt text is and how it helps visibility in Google, where to get images legally without risking a claim, and which mistakes to avoid. No pointless jargon, only what you need in order to make good decisions.
Why images weigh websites down
Every image on a page has to be downloaded from the server to the visitor's phone or computer. The larger the file, the longer the download takes and the slower the page appears. A photograph taken with a modern phone can easily be five or ten megabytes. If you put ten such pictures on a page, you have forced the visitor to download tens of megabytes just to see a single screen of content. On a good wireless connection that may pass unnoticed, but on mobile data, on the move, in an area with weak signal, it means long seconds of waiting and a great many people closing the page before they see anything.
The problem is made worse by the fact that most visitors arrive from a phone. A site full of heavy images punishes precisely the largest group of your potential customers. Speed is not a technical whim, it is a direct part of the experience and of the sale. A fast site feels professional and trustworthy, while one that drags immediately raises suspicion, even if the visitor could not explain why they do not feel like staying.
Speed also influences your position in Google
Beyond the visitor's experience, search engines take loading speed into account when deciding which sites to show higher up. A site made slow by heavy images loses visitors and, with them, its chances of appearing in search. In practice, unoptimised images cost you twice: once through the people who leave, and again through the people who never arrive, because the site does not climb in the results. Optimising images is one of the simplest and most profitable improvements you can make, closely tied to technical SEO, meaning the behind the scenes work that helps a site be found.
Image formats, explained for everyone
A format is the way an image file is packaged. Each has its strengths and weaknesses, and the right choice makes the difference between a picture of one megabyte and the same picture at one hundred kilobytes, with no visible difference in quality. Here are the formats you will encounter, explained simply.
JPG, the classic format for photographs
JPG is the right format for photographs, meaning images with many colours and fine transitions, such as pictures of products, people or landscapes. It compresses photographs well and is understood by every browser. Its disadvantage is that heavy compression produces small imperfections. For most photographs on a website, a well compressed JPG is enough, but there are more modern alternatives that do the same job with even smaller files.
PNG, for graphics and transparency
PNG suits images with text, clear lines, screenshots, or when you need a transparent background, for example for a logo that has to sit over any colour. The disadvantage is that PNG files for photographs come out very large, so do not use it for ordinary pictures. The simple rule: a photograph means JPG or a modern format, a graphic with transparency means PNG.
WebP, the modern balance
WebP is a modern format that offers the same quality as JPG or PNG but with considerably smaller files. It is supported today by every major browser and has become the default choice for well built sites. Moving your images to WebP is often the quickest way to make a site lighter without losing any visible quality. A serious studio delivers images in WebP wherever it makes sense, precisely for that gain in speed.
AVIF, the next step
AVIF is a newer format still, which often compresses better than WebP, producing even smaller files at the same quality. Its browser support has grown a great deal but is not yet universal, so it is used with a fallback. For a company, the point to remember is that image technology is evolving towards ever smaller files, and an up to date supplier knows how to take advantage of that.
SVG, for logos and icons
SVG is a special format, suited to logos, icons and simple graphics. Its great advantage is that it stays sharp at any size, from a small icon to a logo enlarged across the whole screen, without pixelating, and it takes up very little space. It is not used for photographs, but for drawn graphic elements. A logo delivered in SVG looks perfect on any screen, including high resolution ones.
Sizing images correctly
One of the most frequent mistakes is uploading an image far larger than the space in which it will be displayed. If a picture appears on the site in a space eight hundred pixels wide, but you upload a file of four thousand pixels, the browser downloads the entire enormous image and then shrinks it, wasting data for nothing. The visitor pays in waiting time for a quality they never even see.
The solution is to prepare images at the real size at which they will be used, plus a reasonable margin for high resolution screens. A well built site even serves different sizes for phone and for desktop, so each device receives exactly what it needs, no more and no less. This technique dramatically reduces page weight on the phone, where it matters most.
Compression, the step most often missing
Compression reduces the file size by removing information the eye does not perceive anyway. With simple or automated tools, a photograph can drop from several megabytes to a few hundred kilobytes with no visible difference. The difference in speed, by contrast, is enormous. Every image that reaches a website should pass through a compression step, ideally automatic, so that it does not depend on somebody's discipline to do the job by hand every time.
Lazy loading, images that load when needed
Lazy loading is a technique whereby images further down the page load only when the visitor scrolls close to them, rather than all at once when the page opens. The effect is that the page appears quickly, because the browser deals first only with what is visible on the first screen, and the rest loads as the person moves down. For long pages with many images, the difference in opening speed is considerable.
This technique is standard today on well built sites and, used correctly, does not inconvenience the visitor at all, who never even notices the images loading one by one. What matters is that the important images at the top, the ones seen immediately, are not left lazy, so that they appear without delay. That balance is part of an experienced developer's craft.
Alt text and its link to visibility in Google
Alt text, or alternative text, is a short description of the image, written into the code, which the ordinary visitor does not see but which has two important roles. The first is accessibility: screen readers, used by people with visual impairments, read this text out loud so that those visitors understand what the image represents. The second role is for search engines, which cannot see a picture but can read the description and thereby understand what it is about.
Good alt text concretely describes the content of the image, for example which product is shown or what action is taking place, without forcing in keywords. Written properly, it helps both the people using screen readers and the chance of your images appearing in Google image search, a source of traffic many companies ignore. Every image with a content role deserves a short and honest alt text.
The file name matters too
A small but useful detail: the image file name should be descriptive, not a string of digits generated by the camera. A clear name that says what the picture contains helps search engines understand the image and is a simple piece of technical hygiene. It does not change the world on its own, but it is part of the sum of details that together lift a site.
Where to get images legally
This is where many companies make a dangerous mistake, taking images straight from Google and putting them on their site. An image found online belongs, most of the time, to somebody, and using it without permission can expose you to claims for damages. The healthy rule is simple: use only images to which you hold a clear right.
Your own photographs, the best option
The most valuable images are your own, showing your real products, team and premises. They are authentic, they do not appear on a thousand other sites and they convey trust. A photo session is worth the investment, because your own photographs instantly distinguish a serious company from one using the same stock pictures as everybody else.
Free and paid image libraries
There are image libraries offering free photographs with licences that permit commercial use, as well as paid libraries with a wider and less used selection. Even with free images, always check the licence conditions, because some require crediting the author and others forbid certain uses. A moment's attention to the licence spares you problems later. When we build a website, we treat the legal source of the images as a natural part of the process, not as a detail left to chance.
Be careful with generated images
Images created with automated tools have become an option, but they come with their own questions about rights and authenticity. For illustrative elements they can be useful, but for real products people buy more readily when they see the actual thing. Use them sensibly and never to mislead the visitor about what you genuinely offer.
Common mistakes with images
To draw a line under it, here are the traps I see most often and which you can easily avoid.
- Pictures straight from the camera. Files of several megabytes uploaded without compression, weighing down the whole site.
- The wrong format. Photographs saved as PNG, which needlessly inflates the files, or logos put up as JPG, which come out blurred.
- An enormous size for a small space. Images of thousands of pixels displayed in a corner, with all that weight downloaded for nothing.
- Missing alt text. Images with no description, invisible to screen readers and to image search.
- Images taken without permission. Pictures from the internet used without a licence, a needless legal risk.
- Too many images on one page. Even optimised, dozens of images on the same screen load the page down. Choose quality, not quantity.
What the correct approach looks like, in short
A site that is fast and correct where images are concerned follows a few simple steps. You choose the right format for each type of image, prepare the files at the real display size, compress them before uploading, use lazy loading for the images further down, add descriptive alt text to every image with a content role, and make sure you hold the legal right to each picture. Taken together, these measures turn a sluggish site into a fast, pleasant and better positioned one. If you are starting a new project, make sure the supplier treats images with this seriousness right from the building of the site, not as a correction made at the end.
How to check for yourself whether images are slowing your site down
You do not have to be technical to work out whether you have an image problem. There are a few simple checks anyone can make. The first and most honest is to open the site on your own phone, on mobile data rather than wireless, and count silently how many seconds pass before the content appears. If you are visibly waiting, your visitors are waiting the same, and many of them have less patience than you.
There are also free tools that analyse a page and tell you exactly what is slowing it down, including images that are too heavy. They give you a speed score and a list of recommendations, often naming the problem images directly. You do not need to understand every technical term in the report, only to notice whether images appear in the list of problems. If they do, you have confirmation that optimisation is worth the investment. A serious supplier runs such checks as a matter of course and can explain briefly what they show, without burying you in jargon.
The clear signs that you have a problem
A few symptoms give away unoptimised images even without tools. The page appears piece by piece, with images arriving late, sometimes pushing the content downwards as they load. On a phone, scrolling feels jerky. The menu and the text appear quickly, but the large pictures keep you waiting. All of this points to files that are too heavy or badly served. The good news is that it can almost always be resolved without rebuilding the site, simply by treating the images correctly.
Images for a website are not the same as images for social media
A useful confusion to clear up is that a good image for a social media post is not automatically suitable for a website, and the reverse. On social platforms, the platform itself handles compression and dimensions, and you merely upload the picture. On your own site, you are responsible for how the image is prepared, so that same care does not transfer automatically.
In addition, the roles differ. An image on social media has to stop the scroll and grab attention in an instant, often with text over it. An image on a website supports a piece of content, illustrates a product or creates an atmosphere, and usually sits next to the text rather than over it. That is why it is not a good idea simply to take material made for social platforms and move it onto the site without adapting it to the size and role it has there.
The image that appears when a page is shared
There is also a special image, the one that appears when somebody shares a page of your site on social media or in a messaging app. This preview image influences how attractive your link looks when it is passed on and, by extension, how many people click. A well built site defines this image for every important page, so that sharing looks tidy rather than showing a random picture or, worse, no image at all. It is a small detail that shapes the first impression at exactly the moment when somebody is recommending your site to another person.
How often you need to deal with images
Optimising images is not a permanent chore, but rather a good habit applied every time you add an image. If you have a correct workflow in which every image is prepared before it reaches the site, you no longer need periodic big clean-ups. Problems appear when images are uploaded in a hurry, straight from a phone or from the photographer, with no intermediate step. That is when heavy files accumulate which, taken together, drag the site down.
For a site that already exists and was not built this way, one corrective pass at the start is worthwhile, treating the heaviest images, followed by maintaining the discipline for everything that comes after. A serious technical partner can set up this workflow once, so that resizing and compression happen almost automatically and you can concentrate on content rather than technical details. That way the speed you gain is not gradually lost as the site grows, but stays constant over time, however many pages and pictures you add.
Frequently asked questions
Which image format is best for a website?
For photographs, WebP offers the best balance between quality and weight, with JPG as the universally safe fallback. For logos and icons, SVG. For graphics with transparency, PNG. There is no single format that is good for everything, only one suited to each situation.
Do I lose quality if I compress my images?
It depends how aggressively you compress. At a reasonable level, the human eye does not notice the difference, even though the file becomes several times smaller. The problem appears only with excessive compression, when blotches and blurred edges show up. A correct workflow finds the balance point at which the image stays clean but weighs little, and that setting is made once and then applied automatically.
How much should an image on a website weigh?
As a practical reference, a large photograph on a page should ideally sit under a few hundred kilobytes after compression. If your files run to several megabytes, you almost certainly have room for a significant improvement in speed.
Does optimising images damage their quality?
Done properly, no. Reasonable compression removes information the eye does not perceive, so the visible difference is minimal or nonexistent, while the gain in speed is large. Only exaggerated compression visibly spoils the image.
Do I have to put alt text on absolutely every image?
On images with a content role, yes. On purely decorative elements that convey no information, the alt text can be deliberately left empty, so as not to burden screen readers needlessly. The rule is: describe what matters, ignore what is only ornament.
Can I use images from Google?
No, not directly. Most images on the internet are protected, and using them without permission can expose you to claims for damages. Use your own photographs, image libraries with a clear licence, or free images whose conditions you have checked.
Want a fast site, with images done properly?
If you want a site that loads quickly and looks impeccable on any screen, with images optimised correctly from the very beginning, let us talk. Finding out what exactly is slowing your site down is part of the technical SEO work we do. Write to us on the contact page or call directly on 0770 129 502. We offer a free 30-minute brief and a fixed quote within 48 hours.
Ready to start?
Turn this into results for your business.
Free consultation and a clear quote for your website or campaign.



