Image Compressor — Reduce JPG, PNG & WebP Size
Browser-based compressor for JPG, PNG and WebP, by quality or to a target file size
Runs in your browser · nothing is uploaded
Drop images here
Add up to 50 JPG, PNG or WebP images at once, up to 50 MB each. You can also choose files or copy an image and paste it with Ctrl+V (⌘V on Mac). Images never leave your browser.
Higher is sharper and larger. Around 75 works well for photos.
Applies to PNG only. Fewer colors shrink the file a lot but can make gradients look banded.
PNG is saved with a reduced palette (quantized). Transparency is kept.
In pixels (px). Leave blank to keep the original size. Example: 1920
Re-saving removes the EXIF data inside a photo (camera, time, GPS location). Files kept as the original because they could not get smaller still have their EXIF.
What it is
An image compressor reduces the file size of photos and screenshots. Use it when an upload form has a size limit, when you want to attach several pictures to an email, or when you want blog and product pages to load faster. All work happens in your browser, so the images stay on your device, and you can process up to 50 files at once and download them as one ZIP.
How to use
- Drop images on the dashed area, press Choose images, or paste a copied image with Ctrl+V (⌘V on Mac).
- With By quality, set the quality (10 to 100) using the slider. Around 75 often cuts photos a lot without a visible difference.
- If a site has an upload limit, switch to To a target size and pick 50 KB, 100 KB, 200 KB, 300 KB, 500 KB or 1 MB, or type your own number of KB.
- Optionally convert to JPG or WebP, and enter a value such as 1920 under Maximum long edge to reduce the resolution too.
- Download each file with its card button, or use Download all (ZIP) when there are two or more. Changing a setting rebuilds the results automatically.
How it works
- Quality mode re-saves the image once at the chosen quality. If the result is not smaller than the original, the original is kept and you are told so. When the format stays the same you never get a larger file; when you choose a different output format, the converted file is returned even if it is larger.
- Target size mode tries qualities between 0.3 and 0.95 with a binary search (6 to 7 attempts) and keeps the highest quality that fits. If the lowest quality is still too big, the image is scaled down by 15% steps and the search repeats, stopping at 320 px on the long edge.
- PNG is saved with a reduced palette (quantization) when you keep the format. The default is 256 colors, with 128, 64, 32 and 16 available. Transparency is preserved.
- Transparency: PNG and WebP keep it when saved as PNG or WebP. JPG has no transparency, so transparent areas become white.
- Orientation: the rotation stored in a phone photo is applied, so the picture does not turn sideways.
- Metadata: because the image is re-saved, EXIF data including GPS is removed.
Tips for upload size limits
- Every site has its own size and format rules. Read the limit on the upload page first and choose a target a little below it.
- The target counts 1 KB as 1,000 bytes, so a file made for “under 200 KB” passes whether the site checks 200,000 or 204,800 bytes. If a site re-processes uploads, aim a little lower when you are close to the limit.
- For photos of documents or ID pages, check that the text is still readable while you lower the size. If it gets blurry, raise the quality or allow a larger long edge.
- Product photos for online shops are often fine at roughly 1000 to 2000 px on the long edge. Follow each shop’s own published requirements.
- If a form only accepts certain formats, choose JPG as the output. Almost everything accepts JPG.
JPG vs PNG vs WebP
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| JPG | Lossy, strong on photos | No | Photos and smooth gradients |
| PNG | Lossless (shrunk by reducing colors) | Yes | Logos, screenshots, sharp text and lines |
| WebP | Lossy or lossless | Yes | Photos and graphics for the web |
WebP often gives smaller files at the same visual quality, but some older programs and upload forms do not accept it.
Examples
| Situation | Suggested setting |
|---|---|
| Several photos in one email | Quality 75, long edge 1920 |
| Upload limit of 200 KB | Target 200 KB, convert to JPG |
| Shrink a transparent logo PNG | Keep format, 128 colors |
| Photos for a blog | Convert to WebP, quality 80 |
FAQ
Are my images uploaded anywhere?
No. Everything happens inside your browser and nothing is sent to a server. That makes it fine for sensitive pictures such as scans of documents. Only the files you download end up on your device.
Does compressing remove GPS location data from photos?
Yes. The tool redraws the image and saves a new file, so the EXIF data (camera, time, GPS location) is gone. The exception is a file returned as the original because it could not get any smaller; it is the untouched original, so its EXIF is still there. The card tells you when that happens.
Why is the result bigger than my target size?
When even the lowest quality (30%) is too large, the image is scaled down by 15% steps and tried again. It never shrinks below 320 px on the long edge, so very small targets can be out of reach. In that case you see "Couldn't reach the target" together with the smallest result found.
Why does PNG shrink less than JPG?
PNG is lossless, so the tool reduces the number of colors instead. It uses 256 colors by default and you can go lower for smaller files. For photos with many colors, converting to JPG or WebP shrinks far more. Note that JPG fills transparent areas with white.
Can I compress animated GIFs or iPhone HEIC photos?
Not yet. Only JPG, PNG and WebP are supported. GIFs are excluded because saving an animation as a single image loses the motion, and HEIC cannot be read yet. The format is detected from the file content, not the extension, so a renamed file is rejected.
Related tools
Image Resizer
Browser-based image resizer with pixel, percent and long-edge modes and social platform presets
HEIC to JPG Converter
Browser-based HEIC to JPG converter for iPhone photos, batch ZIP download, no upload
PNG to JPG Converter
Browser-based PNG to JPG converter with background color and quality control, batch ZIP
JPG to WebP Converter
Browser-based JPG to WebP converter for lighter web images with quality control
Rotate & Flip Image
Browser tool that rotates and flips photos in bulk and bakes in the EXIF rotation