Compress Image
To shrink a JPG, PNG or WebP image, drag the quality slider or set a target file size such as 100 KB, then check the result before you download. At quality 80, photos typically lose 50–80% of their size with no visible change, and resizing saves far more. Images are processed in your browser and never uploaded.
Updated
How to use Compress Image
- 1Add one or more images.
- 2Drag the quality slider, or choose Target file size and enter a limit such as 100 KB.
- 3Compare the original and compressed previews side by side.
- 4Download the images individually, or all of them as a ZIP.
How it works
Each image is decoded, drawn onto a canvas, and re-encoded at the quality you choose. Lossy encoders such as JPEG and WebP discard the detail human vision is least sensitive to — mostly fine colour variation — which is why an image can lose 70% of its file size while looking essentially unchanged.
Quality between 75 and 85 is the practical sweet spot for photographs. Below about 60, JPEG artefacts start appearing around hard edges and in flat areas of colour. Screenshots and graphics with sharp lines behave differently: they compress badly as JPEG and are better left as PNG or converted to WebP.
Optionally the image can be resized at the same time, which usually saves far more than quality alone. A 4000-pixel photo displayed at 1200 pixels wide is carrying more than ten times the data it needs.
In target-size mode the tool searches for the highest quality, between 40% and 92%, that keeps each file under your limit, re-encoding several times to find it. If even 40% is too large, the image is scaled down in steps — file size falls roughly with pixel count — and searched again, so a 100 KB limit is met with a sharp, smaller picture rather than a blocky full-size one.
Images are decoded by the browser, redrawn on a canvas and re-encoded on your own machine. Nothing is uploaded, so there is no waiting on a queue and no copy of your photos anywhere else.
Tips and common mistakes
- Resize before you compress. A photo shown 1,200 pixels wide does not need to be 4,000 pixels wide, and cutting the pixel count saves far more than lowering quality.
- Start at quality 80 for photographs and move in steps of five. Below about 60, blocks and halos start to show around edges and in smooth areas like sky.
- Judge the result zoomed in, not as a thumbnail. Look at hair, text and the edges of objects against plain backgrounds.
- Keep your originals and always compress from them. Compressing an already compressed copy adds more damage each time.
Frequently asked questions
How do I compress an image to 100 KB?
How much smaller will my image get?
Will compression ruin the quality?
Can I compress PNG images?
Is there a file size limit?
What quality should I use for images on a website?
Does compressing remove a photo's location data?
Can I compress many images at once?
Why did my image get bigger after compressing it?
Why do two photos with the same pixel size compress to such different sizes?
Guides
- How to reduce PDF file size for email and upload limits
- How to compress images without visible quality loss
- How to open and convert iPhone HEIC photos
- How to make a passport photo at home
- How to resize a photo to exact pixels and a file size limit in KB
- How to fix link previews: Open Graph tags explained
- How to turn PDF pages into images: JPG or PNG?
- How to turn photos of receipts and documents into one PDF
- How to watermark your photos before sharing them online
- What size should an email signature image be?
- LinkedIn banner size: how to make a background photo that fits
- How to resize your photo and signature for an online application form
- Product photo sizes for Etsy, eBay, Amazon and Shopify
- What size should images be for a website?
- How to post a whole photo on Instagram with white borders
- Why photos look blurry after uploading, and how to keep them sharp
- Does converting a JPG to PNG improve quality?
- How to embed an image in HTML or CSS with a Base64 data URI
- How to check an online tool really doesn’t upload your files
- Why a PDF or image got bigger after compressing it
- Why two photos the same size in pixels have very different file sizes