Compress Image to a Target Size

Compress a JPG, PNG or WebP to at most 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, 2 MB, 5 MB or any size you type, or set the quality yourself, and see the new file size before you download. Do one image, or up to 50 at once and download them as a ZIP. It’s free, there’s no sign-up, and the images are compressed in your browser: they’re never uploaded.

  • Free
  • Runs in your browser, nothing uploaded
  • No sign-up
  • No ads

Your image stays on your device: it is processed in your browser and never uploaded.

Open-source libraries used

How to compress an image to 100 KB, 200 KB or 1 MB

  1. 1

    Open your image

    Drop it on the editor, click to choose a file, or paste it with Ctrl+V (⌘+V on a Mac). JPG, PNG, WebP, AVIF, GIF (first frame), BMP and iPhone HEIC photos open in any browser. Drop several files to compress up to 50 at once.

  2. 2

    Choose a size or a quality

    Under Compress to at most, click 50 KB, 100 KB, 200 KB, 500 KB, 1 MB, 2 MB or 5 MB, or type another size in KB or MB and press Apply. Or leave it Off and move the Quality slider (85% to start).

  3. 3

    Is it a PNG? Fewer colors, or JPG or WebP

    With all colors, a PNG keeps every pixel and barely shrinks. For a logo, screenshot or cut-out, pick 256 under Colors: it stays a PNG, transparency included, at a fraction of the size. For a photo, press Switch to JPG or Switch to WebP.

  4. 4

    Compare and download

    The result shows the new file size and how much smaller it is than the original. Hold to see the original to compare, then press Download or Copy.

What the image compressor does

Updated 2026-11-03

Target sizes
50 KB, 100 KB, 200 KB, 500 KB, 1 MB, 2 MB and 5 MB with one click, or any size in KB or MB. 1 MB means 1,000,000 bytes and 1 KB 1,000 bytes.
How a target is reached
The highest quality that fits, starting from the Quality slider. Quality doesn’t drop below 60% to get there: if 60% is still too big, the image is made smaller in pixels, and the result tells you the new size.
Quality by hand
A slider from 10 to 100%, 85% by default. JPG and WebP are lossy; around 80–90% usually looks the same as the original at a fraction of the size.
JPG encoder
JPGs are written with MozJPEG, an open-source encoder tuned for small files. In our test it made JPGs 10–30% smaller than the browser’s own encoder at the same 85% setting.
PNG with fewer colors
All colors, or at most 256, 128, 64 or 32. Transparency is kept. 256 colors made our five test PNGs 53–72% smaller. It’s lossy, and photos can show banding, so use it for logos, screenshots, illustrations and cut-outs.
Several images
Up to 50 at once, with one quality or size limit for all. Download each one, or all as one ZIP.
Formats
Opens JPG, PNG, WebP, AVIF, GIF (first frame), BMP and HEIC in any browser (outside Safari, HEIC goes through an open-source decoder that also runs in your browser). Saves JPG, PNG or WebP (WebP in Safari too, through a built-in encoder).
Camera and location data
Every saved file is re-encoded, so camera data and GPS location (EXIF) are removed. One exception: if saving again would only make the file bigger and nothing else changed, you get your original file back untouched, EXIF included, and the editor says so.
Largest image
About 16.7 megapixels on iPhone and iPad (Safari) and 50 megapixels on other devices. A bigger image is opened at a smaller size, and the editor tells you so.
Undo and history
Every change is a step you can click to go back to, with Ctrl+Z (⌘+Z) and Ctrl+Shift+Z. Each step is redrawn from the original, so trying several sizes never compresses the image twice.
Nothing is uploaded: how to check
Open your browser’s developer tools, go to the Network tab and compress an image: no upload request is sent. The site still counts page views; those never include your image.

Upload limits on Etsy, X, YouTube, Gmail and more

Each row quotes the platform’s own help page, linked and dated, and the platform presets in the editor resize to these sizes and keep the file under these limits.

