Image size for a website: compress photos without losing quality
Image size for a website in 2026: right dimensions, WebP and AVIF formats, free compression tools, and how to cut photos under 200 KB with no quality loss.

Photos sell a small business online. The trouble is that a photo straight off your phone can be 5 or 10 megabytes, and a page full of those loads slowly, especially on a phone with a weak signal, which is exactly where most customers see your site. Big images are the single most common reason a small business site feels sluggish.
This guide shows you how to get sharp, professional-looking images onto your website at a fraction of the file size, without the fuzzy, blocky look of over-compression. You will learn the right dimensions, the best file formats in 2026, how to compress without visible quality loss, and how to check whether your images are dragging your speed down. For the wider picture, pair it with our website speed test guide.
What image size should a website use?
For most pages, aim for images no wider than they display, usually 1600 to 2000 pixels wide for a full-width hero and 800 to 1200 pixels for an in-content photo, and keep each file under about 200 kilobytes where you can. Resize and compress before you upload, rather than letting the browser shrink a huge original.
There are two different "sizes" at play, and both matter:
- Dimensions (pixels wide and tall). A phone photo can be 4000 pixels or more across. Displayed in an 800-pixel slot, the extra pixels are wasted; the browser downloads them all and throws most away.
- File size (kilobytes or megabytes). This is what actually travels over the network. A 5 MB JPEG and a 150 KB WebP can look identical on screen, but one is more than thirty times heavier to load.
The goal is to cut both: resize to the dimensions the page needs, then compress to a sensible file size in a modern format. Done well, visitors see no difference; your speed score sees a big one.

Why do big images slow a website down?
Because images are usually the heaviest thing on a page, and the main one is often the first big thing a visitor waits for. Google measures that wait as Largest Contentful Paint, and oversized images are the most common cause of a poor score. Slow pages lose customers before the page even finishes loading.
Google's guide to optimizing LCP sets the target at 2.5 seconds or less for a good experience, and calls anything over 4 seconds poor. On most small business pages the hero image is the element being measured, so a heavy hero directly hurts the score. The same guide names large images as a leading cause of slow LCP and recommends compressing them, serving them at the right size, and using modern formats.
There is a cost angle too. Google's responsive images guide notes that sending desktop-sized images to phones can use "2 to 4 times more data than needed". That is slower for the visitor and, on a metered mobile plan, literally costs them money to load your page. Fast, light pages are better for customers and better for your ranking.
A quick worked example shows the scale of the problem. A cafe owner uploads six photos straight from an iPhone to a homepage gallery. Each is about 4000 pixels wide and 4 MB, so the page carries roughly 24 MB of images alone. On a typical mobile connection that can take ten seconds or more to load, and many visitors leave before it finishes. Resize the same six photos to 1200 pixels and export them as WebP at quality 75, and each drops to around 150 KB, for under 1 MB total, more than twenty times lighter. The photos look the same on screen; the page now loads in a second or two. That one change, done in a few minutes with a free tool, is often the biggest speed improvement a small site will ever get.
What is the best image format for a website?
In 2026 the best formats are AVIF and WebP, which give the smallest files at the same quality, with JPEG or PNG as a fallback and SVG for logos and icons. WebP is the safe, universally supported default; AVIF is smaller still and ideal for a hero image where every kilobyte counts.
Here is how the common formats compare for small business use:
| Format | Best for | Notes |
|---|---|---|
| WebP | Almost all photos and graphics | About 25 to 35% smaller than JPEG or PNG; supported everywhere that matters |
| AVIF | Hero images, large photos | Smallest files, best for LCP; slightly less universal, so keep a fallback |
| JPEG | Fallback for photos | Still fine, just larger than WebP |
| PNG | Images needing transparency, fallback | Large; use WebP or AVIF instead where you can |
| SVG | Logos, icons, simple graphics | Tiny, infinitely sharp, not for photos |
Google's own WebP guide calls WebP "an excellent replacement for JPEG, PNG, and GIF images" and reports real-world savings of 25 to 35% for JPEGs and up to 80% for PNGs. Real-world Core Web Vitals data from 2026 shows AVIF images passing the LCP check on around 89 to 91% of sites, ahead of older formats, though that is a correlation, not a promise. The practical rule: serve WebP by default, use AVIF for your biggest image, and keep a JPEG or PNG fallback for any browser that needs one.
How do I compress an image without losing quality?
Use a free tool to resize the image to the dimensions the page needs, then export it as WebP or AVIF at a quality setting of about 60 to 80. At that level the file shrinks dramatically while the photo still looks sharp to the eye. Compare before and after, and only lower the quality further if you cannot see a difference.
Free tools that do the job well:
- Squoosh (squoosh.app, from Google). Drag a photo in, pick WebP or AVIF, slide the quality down while watching the preview, and download. No account needed.
- TinyPNG / TinyJPG. Quick drag-and-drop compression for PNG and JPEG, with WebP output.
- Your phone or camera export settings. Many cameras let you shoot or export at a smaller size to begin with.
- Built-in tools in most website builders and image editors, which can resize and re-compress on upload.
Google's WebP guide describes a quality scale from 0 (worst) to 100 (best) and advises testing levels to find the balance of quality and file size. For photos, 60 to 80 is almost always the sweet spot. For graphics with flat color or text, lossless or a higher setting keeps edges crisp.
Tip
Compress once, from the original. Each time you save a JPEG it loses a little more detail, so always start from the full-quality photo, resize and compress in one step, and keep the original safely. Re-compressing an already-squashed image just adds blockiness without saving much.
What dimensions should I resize images to?
Match the image to the space it fills on screen, with a little extra for sharp high-resolution displays. A full-width hero rarely needs to be more than 1600 to 2000 pixels wide; a photo inside a column of text is usually fine at 800 to 1200 pixels; a small thumbnail or logo needs only a few hundred.
A simple starting chart:
| Where it appears | Sensible width |
|---|---|
| Full-width hero or banner | 1600 to 2000 px |
| In-content photo, single column | 800 to 1200 px |
| Two or three column gallery image | 600 to 800 px |
| Thumbnail or avatar | 150 to 400 px |
| Logo (use SVG if you can) | matches display size |
Uploading a 4000-pixel phone photo to sit in an 800-pixel slot wastes most of the data. Resize it first. Google's responsive images guide suggests creating three to five sizes of each important image so the browser can pick the right one; most builders and image tools can generate these for you. Our guide to taking website photos with your phone covers getting a good shot in the first place, which matters more than any compression trick.
How do I serve smaller images to phones?
Use responsive images: provide several sizes of the same photo and let the browser choose the smallest one that still looks sharp on that device. In HTML this is the srcset and sizes attributes; in a website builder it usually happens automatically. The result is that a phone downloads a small image and a large screen downloads a big one.
Google's responsive images guide explains the mechanics: srcset lists each image file with a width descriptor like 480w or 1080w, and sizes tells the browser how wide the image will display, so it can pick the best file before downloading anything. You rarely need to hand-write this. Most modern builders and content systems generate responsive image sets when you upload, serving a phone a light version and a desktop a larger one. If you build or commission a custom site, responsive images should be part of the job; it is one of the quiet details that keeps a page fast on mobile. When Stackmane builds a site, images are compressed and served at sensible sizes as part of the build, so you are not shipping phone-sized originals to every visitor; you can see what is included on our pricing page.

