How to compress an image in 3 steps
- Add your pictures. Drop up to 50 JPG, PNG or WebP pictures on the page. They stay on your device.
- Choose how small. Pick a quality, or choose "Under a file size" and type what the form or email allows, such as 2 MB or 500 KB.
- Compress and download. The list shows each file's size before and after. Download one, or all of them in a ZIP.
What makes this compressor different
- Aims for a size you type. Each picture is saved at the highest quality that fits under it, and only made smaller in pixels when quality alone isn't enough.
- Keeps what's already small. If a new copy wouldn't be smaller, the original is kept and the list says so: with "Best for size" for any JPEG, PNG, WebP, AVIF or GIF at its own size, and with a chosen format for an original already in it.
- Keeps transparency. Pictures with transparent areas are saved as WebP or PNG, never as JPEG on a white box, unless you choose JPEG.
- Private. Nothing is uploaded.
Use cases
- Upload forms: get a photo, a scanned document or a passport picture under the size a form allows, such as 2 MB or 500 KB.
- Email and chat: shrink a set of holiday photos before you send them.
- Websites and shops: make product photos lighter so pages load faster.
- Marketplaces: meet a listing's file size limit for product photos without cropping them.
Specs and limits
- Pictures: JPG, PNG and WebP, plus GIF, AVIF and HEIC where your browser can open them; up to 50 at a time and 200 MB each. Pictures over 16,384 pixels a side or 100 megapixels aren't opened here.
- Quality: 40% to 95%, for JPEG and WebP. PNG is lossless, so for PNG only a smaller longest side makes it smaller.
- File size target: 10 KB to 100 MB. KB and MB are counted as 1,000 and 1,000,000 bytes, the stricter reading, so a file under 2 MB here is under 2 MB however a form counts it. Quality is tried between 95% and 40%. Below that, the picture is made 15% smaller at a time, down to 320 pixels on its longer side. If it still doesn't fit, you get the smallest version, and the page says how close it got.
- Longest side: keep the size, or limit it to between 800 and 4,096 pixels. Pictures are never made larger.
- Saved as:
photo-compressed.jpg, orcompressed-images.zipfor all of them. - Transparency: transparent areas stay transparent in WebP and PNG. Where your browser can't write WebP, transparent pictures are saved as PNG, and only a smaller longest side makes them smaller.
- Metadata: compressed copies are drawn fresh, without the original's camera details or location.
How it works
Each picture is opened by your browser, drawn onto a canvas at the size you chose, and encoded again as JPEG, WebP or PNG. Under a file size, the tool encodes at high quality first. If that's too big, it halves the gap between the lowest and highest quality six times to find the best quality that fits, and steps the size down only if needed. One picture is worked on at a time.
Frequently asked questions
How do I compress an image to a certain size, such as 2 MB?
Choose "Under a file size", type the size (for example 2 MB or 500 KB) and click Compress. Each picture is saved at the highest quality that fits; if even low quality is too big, it is also made smaller in pixels, a step at a time, down to 320 px. If it still doesn't fit, you get the smallest version and the page says how close it got.
Are my pictures uploaded?
No. They are opened, compressed and saved by your own browser. Only your settings are remembered on this device.
Which format should I save in?
"Best for size" saves photos as JPEG, and pictures with transparent areas as WebP, which keeps the transparency, or PNG where your browser can't write WebP. Choose JPEG, WebP or PNG yourself if a form asks for one.
Why is a file not smaller?
A picture that is already well compressed may not get smaller. Then the original is kept, and the list says so: with "Best for size" that applies to a JPEG, PNG, WebP, AVIF or GIF original at its own size, and with a chosen format to an original already in that format. A lower quality, a smaller longest side, or WebP usually helps.
Does compressing remove the photo's details, such as location?
A compressed copy is drawn fresh, so camera details and GPS location in the original aren't carried over. An original that is kept because it was already small enough keeps its details; our metadata checker shows what's in a file.