PlatformSizeFile sizeFormatsSource
EtsyListing photosshort side ≥ 2000 px2000 px is the recommended minimum (first photo at least 635 px). Transparent parts show black; files over 1 MB may not finish uploading.up to 1 MBJPG, GIF, PNG, SVG, HEICOfficial pagechecked November 3, 2026
XPost photos—From X's developer documentation. Up to 4 photos per post; animated GIFs up to 15 MB.up to 5 MBJPG, PNG, GIF, WebPOfficial pagechecked November 3, 2026
YouTubeVideo thumbnail3840 × 2160 px · 16:9Minimum width 640 px. 2 MB when uploading from a phone, 50 MB from a computer. Shorts: 2160 × 3840 (9:16).up to 2 MBJPG, PNGOfficial pagechecked November 3, 2026
eBayListing photos1600 × 1600 pxMinimum 500 × 500 px. Up to 24 photos; white backgrounds generally work best.up to 12 MBJPG, PNG, GIF, TIFF, BMP, WebP, HEIC, AVIFOfficial pagechecked November 3, 2026
ShopifyProduct images2048 × 2048 px2048 × 2048 usually displays best for squares. Up to 5000 × 5000 px (25 MP); the developer docs say 4472 × 4472 (20 MP).up to 20 MBPNG, JPG, TIFF, BMP, GIF, SVG, HEIC, WebPOfficial pagechecked November 3, 2026
LinkedInProfile background photo1584 × 396 px · 4:1up to 8 MBJPG, PNGOfficial pagechecked November 3, 2026
LinkedInProfile photoshort side ≥ 400 px, long side ≤ 7680 pxBetween 400 × 400 and 7680 × 4320 px. "We don't support GIFs."up to 8 MBPNG, JPGOfficial pagechecked November 3, 2026
FacebookPage cover photo851 × 315 pxLoads fastest as an sRGB JPG under 100 KB (not a hard limit). At least 400 × 150 px.up to 100 KB—Official pagechecked November 3, 2026
PinterestImage Pins—20 MB is the limit for uploads on the web.up to 20 MBBMP, JPG, PNG, TIFF, WebPOfficial pagechecked November 3, 2026
GmailEmail attachments—25 MB for personal accounts; larger files are sent as a Google Drive link.up to 25 MB—Official pagechecked November 3, 2026

What this tool does to AI-generated images

Images made with the models on zzo.ai, run through this tool in Chrome on November 3, 2026. Sizes are file sizes; under 1 MB and 200 KB show the size and quality the tool picked.

ImageOriginalJPG 85%WebP 80%PNG, 256 colorsAt most 1 MBAt most 200 KB
Nano Banana 2.12752 × 1536 pxPNG 7.58 MB798 KB543 KB2.13 MB2752 × 1536, 85%: 798 KB1557 × 869, 71%: 181 KB
Nano Banana 2.12752 × 1536 pxPNG 6.93 MB612 KB482 KB2.43 MB2752 × 1536, 85%: 612 KB1727 × 964, 78%: 185 KB
Nano Banana 2.12528 × 1696 pxPNG 5.07 MB174 KB92 KB1.95 MB2528 × 1696, 85%: 174 KB2528 × 1696, 85%: 174 KB
GPT Image 2.51024 × 1024 pxPNG 1.46 MB122 KB77 KB448 KB1024 × 1024, 85%: 122 KB1024 × 1024, 85%: 122 KB
GPT Image 2.5768 × 1024 pxPNG 1.37 MB124 KB83 KB650 KB768 × 1024, 85%: 124 KB768 × 1024, 85%: 124 KB

How the target size works

When you choose a size under Compress to at most, the editor looks for the highest quality that still fits, starting from your Quality setting. It won’t go below 60% to get there, because lower settings start to show blocks. If 60% is still too big, it makes the image smaller in pixels and tries again, then tells you the new size.

That’s why a large image can come back with fewer pixels. In our test on November 3, 2026, a 2752 × 1536 image made with Nano Banana 2.1 needed 1557 × 869 px at 71% quality to fit under 200 KB (181 KB). A plain product shot of 2528 × 1696 px was already under 200 KB at full size at the default 85% (174 KB). Busy photos, with lots of texture and detail, compress less than plain ones. As a rule of thumb from these images, a 2K image under 200 KB needs to be about 1,550–1,730 px wide unless it’s simple.

A PNG with a target size works in the same order, with one step added: the editor first tries all colors, then 256 colors (or the number you picked), and only then fewer pixels. The result says when it reduced the colors.

