Table of contents
Images are responsible for more than half of all bytes transferred on the average webpage. When a page loads slowly, images are almost always the cause. The good news: most image files are far larger than they need to be, and reducing their size requires no design skills and no software installation.
This guide covers the three techniques that produce the biggest improvements — format selection, resizing, and compression — and explains exactly when to apply each one.
Why images slow down websites
Every image on a page is a separate file the browser downloads before it can display the complete page. A photographer's portfolio that uploads 6 MB JPEG files might display fine on a fast office connection, but load painfully slowly for a visitor on mobile. The problem compounds quickly: a product page with 10 unoptimized images at 3 MB each means the browser downloads 30 MB before the page is fully visible.
The three main causes of bloated image files are:
- Wrong format: Uploading a PNG where a JPG or WebP would be smaller.
- Wrong dimensions: Uploading a 4000px-wide image that displays at 800px.
- Insufficient compression: Using the default export quality from a camera or design tool instead of compressing for web delivery.
All three are fixable in minutes.
Step 1: Choose the right format
The format you save an image in determines its baseline size before any compression. Using the wrong format can make an image 2–5x larger than it needs to be.
WebP — the best choice for almost everything
WebP is a modern image format developed by Google, specifically designed for web delivery. It achieves 25–35% smaller file sizes than JPG or PNG at equivalent visual quality. Every major browser has supported WebP since 2020.
Use WebP for:
- Photographs and complex images (replaces JPG)
- Images with transparency (replaces PNG)
- Product images, hero images, blog post images
JPG — for photographs when WebP is not available
JPG uses lossy compression that works well for photographs. Each pixel can represent millions of colors, and JPG's compression algorithm takes advantage of the fact that nearby pixels in a photo tend to be similar. This makes it efficient for images with gradients and color variation.
Use JPG for photographs when you need maximum compatibility or the tool receiving your image requires JPG.
PNG — only for specific technical requirements
PNG uses lossless compression: it preserves every pixel exactly. This makes PNG files significantly larger than JPG or WebP for photographs. Use PNG only when pixel-perfect accuracy is critical — icons, logos, screenshots with sharp text, or transparent backgrounds where WebP is not available.
The most common mistake is saving photographs as PNG. A photograph exported as PNG can easily be 5–10x larger than the same image saved as WebP or JPG at 80% quality.
SVG — for logos, icons, and illustrations
SVG is a vector format, not a pixel format. It stores shapes as mathematical paths, so SVG images scale to any size without losing quality. Use SVG for logos, icons, and illustrations. SVG files are typically tiny (a few kilobytes) and render crisp at any resolution.
Converting between formats
The FixTools Image Format Converter converts images between JPG, PNG, WebP, and other formats directly in your browser. No software needed.
Step 2: Resize to the display dimensions
The most common — and easiest to fix — image optimization mistake is uploading oversized images.
If a blog post displays images at 800px wide, a 3200px-wide original is four times larger than needed. The browser downloads all 3200 pixels, then scales the image down to 800 pixels for display. The extra three-quarters of the data is wasted.
How to determine the right dimensions
- In your browser, right-click the image placeholder on your page and select Inspect.
- Look at the element's rendered width in the Styles panel. That is your target width.
- For retina/HiDPI screens, multiply that width by 2 to produce a 2x image that stays sharp on high-resolution displays.
If your blog post renders images at 800px and you want to support retina screens, export at 1600px wide. This is significantly smaller than a 4000px original while still looking sharp on every device.
Responsive images and multiple sizes
More advanced implementations serve different image sizes at different screen widths using the HTML srcset attribute. For example, a large desktop screen gets a 1200px image, while a mobile screen gets a 600px image. Most modern CMS platforms and image CDNs generate these variants automatically. For static sites, the FixTools Image Resizer can produce multiple sizes quickly.
Step 3: Compress to reduce file size further
After choosing the right format and resizing to the correct dimensions, compression is the final step. Compression removes data that is invisible or imperceptible to the human eye.
Lossy vs. lossless compression
Lossy compression (used by JPG and WebP) permanently removes some image data to achieve smaller files. The quality setting controls how aggressively data is removed. At quality 80%, a JPG or WebP image is often 50–70% smaller than the original with no visible degradation at standard screen sizes.
Lossless compression (used by PNG and also an option for WebP) removes redundant data without discarding any information. The result is a smaller file that is pixel-identical to the original. Lossless compression produces less dramatic size reductions than lossy compression.
What quality setting should I use?
For most web images:
- Quality 80–85%: Excellent choice for photographs and product images. Files are 50–70% smaller than the original. No visible quality loss at normal viewing sizes.
- Quality 70–75%: Suitable for thumbnails, background images, and images where fine detail is not critical. Files are 70–85% smaller. May show slight artifacts if zoomed in.
- Quality 60%: Appropriate for very small thumbnails or low-priority images in long lists.
Never compress below 60% for images that visitors will look at closely. The compression artifacts become clearly visible and make your site look unprofessional.
The FixTools Image Compressor lets you adjust quality and see the file size reduction before downloading. You can also compare the compressed image to the original to check quality.
How image optimization affects Core Web Vitals
Google measures page loading experience through Core Web Vitals, which directly influence search rankings. Two metrics are closely tied to images:
Largest Contentful Paint (LCP) measures how long it takes the largest visible element to load. For most pages, the largest element is a hero image or banner. Reducing that image's file size from 2 MB to 200 KB can dramatically improve your LCP score.
Cumulative Layout Shift (CLS) measures unexpected layout movement. If images load without specified dimensions, the browser does not reserve space for them, causing content to jump when images load. Always include width and height attributes on <img> tags — even if CSS controls the display size — to prevent layout shifts.
A practical optimization workflow
Here is the fastest reliable process for optimizing images before publishing:
- Start with your source file (camera JPEG, PNG export, or screenshot).
- Determine the display size (check your site's CSS or design spec).
- Resize to 1–2x the display width using the Image Resizer.
- Convert to WebP if your site supports it using the Image Format Converter.
- Compress at 80% quality using the Image Compressor.
- Check file size: most web images should land under 200 KB; hero images under 500 KB.
This workflow typically reduces image sizes by 70–90% from the original without any visible quality loss.
What about image CDNs?
Image CDNs (Cloudinary, imgix, Cloudflare Images) automate everything above. You upload an original image, and the CDN automatically converts it to WebP, resizes it for the requesting device, and serves it from an edge server close to the visitor. For high-traffic sites with hundreds of images, an image CDN is worth the cost.
For smaller sites, personal projects, or one-off optimization tasks, browser-based tools like FixTools produce the same results without a subscription or integration work.
Optimize your images now
Upload your image to the FixTools Image Compressor to reduce file size, the Image Resizer to scale to the correct dimensions, or the Image Format Converter to convert to WebP. All tools run in your browser — your images never leave your device.
Try it free — right in your browser
No sign-up, no uploads. Your data stays private on your device.
Frequently asked questions
6 questions answered
QHow much should I compress images for a website?
Aim for the smallest file size where the image still looks sharp on screen at its display size. For JPG photos, quality settings between 70–85% typically produce files 60–80% smaller than the original with no visible degradation at normal viewing sizes. For product images or portfolio photography where quality is critical, stay closer to 85%. For thumbnail or background images, you can go lower. The target file size for most web images is under 200 KB; hero images should be under 500 KB.
QDoes compressing images hurt SEO?
No — it helps. Google's Core Web Vitals use Largest Contentful Paint (LCP) as a key ranking signal. LCP measures how long it takes the largest visible element (usually an image) to load. Smaller, faster-loading images improve your LCP score, which directly helps rankings. Unoptimized images hurt your score. Google also explicitly recommends serving images in modern formats like WebP.
QWhat is the best image format for websites?
WebP is the best format for most website images in 2026. It is 25–35% smaller than equivalent JPG or PNG files with the same visual quality, and it supports transparency (like PNG). WebP is supported by all modern browsers. For photographs and product images, use WebP over JPG. For images with transparency, use WebP over PNG. Only use PNG when you need lossless quality for logos or icons with fine details.
QShould I resize images before uploading to a website?
Yes, always. If your page displays an image at 800px wide, uploading a 4000px original forces the browser to download four times more data than it needs, then scale the image down in the browser. This wastes bandwidth and slows page load. Resize images to the exact dimensions they will be displayed at — or slightly larger for retina screens (2x) — before uploading.
QWhat is lazy loading and does it help with images?
Lazy loading tells the browser to only load images when they are about to scroll into view, rather than loading everything at page start. Adding loading="lazy" to any img tag enables it in all modern browsers. Lazy loading can dramatically reduce initial page load time for pages with many images — a long product listing or a photo gallery — because only the images visible in the initial viewport are loaded at first.
QHow do I check if my website images are slowing down my site?
Run your URL through Google PageSpeed Insights (free). It reports your Core Web Vitals scores and lists specific images that need optimization, along with how many kilobytes each image could save. Lighthouse in Chrome DevTools shows the same information locally. Look for the 'Properly size images,' 'Serve images in next-gen formats,' and 'Efficiently encode images' recommendations — these are the most common image-related failures.
O. Kimani
Software Developer & Founder, FixTools
Building FixTools — a single destination for free, browser-based productivity tools. Every tool runs client-side: your files never leave your device.
About the authorRelated articles
How to Remove Image Background Free Online (Instantly)
Remove any image background in seconds. No Photoshop, no design skills needed. Free browser-based background remover that works on photos, logos, and product images.
Read articleImages & MediaPNG vs JPG vs WebP: Which Image Format Should You Use?
When to use each format for web, social media, and print. A practical guide to choosing the right image format, with a free converter to switch between them.
Read articleImages & MediaHow to Resize Images for Instagram, TikTok, and YouTube
Correct pixel dimensions and aspect ratios for Instagram, TikTok, and YouTube — all in one free online resizer. No account, no upload limits.
Read article