Short answer
Images for your website should be light, sharp and in a modern format like WebP, with a width matching where they are shown. A practical rule is for each photo to weigh as little as possible without the loss being noticeable. With a few decisions, images for your website stop being the heaviest part and become an ally of speed.
There is a common scene. Someone uploads the team photo to their site exactly as it came off the phone. It weighs six megabytes. The site, which looked fast on the designer’s computer, takes eight seconds on a phone with mobile data. The client leaves before seeing it.
Images for your website are usually the heaviest part of a page, and also the easiest to fix. In this guide I explain which format to choose, how much they should weigh, how to pick the size, how to name them and which free tools help.
Why images for your website rule speed
Text weighs little. A long paragraph is a few kilobytes. A single unoptimized photo can weigh a thousand times more. That is why, when a site feels slow, there are almost always heavy images behind it.
Speed is not a whim. Google measures loading experience with its performance metrics, and those metrics depend heavily on the largest element on the screen, which is almost always an image. If you want to go deeper, the full topic is in website speed in WordPress.
Beyond loading, the image decides how your brand looks. A blurry or stretched photo conveys carelessness, even if your service is excellent. The balance between weight and quality in images for your website is the real work.
Which format to use in each case
| Format | When to use it | Important detail |
|---|---|---|
| WebP | Photos and graphics in general | Good quality at low weight. It is the most practical format today |
| AVIF | Photos when the site supports it | Even lighter, with wide but not universal support |
| JPEG | Backup photos | Works and is understood everywhere, but weighs more |
| PNG | Images with transparency or sharp screenshots | Weighs more. Use it only if you need transparency |
| SVG | Logos, icons and vector illustrations | Scales without losing sharpness and weighs very little |
If in doubt, start with WebP for photos and SVG for logos. That combination solves 90% of services websites. On this blog, for example, the article covers are WebP images of 1,200 by 675 pixels.
What image size you really need
With images for your website something curious happens: the most common mistake is uploading one 4,000 pixels wide to show it in a 600 space. You pay extra weight and the browser shrinks it anyway.
A simple starting point:
- Full-width main image: up to 1,600 pixels wide is enough on most screens.
- Image inside an article: between 800 and 1,200 pixels wide.
- Card or team photos: between 400 and 800 pixels.
- Logo: in SVG, with no size limit since it is vector.
These are practical references. The ideal is to measure the width at which it is shown on screen and upload an image at most twice that width, so it looks sharp on high-density screens.
How much images for your website should weigh
There is no official number for every case, but a practical rule we use is to keep each image under 200 kilobytes, and the main one around 300. Many well-compressed photos weigh much less and look the same.
To know if you are on track, open your site, download each image with a right click and look at its weight. Those over 500 kilobytes can almost always be compressed without anyone noticing the difference.
And if your site has a carousel or a gallery with twenty photos, do the total math. Twenty photos of 300 kilobytes are six megabytes, and that is where a visitor on mobile data runs out of patience.
How to compress images for your website without losing quality
There are free tools that do it in seconds. Squoosh, from Google, works right in the browser and lets you see the before and after. If you use WordPress, there are extensions that compress and convert to WebP automatically when you upload each image.
The process in four steps:
- Crop the image to the final frame and remove parts that will not be seen.
- Resize to the width you need.
- Compress with quality between 70 and 85 on a scale of 100. It is almost never noticeable.
- Export as WebP and check the result looks good on a large screen and on mobile.
Do it before uploading, not after. It is cleaner and keeps the server from storing huge copies that are never used.
A before and after example with made-up numbers
Imagine a site with six images of 3 megabytes each. That is 18 megabytes in photos alone. On a phone with mobile data, loading it can take more than ten seconds and many visitors leave before.
Now apply the process: crop, 1,200 pixel width and WebP at quality 80. Each image drops to about 120 kilobytes. The six add up to less than one megabyte. The page looks the same and loads much faster.
That is the kind of gain that makes images for your website work well without touching the design or the content. And it is almost always solved in an afternoon.
File name and alt text
Two small details that help SEO and accessibility. The file name should describe the image: “equipo-cuva-lab.webp” is better than “IMG_4521.webp”. Use lowercase, hyphens between words and no accents or spaces.
The alt text, or alt, describes the image for those who cannot see it and for search engines. Write a short, real sentence: “Team of three people reviewing a design on a screen”. Do not stuff it with keywords. Google’s image guide insists on being descriptive and useful.
If you want to understand how this connects to the accessibility of your whole site, see web accessibility for small and mid-sized businesses.
Lazy loading: which images yes and which no
Lazy loading makes images further down download only when the visitor gets close. It is a great help on long pages.
But there is an important exception. The main image of the visible part, the one that appears as soon as you open the page, should not be lazy loaded. If you do, the site feels slower because the first thing the visitor sees takes time to appear. WordPress usually handles this well, but it pays to check if your design is custom.
Where to get images for your website
You have three paths and it pays to mix them:
- Your own photos. They are the best. They show your real business and nobody else has them.
- Image banks with a clear license. They help support ideas, not replace your team.
- Your own illustrations and graphics. They give identity and weigh little if they are vector.
Always take care of the license. If an image is not yours, check that it allows commercial use and what attribution it asks for. The permission of a person pictured also counts when the photo goes on a business website.
To combine photos with your brand’s palette and typography, rely on colors and typography for your website.
Frequent mistakes with images
- Uploading photos exactly as they come out of the camera or phone.
- Stretching a small image to fill a large space.
- Using PNG for photographs and multiplying the weight.
- Leaving names like “IMG_0001” and an empty alt.
- Putting important text inside the image, where search engines and screen readers do not read it.
- Lazy loading the main image at the top.
Check your site with a speed tool and you will see which images are flagged. Those are the first to address.
Next steps
Choose the five heaviest images on your site, download them and run them through a compression tool. Compare the before and after. With that half-hour exercise, most sites gain several seconds of loading. To keep improving, see web design for mobile y the structure of a home page.
The full picture is in web page design. And if you prefer that we do it for you, tell us your case and we will reply with a clear scope and a published price.
Frequently asked questions
Which image format is best for a website?
WebP is the most practical option for photos and graphics, and SVG for logos and icons. JPEG works as a backup and PNG only when you need transparency.
How much should an image for a website weigh?
As a practical rule, under 200 kilobytes each and the main one around 300. Many well-compressed photos weigh quite a bit less without visible quality loss.
What size should the main image be?
Up to 1,600 pixels wide is usually enough to fill the full screen width. Images inside articles can be between 800 and 1,200.
Is alt text necessary on all images?
Yes, on those that provide information. Describe what is seen in a short sentence. Decorative ones can have an empty alt so screen readers skip them.
Can I use photos from the internet on my site?
Only if the license allows it for commercial use and you meet the attribution it asks for. The safest are your own photos or ones from banks with a clear license.









