Image compressor
Shrink photos to a quality level or to a target size, without leaving your browser.
Files stay on your device. Nothing is uploaded.
The tool tries qualities until the file fits.
Add an image and the result appears here with the comparison slider.
Related tools
Drop in photos or screenshots and this page re-encodes them smaller. Move the quality slider and watch the size fall, or ask for a target size and the tool searches for the highest quality that stays under it. Handy before an email attachment, a shop upload or a bug report. Compression runs in a background thread inside your browser, so a batch never freezes the page and no file is sent anywhere. Only your settings are kept on this device; the images are gone when you close the tab.
How to use
- Drop your images on the panel, pick them with the file chooser, or paste one with Ctrl+V.
- Pick a quality level, or switch to target size and type the size you need in KB.
- Drag the comparison slider over the result to check the detail you care about.
- Download a single file from its row, or take the whole batch as one zip.
What it handles
- Reads the real file type from the first bytes, so a HEIC photo renamed to .jpg is reported as HEIC instead of failing with a blank error.
- Applies the rotation stored by your phone before it re-encodes, so a portrait photo does not come back on its side.
- Asks the background colour when a transparent PNG becomes a JPEG, because JPEG has no transparency and the transparent parts have to become something.
- Scales images above 25 megapixels down to that limit before encoding, and the row says so, so a 108-megapixel photo cannot exhaust the tab memory.
- Takes GIF and AVIF in and writes PNG and WebP out, because no browser can encode those two formats from a canvas.
- Says when a target size cannot be reached at the lowest quality, and gives the smallest file it managed.
FAQ
Are my photos uploaded to a server?
No. The images are decoded and encoded by your own browser, in a background thread on this device. There is no upload, no account and no server that could keep a copy. The tool still works after you disconnect from the network. Only your settings are remembered locally; the images are gone when the tab closes.
Is there a size limit?
Each file must be under 50 MB and a batch holds up to 100 files. Images larger than 25 megapixels are scaled down to that limit before encoding, because a bigger bitmap can exhaust the memory a tab is allowed. Files that are skipped are listed with the reason, so nothing disappears quietly.
Does it keep EXIF data?
No. Re-encoding through a canvas produces a clean file, so EXIF, GPS coordinates, the camera model and the colour profile are all dropped. The rotation flag is applied to the pixels first, so the photo still looks upright. If you need the metadata, keep the original file next to the compressed one.
Why is my PNG bigger after I convert it to JPEG?
PNG is good at flat colour and sharp edges, which is what screenshots, logos and diagrams are made of. JPEG spends bytes describing the noise it adds around every hard edge, so it can end up larger and blurrier. Keep PNG for that kind of image, and use JPEG or WebP for photographs.
Does the tool work with HEIC photos from an iPhone?
Only where the browser itself can decode HEIC, which today means Safari on Apple devices. Everywhere else the file is listed as unsupported rather than silently skipped. The simplest way around it is to set your iPhone camera to Most Compatible, which saves JPEG, or to export the photo as JPEG first.
Updated