How to make a PNG smaller

With all colors, PNG keeps every pixel exactly, so a PNG photo stays large. You have two ways out:

  • Fewer colors, still PNG. Under Colors, pick 256, 128, 64 or 32. Transparency is kept, so this suits logos, screenshots, illustrations and cut-outs from Remove Background. In our test, 256 colors made five AI-made PNGs 53–72% smaller: the 7.58 MB image became 2.13 MB. It’s lossy, and photos can show bands in skies and skin, because the colors aren’t dithered.
  • Another format. Press Switch to JPG or Switch to WebP. For photos this saves far more: the same five PNGs came out 89–97% smaller as JPG at 85%, and the 7.58 MB image became 798 KB. To change the format without compressing further, use Convert Image.

Compress without losing quality? What quality to choose

JPG and WebP are lossy: every save drops some fine detail. What matters is whether you can see it. Around 80–90% usually looks the same as the original on screen, at a fraction of the size, which is why the editor starts at 85%. Below that, fine textures soften first and smooth skies start to show bands.

JPGs here are written with MozJPEG, an open-source encoder that made our five test images 10–30% smaller than the browser’s own encoder at the same 85%. So at a given file size, you get a higher quality.

Two things help keep quality up. Use the target size instead of guessing: you get the highest quality that fits. And compress once, from the original: every step in the editor is redrawn from the original file, so trying 100 KB, then 200 KB, then 1 MB doesn’t compress the image again each time. Hold to see the original to check before you download.

JPG or WebP for uploads?

WebP makes the smaller file. In our test, WebP at 80% came out 21–47% smaller than JPG at 85% across five images. The catch is where you upload it. In the table on this page, eBay, Shopify, X and Pinterest list WebP; Etsy, LinkedIn and YouTube thumbnails don’t. If you aren’t sure, use JPG: it works almost everywhere. For a website you control, WebP is the smaller choice.

Compress many images at once

Drop or choose up to 50 images together, for a product listing, a blog post or an email. One set of settings applies to all: a quality, or a size under Compress to at most that each file has to fit, plus the format and the PNG colors. Press Apply to all and the images are compressed one after another in your browser. Each shows its new size, with a note when its pixels had to be reduced; download them one by one or press Download all as ZIP. Large batches stay in the browser’s memory until you close the page, so on a phone they can be slow.

AI-generated images are big: what to do

Image generators usually return PNG, and at 2K that’s several MB: the Nano Banana 2.1 images in our table were 5.07 to 7.58 MB, too big for Etsy’s 1 MB. Saving them as JPG at 85% brought all five under 1 MB at full size, from 122 KB to 798 KB. For 200 KB, the larger ones also needed fewer pixels.

If you made the image on zzo.ai, press Resize or compress (free) under the result: it opens here, loaded from your own history, and nothing is sent back. New images come from the AI image generator or the AI product photo generator, pay per generation with no subscription. A cut-out from Remove Background is a transparent PNG; compress it as WebP or keep it as PNG so the transparency stays. To change the pixel size as well, use Resize Image.

When a result goes wrong

The usual problems, why they happen and what to change.

The file is still over the limit

Why: The target is very small for the image, often a PNG or a large, detailed photo. When even fewer pixels at low quality can’t reach it, the editor says so.

Fix: Switch to JPG or WebP (or, for a graphic, pick fewer PNG colors), make the image smaller on the Resize tab first, or choose a larger limit if the site allows it.

A PNG with fewer colors shows bands or blotches

Why: With 256 colors or fewer, smooth gradients and photos have too few shades to blend, and the colors aren’t dithered.

Fix: Go back to 256 or All colors, or save a photo as JPG or WebP, which handle gradients far better.

The image came out smaller in pixels than expected

Why: At 60% quality it was still too big, so the editor reduced the pixel size to reach the target rather than letting the image turn blocky.

Fix: If the pixel size matters, try WebP (if the site takes it), crop away what you don’t need, or pick a larger target.

The file didn’t get smaller

Why: An already compressed JPG saved again at a higher quality would come out bigger, so the editor hands back your original file unchanged.

Fix: Lower the Quality slider or choose a size under Compress to at most.