Will compressing images make them look blurry?
Not if you do it right. At a quality of 60 to 80 in WebP or AVIF, most photos look identical to the original to the human eye while the file drops by well over half. Blurriness comes from compressing too hard, or from re-saving a file that was already compressed. Always start from the full-quality original, compress once, and compare before and after; if you can see a difference, nudge the quality back up.
What about logos, icons and screenshots?
Treat these differently from photos. Logos and simple icons should be SVG where possible: a vector file that stays razor-sharp at any size and is usually tiny. Screenshots and images with text are best kept as PNG or lossless WebP, because heavy photo-style compression makes text edges fuzzy.
A quick guide by image type:
| Image type | Best format | Why |
|---|---|---|
| Logo, icon, simple shape | SVG | Sharp at any size, very small file |
| Photograph | WebP or AVIF, quality 60 to 80 | Smallest file at good quality |
| Screenshot or image with text | PNG or lossless WebP | Keeps text and lines crisp |
| Image needing transparency | WebP or PNG | Supports a transparent background |
If your designer or builder gives you a logo only as a large PNG or JPEG, ask for an SVG version; it will look better on high-resolution screens and load faster. For everything else, the photo rules above apply: resize first, then compress.
How do I check if my images are slowing my site?
Run a free speed test and look specifically at the image warnings. Google's PageSpeed Insights and the Lighthouse tool built into Chrome both flag oversized images, images in old formats, and a slow Largest Contentful Paint. Those three warnings point straight at the images to fix first.
What to look for:
- "Properly size images" (Lighthouse) lists photos that are larger than they display. Resize each one.
- "Serve images in next-gen formats" flags JPEG and PNG files that would be smaller as WebP or AVIF.
- "Largest Contentful Paint" tells you how long the main image took. Aim under 2.5 seconds.
- "Efficiently encode images" points at files that need more compression.
Fix the biggest offenders first, usually the hero image, then re-test. Our website speed test guide walks through reading the full report, and the website launch checklist includes an image check before you go live.
Do file names and alt text matter for images?
Yes, for two reasons: accessibility and search. A descriptive file name and clear alt text help screen-reader users understand the image and give Google context about the page. Neither affects file size, but both are quick wins you may as well do while you are editing images.
Good habits:
- Name files descriptively before upload:
riverside-cafe-outdoor-seating.webp, notIMG_4821.jpg. - Write alt text that describes the image in a few plain words, including the subject where it reads naturally. Leave decorative images with empty alt text so screen readers skip them.
- Do not keyword-stuff alt text; describe what is actually in the picture.
These small touches make your site easier to use and easier for search and AI tools to understand. Our guide to small business website design ideas shows how real sites use photography well.
A quick image workflow for a small business
Put it together and the routine is short:
- Start from the full-quality original photo.
- Resize to the width the page needs (1600 to 2000 px for a hero, 800 to 1200 px in content).
- Export as WebP (or AVIF for the hero) at quality 60 to 80, checking the preview.
- Name the file descriptively and add plain alt text on upload.
- Let your builder generate responsive sizes, or provide a couple yourself.
- Run a speed test and fix any "properly size images" or "next-gen format" warnings.
Do this once per batch of photos and your site stays fast as it grows. After the first time, it takes only a minute or two per image, and it is the kind of small, repeatable habit that keeps a growing site quick on every device.
Our verdict
Image size is the highest-impact speed fix most small business owners can make themselves, and it costs nothing but a few minutes with a free tool. Resize photos to the dimensions the page actually uses, export them as WebP (AVIF for your biggest image), aim for a quality around 60 to 80 and files under a couple of hundred kilobytes, and let responsive images handle phones.
Get the hero image right first, because that is usually what Google is timing and what the visitor is waiting for. Then tidy the rest, add descriptive file names and alt text, and run a speed test to confirm the warnings are gone. Pair this with our website speed test and how to take website photos guides, and your site will look professional and load fast on every screen.
Get a free preview of a fast, professional website built for your business
A custom website for your business, designed and built in 7 days. See a free preview first, then pay once. No monthly fees. Questions? Email support@stackmane.com.
Frequently asked questions
What size should images be on a website?
Match the image to the space it fills: about 1600 to 2000 pixels wide for a full-width hero, 800 to 1200 pixels for an in-content photo, and a few hundred pixels for thumbnails. Keep each file under roughly 200 KB where you can. Resize and compress before uploading, not after.
What is the best image format for a website in 2026?
WebP and AVIF give the smallest files at the same quality. WebP is the safe default, supported everywhere and about 25 to 35% smaller than JPEG or PNG. AVIF is smaller still, ideal for a hero image. Use SVG for logos and icons, and keep a JPEG or PNG fallback.
How do I compress an image without losing quality?
Resize to the dimensions the page needs, then export as WebP or AVIF at a quality of 60 to 80 using a free tool like Squoosh. At that level the file shrinks by well over half while the photo still looks sharp. Compare before and after, and start from the full-quality original each time.
Why are big images bad for a website?
Images are usually the heaviest thing on a page, and the main one is often what Google times as Largest Contentful Paint. Oversized images are the most common cause of a slow LCP, and slow pages lose customers. Big images also cost mobile visitors extra data to load.
Will compressing images make them look blurry?
Not if you do it right. At quality 60 to 80 in WebP or AVIF, most photos look identical to the human eye while the file drops by over half. Blurriness comes from compressing too hard or re-saving an already-compressed file. Compress once from the original and compare before and after.
How do I check if my images are slowing my site down?
Run Google PageSpeed Insights or Chrome's Lighthouse and look for the warnings 'Properly size images', 'Serve images in next-gen formats' and a slow Largest Contentful Paint. Fix the biggest image first, usually the hero, then re-test until the warnings clear.
Sources
- web.dev (Google): Optimize Largest Contentful Paint (good LCP 2.5s or less; compress images, use AVIF or WebP, serve the right size), checked November 22, 2026, checked November 2026
- web.dev (Google): Use WebP images (about 25 to 35% smaller than JPEG and PNG; quality scale 0 to 100), checked November 22, 2026, checked November 2026
- web.dev (Google): Serve responsive images (desktop images on mobile use 2 to 4x more data; srcset and sizes), checked November 22, 2026, checked November 2026
What Is an SEO Audit? A Free Checklist for Small Sites
What is an SEO audit? Run a free 6-area check in an afternoon with Search Console and PageSpeed Insights, plus what paid audits cost ($500 to $5,000).
Keyword Research for a Small Business: A Free 5-Step Method
Do keyword research for a small business in 5 free steps and about 2 hours: Google suggestions, Trends and Search Console, with a worksheet. Checked 2026.
Local SEO Cost: What Small Businesses Pay in 2026
Local SEO costs $500 to $3,000 a month from agencies, $31 to $65 for tools and $399 to $999 for one-time cleanups. Prices checked December 1, 2026.
Want this done for you?
Tell us about your business. We design a preview of your new website and email you the link, usually within two days.
- No card, no deposit
- Changes until you’re happy
- Pay $299 once, only if you love it
- Live in 7 days, no monthly fees