How to Compress Images for the Web Without Losing Quality
If your website is slow, images are almost certainly the culprit. Images typically account for 50–80% of a page's total download size. Compressing them properly can cut that by half –with no visible quality loss –and it takes less than a minute with the right tool.
Why Image Compression Matters
A 4MB JPEG straight from a digital camera contains a lot of data your visitors don't need. Modern display screens can't distinguish quality differences below a certain threshold, and search engines like Google use page speed as a ranking signal via Core Web Vitals.
Compressing images to an appropriate size and quality level typically delivers:
- 50–70% smaller file sizes with no perceptible quality difference
- Faster Largest Contentful Paint (LCP) –a key Core Web Vitals metric
- Lower bandwidth costs for both you (hosting) and your visitors (mobile data)
- Better conversion rates –faster pages keep users engaged
Choosing the Right Format
Before compressing, make sure you're using the right format. The format choice has a bigger impact than the compression level.
JPG –Best for Photos
JPG (JPEG) is ideal for photographs and images with many colours and gradients. It uses lossy compression that's tuned for photographic content –at quality 80, a photo compressed as JPG is typically indistinguishable from the original but 10× smaller.
Avoid JPG for: logos, icons, screenshots with text, or anything with sharp edges and solid colours. JPG artifacts are visible on high-contrast edges.
PNG –Best for Graphics
PNG uses lossless compression, which means it perfectly preserves every pixel. This makes it ideal for logos, diagrams, screenshots, and any image where quality loss is unacceptable. PNG also supports transparency (alpha channel), making it the format of choice for UI elements.
Avoid PNG for: photographs. A full-colour photo saved as PNG will be 3–5× larger than the equivalent JPG at the same visual quality.
WebP –Best for the Web
WebP is a modern format developed by Google that delivers 25–35% better compression than JPG or PNG at the same visual quality. It supports both lossy (like JPG) and lossless (like PNG) modes, and it supports transparency.
WebP is supported by all modern browsers (Chrome, Firefox, Safari 14+, Edge). If you're building a website today, you should be using WebP for everything you can.
You can convert JPG or PNG to WebP instantly with JPG to WebP or PNG to WebP on FileCraft.
Compression Settings: What Quality Level to Use?
Most compression tools let you set a “quality” value from 0–100. Here's a practical guide:
- 85–100% –Near-lossless. Use for print or when quality is critical. File size is only slightly smaller than the original.
- 75–85% –Excellent quality for web use. Indistinguishable from the original at normal viewing distances. This is the sweet spot for most websites.
- 60–75% –Good quality, noticeably smaller files. Suitable for thumbnails, blog images, and social media.
- Below 60% –Visible compression artifacts. Only acceptable for low-priority images or very small thumbnails.
FileCraft's image compressor defaults to 82% quality, which hits the sweet spot for most use cases. You can adjust it up or down based on your needs.
How to Compress Images in Your Browser
You don't need Photoshop or a desktop app to compress images. FileCraft processes everything locally in your browser –your files never leave your device.
- Open FileCraft's image compressor
- Drop your image or click “Choose Image”
- Adjust the quality slider (default 82% works well for most images)
- Click “Process Image”
- Download the compressed result
For bulk compression, use the batch image compressor to process up to 20 images at once.
Tips for Maximum Compression
- Resize before compressing. If you're displaying an image at 800px wide, don't upload a 4000px original. Use FileCraft's image resizer first.
- Strip EXIF metadata. Photos from cameras contain GPS coordinates, device info, and thumbnails embedded in the file. Use Remove Image Metadata to strip it.
- Use WebP. Converting to WebP before compressing gives you 25–35% smaller files with no quality trade-off.
- Choose the right format. Don't save a photo as PNG –it will be enormous. Don't save a logo as JPG –the edges will be jagged.
Summary
Image compression is one of the highest-impact optimisations you can make for web performance. Use WebP where possible, target 75–85% quality for photos, and always resize images to their display dimensions before uploading. All of this takes about 30 seconds with the right tool.