Edges look blocky or skies show bands

Why: The quality is set low. JPG and WebP throw away fine detail first, and smooth gradients show it.

Fix: Move the slider back to 80–90%, and if the file is then too big, make the image smaller in pixels instead.

Questions

Updated 2026-11-03

How do I compress an image to 100 KB?

Open the image, click 100 KB under Compress to at most, and download. The same works for 200 KB, 500 KB, 1 MB, 2 MB and 5 MB. The editor picks the highest quality that fits and, if needed, makes the image smaller in pixels too.

How do I compress an image to 20 KB or 50 KB?

Click 50 KB, or type 20 in the Other size field with KB selected and press Apply. At sizes this small a photo almost always has to get smaller in pixels as well; the result tells you the new size.

Is the image compressor free? Are there limits?

Yes, it’s free: no sign-up, no watermark, no ads and no daily limit, because nothing is counted. The only limit is your device: about 16.7 megapixels on iPhone and iPad, 50 megapixels elsewhere.

Are my images uploaded to a server?

No. The image is compressed in your browser and never leaves your device. To check, open the developer tools, watch the Network tab while you compress, and you’ll see no upload request.

Can I compress an image without losing quality?

Not as JPG or WebP: both are lossy and always drop some detail. At 80–90% the difference is usually hard to see, and Hold to see the original lets you check. A PNG with all colors keeps every pixel, but a PNG photo stays large; fewer colors is lossy too.

Why did my image get smaller in pixels?

The target couldn’t be reached at 60% quality or above, so the editor reduced the pixel size instead of going lower and making the image blocky. The result says what size it chose.

Why is my PNG still big?

With all colors, PNG keeps every pixel, so it can’t shrink much. For a photo, press Switch to JPG or Switch to WebP: in our test, PNG to JPG at 85% cut AI images by 89–97%. For a graphic that must stay PNG, see the next question.

How do I make a PNG smaller without changing its format?

On the Compress tab, pick 256 under Colors (or 128, 64 or 32 for even smaller files). It stays a PNG with its transparency; 256 colors made our five test PNGs 53–72% smaller. It’s lossy: logos, screenshots and illustrations usually look the same at 256, while photos can show banding.

What quality setting should I use?

Start at 85%, the default. 80–90% suits most photos; go lower only if you need a small file and check the result. With a target size, the editor stops at 60% and makes the image smaller instead.

JPG or WebP: which is smaller? Does WebP work everywhere?

WebP. In our test, WebP at 80% came out 21–47% smaller than JPG at 85% for the same image. But not every site accepts it: Etsy and YouTube thumbnails don’t list WebP, while eBay, Shopify, X and Pinterest do (see the table). JPG works almost everywhere.

How do I make a photo small enough for Etsy, X or email?

Etsy says files over 1 MB may not finish uploading, so click 1 MB. X lists 5 MB for photos, so 5 MB is enough. Gmail takes attachments up to 25 MB; for several photos in one email, 1 MB or 2 MB each keeps the total low. The table on this page has each limit with its source.

Why is the file a little under the size I asked for?

The editor aims at most at your size, never over, so it lands just under. It counts 1 MB as 1,000,000 bytes, as upload limits usually do. Windows counts 1 KB as 1,024 bytes, so a 1 MB file shows there as about 977 KB.

Does it remove EXIF and location data?

Yes. Every saved file is re-encoded, which removes camera data and GPS location. The exception: if saving again would only make the file bigger and you changed nothing else, you get the original file back, with its data, and the editor tells you.

Will a transparent background survive?

In PNG and WebP, yes. JPG has no transparency, so transparent parts are filled with the color you choose under Fill transparent parts with on the Convert tab (white to start).

Does it work on iPhone? Can I compress HEIC photos?

Yes, in the browser, with nothing to install. HEIC photos open in every browser, on iPhone, Android, Windows or Mac, and are saved as JPG, PNG or WebP (not as HEIC). iPhone and iPad can edit images up to about 16.7 megapixels.

Can I compress several images at once?

Yes, up to 50. Drop or choose them together, set a quality or a size under Compress to at most (it applies to each file), and press Apply to all. Each image shows its new size; download them one by one or all as one ZIP. Undo history is only for single images.

More tools