Compress image to 100 KB or any target size
Compress JPG, PNG and WebP images, or shrink them to 50, 100, 200 or 500 KB.
1 KB = 1000 bytes. With a target, the quality is chosen automatically and the image may also be made smaller in pixels. PNG and GIF files are then saved as JPG (transparency becomes white). A target is not guaranteed; if it cannot be reached, you are told.
| File | Before | After | Saved |
|---|
Images are compressed on your device. Metadata such as the GPS location of a photo is removed from the output.
How to compress an image
- Choose one or more JPG, PNG or WebP files, or drop them onto the page.
- Set the quality; around 75 keeps photos sharp while cutting the size a lot. For a size limit, press 50, 100, 200 or 500 KB (or type your own) and the tool picks the quality.
- Optionally convert to WebP or JPEG, which usually gives the biggest savings.
- Enter a maximum length for the longest side if the pictures are larger than you need, or press 1080, 1920 (Full HD) or 3840 (4K).
- Compare the pixel size, the file size and the saved percentage of each file, then download single files or all of them.
When it helps
- Shrinking phone photos before sending them by e-mail or messenger.
- Meeting upload limits of online forms, shops and job portals.
- Speeding up a website by serving lighter images.
- Removing location data from photos before sharing them publicly.
- Saving disk space when archiving large photo collections.
How image scaling affects encoding
The longest-side setting is read as an integer; positive values are restricted to 16–20000 pixels. Scaling preserves the ratio and rounds each resulting dimension to the nearest whole pixel. JPEG conversion first paints a white canvas, replacing transparent areas with white. An entry marked as original retains its existing metadata because that branch returns the original bytes. The browser's canvas.toBlob encoder writes converted images; ZIP downloads store entries without another compression pass.
Example: resizing a transparent PNG
Use sample.png with dimensions 3000 × 2000 pixels. Select JPEG, set quality to 75, and enter 1000 as the maximum side. The scale is one third, producing 1000 × 667 pixels after rounding, with the filename sample-min.jpg. Transparent pixels become white in this conversion. The encoded byte count depends on the image contents and browser encoder; these settings do not imply a fixed file size.
Frequently asked questions
Are my photos uploaded to a server?
No. Compression happens entirely in your browser, so private photos never leave your computer or phone.
Which quality should I choose?
Values between 70 and 80 are a good balance for photos. Lower values save more space but can show blocky artefacts.
Why is my PNG not much smaller?
PNG is a lossless format, so quality settings do not apply to it. Convert it to WebP or JPEG to make it much lighter.
Is the photo location removed?
For compressed files, yes: they are redrawn from pixels, so EXIF metadata such as the GPS position and camera details is not copied. A file that the tool keeps unchanged, because compressing would not have made it smaller, still contains its metadata.
Can I compress many images at once?
Yes. Select a whole batch; each file is processed in turn and you can download them one by one or all together.
What if the result is bigger than the original?
If the format and dimensions stay the same, the tool keeps the original file and tells you, so you do not end up with a heavier image.