Image Compressor — JPG, PNG and WebP
Compress images and reduce photo file size in your browser: shrink a JPG under 1 MB, convert PNG to WebP, resize and batch compress, with nothing uploaded
Loading the tool…
This image compressor makes JPG, PNG and WebP files smaller by adjusting the compression quality and the pixel size. Use it when a form or email attachment has a size limit, or when photos for a blog or online shop are too large, and compress many at once. Photos are never uploaded; they are processed in your browser, and each one shows its new size and the percentage saved right away, so you can try different settings and compare.
How to use
- Drop photos onto the "Drop files here or click to choose" box, or click it to pick them. You can add several at once, and paste a screenshot directly with Ctrl+V.
- Set the "Quality". It goes from 10 to 100 with a default of 75; a lower value gives a smaller file.
- If you need it smaller, choose 3840, 2560, 1920, 1280 or 800 px under "Longest side, at most". A photo already smaller than that keeps its original size and is never enlarged.
- Leave "Save as" on "Automatic (JPEG for photos, WebP for PNG)", or choose JPEG, WebP or PNG to match what the destination requires.
- Check each photo's pixel size, its old and new file size and the percentage saved. Changing a setting recompresses every photo in the list.
- Press "Download" for one photo, or "Download all as ZIP" for several. When you are done, "Clear all" empties the list.
How it works
- "Automatic" saves JPEG photos as JPEG, and PNG or WebP images as WebP. When saving as JPEG, transparent areas become white.
- PNG keeps every pixel, so the "Quality" slider is hidden when PNG is chosen and the file may hardly shrink.
- A photo that came out larger than the original is marked "No smaller". Keep the original in that case, or lower the quality or size further.
- The compressed files contain no EXIF data such as the location, date taken or camera model.
- Only images your browser can open can be processed; others are marked "This file could not be opened". Downloaded files keep their original name with the new format's extension.
- Photos never leave your device. Only the quality, size and format settings are saved in this browser for next time.
How to compress a photo to under 1 MB
Two things decide an image's file size: the number of pixels (width × height) and the compression quality. Phone photos are commonly around 4000 × 3000 pixels, or 12 megapixels, so even as JPEG they often take several megabytes.
Choosing 1920 px under "Longest side, at most" turns a 4000 × 3000 photo into 1920 × 1440, about 23% of the original pixel count. File size roughly follows pixel count, so that alone makes a big difference, and with "Quality" at 75 the result is usually under 1 MB. Photos full of fine texture, such as leaves or sand, stay larger at the same settings.
For photos that will only be viewed on screen, the original usually has far more pixels than needed, so reducing the size first does less visible harm. Pushing quality below 50 tends to add smudges and blocky patterns around edges. For a photo you plan to print large, keep the original size and just set quality around 80.
JPG vs PNG vs WebP: which format to save as
JPEG is a lossy format that discards detail the eye hardly notices, which suits photos, but it cannot store transparency. PNG is lossless and keeps every pixel, which suits screenshots with text and graphics with transparent backgrounds, but makes photos very large. WebP supports both lossy compression and transparency, and in Google's published comparison lossy WebP files were 25% to 34% smaller than JPEGs of similar quality.
Most current browsers open WebP, but some older programs and upload forms do not accept it. If the destination only takes JPG, set "Save as" to JPEG; for a PNG whose transparency must survive, use automatic or WebP.
How to reduce PNG file size, and why it barely shrinks
PNG never loses quality and only removes repetition, so a photo-like image with complex colors hardly gets smaller. Converting such a file to WebP, or to JPEG when there is no transparency, often cuts it to a fraction of the size. For screenshots with text, a high quality of 85 to 90 keeps the letter edges clean.
Sometimes the result is marked "No smaller". Re-saving a JPEG that was already compressed at low quality with a higher quality setting can make it bigger, so keep the original or lower the quality. Lossy compression loses a little every time you save, so always start from the original rather than compressing a compressed file again.
Compress images without uploading, and EXIF location data
Many online image compressors send your photos to a server and send them back. This tool re-encodes them on your device with the browser's canvas, so files you would rather not hand over, such as ID scans or family photos, never leave it.
The re-saved file contains no EXIF data such as GPS location, date taken or camera model. That keeps your location private when sharing, but photo apps that sort by date taken will lose that date, so keep the originals.
Questions and answers
- How do I reduce a photo to under 1 MB?
- Set "Quality" to 70–80, and if it is still too large, lower "Longest side, at most" to 1920 px or 1280 px. The new size of each photo appears at once, so adjust until it is small enough.
- How do I compress an image to 100 KB?
- Choose 800 px under "Longest side, at most" and lower "Quality" to 60–70. Results vary by photo but usually land around 100 KB; lower the quality a little more if needed.
- Can I compress several images at once?
- Yes. Add them together; all are compressed with the same settings and can be saved at once with "Download all as ZIP".
- Does compressing make the photo look worse?
- At quality 70–80 the difference is often hard to see on screen. Lower values make edges and gradients rougher, so open the downloaded file to check.
- Does compressing an image reduce its resolution?
- Not if "Longest side, at most" is set to "Keep original size". Then only the quality is lowered and the pixel count stays the same.
- Why does a PNG file barely get smaller?
- PNG stores every pixel without loss, so "Quality" cannot reduce it. With "Save as" on automatic or WebP, the file gets smaller and keeps its transparency.
- How do I get a JPG for a site that only accepts JPG?
- Choose JPEG under "Save as". Transparent areas are filled with white and the file is saved with a .jpg extension.
- Why did my compressed image get bigger?
- This happens with photos that were already heavily compressed, and they are marked "No smaller". Use the original, or lower the quality or size further.
- Are my photos uploaded to a server?
- No. All processing happens in your browser and the photos never leave your device.
- Does the compressed photo keep location data?
- No. Re-saving drops all EXIF data, including GPS location and the date taken.