How to compress images
- 1Choose an Output Format. Auto (recommended) keeps JPEGs as JPEG and saves PNG, WebP, GIF and BMP files as WebP. You can also force WebP, JPEG, or Same as input.
- 2Set the Quality slider. The default is 75%, and 70-85% is a good balance for photos.
- 3Drag images onto the Drop Images area or click to browse. Add as many as you like; they're compressed one after another, so you can compress images in bulk.
- 4Review the Results list: each row shows the original and compressed size, the output format and the percentage saved.
- 5Click Save on any row, or Download All. Files are saved with a -compressed suffix.
How browser-based image compression actually works
Compressing a JPEG or WebP means re-encoding it at a lower quality setting. Lossy encoders split the image into small blocks, describe each one with frequency data and then throw away the fine detail your eye is least likely to miss. The quality value decides how much gets discarded. Between roughly 70 and 85 the savings are large and the difference is hard to spot; below that you start seeing smudged textures and blocky edges. Results also depend on content: a detailed photo has more to discard than a flat illustration, so two files at the same quality can shrink by very different amounts. For camera photos, which is what most people want a photo compressor for, re-encoding at 75-80% typically brings a straight-from-the-phone JPEG down to a fraction of its size.
PNG is a different story. It's a lossless format, and the browser's canvas encoder writes PNG without any quality setting, so re-saving a PNG as PNG gives you about the same size back. There's no slider that can change that. That's why the default Auto mode converts PNG input to WebP: WebP supports transparency like PNG does, but its lossy mode is far more compact. A large screenshot or illustration often shrinks by well over half.
If you need to keep the original format, choose Same as input. JPEG and WebP files will still shrink, but PNGs won't, and the tool shows a warning when that combination is selected. Browsers can't write GIF or BMP, so those files are saved as WebP in Auto and Same as input modes, which keeps any transparency. An animated GIF keeps only its first frame.
All of this runs locally. Each file is decoded, drawn to a canvas and re-encoded by your browser, so nothing is uploaded and you can compress private or unreleased images safely.
When developers reach for it
Speeding up page loads
Shrink images before committing them to a repo or CMS so pages ship fewer bytes and score better on Core Web Vitals.
Getting under upload limits
Reduce image size to get a photo or screenshot below the cap on a form, issue tracker or chat app without opening an image editor.
Fixing oversized PNG screenshots
Let Auto mode convert multi-megabyte PNG screenshots to WebP for docs, READMEs and blog posts.
Emailing photos
Compress pictures from your phone before attaching them to an email, where a handful of full-size shots can blow past the attachment limit.
Batch-optimizing an asset folder
Drop a whole set of images at once, check the total savings in the footer and download them all.
Frequently asked questions
Why does Auto mode change my PNG into a WebP?
+
PNG is lossless, and the browser's PNG encoder has no quality setting, so re-saving a PNG doesn't make it meaningfully smaller. Converting to WebP keeps transparency and usually cuts the size by more than half.
Can I compress PNG files and keep them as PNG?
+
You can pick Same as input, but expect little or no size reduction. Real PNG optimization needs color-palette reduction, which a dedicated image optimizer such as pngquant does and this browser-based compressor doesn't.
How do I reduce PNG file size the most?
+
Leave the format on Auto, which saves PNGs as WebP and keeps transparency. If the file has to stay a PNG, the next biggest win is resizing it to the dimensions it's actually displayed at, since fewer pixels means fewer bytes in any format.
What quality setting should I use?
+
Start at 75-80% for photos. If the result looks fine, try lower; if you see blocky edges or banding in gradients, go higher.
Why did my file get bigger?
+
If the original was already heavily compressed, re-encoding at a higher quality can add bytes. The row shows a plus percentage in that case, so just keep the original file.
Are my images uploaded?
+
No. Compression runs in your browser with the canvas API, and the files never leave your device.
Does compression remove EXIF and GPS data?
+
Yes. Re-encoding through a canvas doesn't carry metadata over, so camera details and location data are dropped from the compressed file.
Related tools
Image Converter — WebP, PNG & JPG
Convert PNG, JPG, WebP, GIF, and BMP images to WebP, JPEG, or PNG with an adjustable quality slider. Batch-convert multiple files at once with live size comparison. Everything runs in your browser — no uploads, no size limits.
Image Resizer
Resize images to exact pixel dimensions or a percentage of the original, with optional aspect-ratio lock. Export as WebP, JPG, or PNG at any quality.
Image to Base64
Encode any image as a base64 data URL. Copy as raw string, CSS background, HTML img tag, or Markdown — perfect for inlining icons and small assets.
Flip & Rotate Image
Rotate images by 90° / 180° / 270° and flip horizontally or vertically. Chain multiple operations, undo, and export in your preferred format.
EXIF Remover
See and remove EXIF, GPS location, camera and other metadata from JPG, PNG and WebP photos without re-encoding. Batch-capable, nothing is uploaded.