Image Compressor

Compress JPG, PNG and WebP images with a quality slider, an optional maximum width and a choice of output format, free and instant. Every file is processed by JavaScript on your own device and is never uploaded.

Image CompressorPrivate · runs on your device
Results

Your processed files appear here with download buttons.

How to use the image compressor

The compressor takes one picture or a whole batch, and every step happens on your device.

  1. Drop your pictures on the area marked Drop files here or click to choose, or click it and pick them from your computer or phone. Each file is listed with its size, and anything that is not an image is skipped with a message.
  2. Set Quality between 10 and 100. The default of 75 is a sound starting point for photographs.
  3. Type a value in Max width in px (0 = keep size) if your pictures are larger than they need to be. Images wider than this are scaled down in proportion. Narrower ones are left alone, because the tool never enlarges.
  4. Choose an Output format: Same as input, JPEG, WebP or PNG.
  5. Click Compress images. Each result shows a thumbnail, the new dimensions, the size before and after, and the percentage saved.
  6. Use Download beside a file, or Download all for the whole batch. Clear empties the list so you can start again.

What each setting really does

The quality slider is handed to the browser encoder as a number from 0.10 to 1.00, so 75 means 0.75. It affects JPEG and WebP only. PNG is lossless, so for PNG output the slider is ignored and the result note says so. Lower quality discards the fine detail the eye notices least, which is why a photograph can lose most of its weight with little visible change, while a screenshot with sharp text shows the damage sooner.

With Same as input, JPEG, PNG and WebP files keep their format. Other pictures, such as GIF, BMP or AVIF, are saved as PNG. When the output is JPEG, transparent areas are filled with white, because JPEG cannot store transparency.

Reducing the width often saves more than lowering quality. Take a phone photo of 4032 x 3024 pixels, which is about 12.2 million pixels. Setting Max width to 1600 gives 1600 x 1200, about 1.9 million pixels, or 84 percent fewer, before any quality loss is applied. Combine both settings and a multi-megabyte camera file commonly ends up at a few hundred kilobytes, though the exact figure depends on how much detail the scene holds.

Choosing quality and format

These starting points suit most jobs. Adjust from there by eye, comparing each result with the original at full size.

UseSuggested setting
Thumbnails and previewsQuality 55 to 65, Max width 400 to 800
Blog and article photosQuality 70 to 80, WebP or JPEG, Max width 1200 to 1600
Portfolio images with fine textureQuality 85 to 90, keep the full width
Logos, screenshots, diagramsPNG, and lower the width if the file is too big

WebP is commonly reported to be 25 to 35 percent smaller than JPEG at similar visual quality, and every current browser opens it. Some older desktop programs and upload forms still refuse it, so choose JPEG for email attachments and application forms. An already well-optimised file can come out larger after re-encoding, and the result card then says so. When that happens, keep the original. Avoid compressing the same JPEG repeatedly, because each pass loses a little more detail. Always start again from the original file.

Privacy, metadata and limits

Files are read by the browser, redrawn on a canvas and re-encoded in memory, so nothing is uploaded and no copy is kept. The redraw keeps pixels only. EXIF data such as GPS position, camera model and capture date is absent from the compressed file, and the browser applies the photo rotation flag first, so portrait shots still open upright. If you only want the metadata gone, the EXIF remover does that and reports what it found.

Animated GIFs are flattened to their first frame, and very large images are limited by the memory your device can give the browser tab. For exact pixel sizes use the image resizer, to cut a picture to a shape use the image cropper, and to change only the format see the image converter. Once your pictures are small enough, the image to PDF converter can put them into one document.

Quick answers

Frequently asked questions

The questions people ask most, answered in plain words.

How do I compress an image without losing visible quality?

Keep Quality between 75 and 85 and compare the result with the original at full size. Photographs usually look the same while the file shrinks by half or more. Reducing Max width saves extra with no quality loss, and WebP output is often smaller still. If gradients look blocky, raise the quality a little and compress the original again.

Are my images uploaded to a server when I compress them?

No. The compressor runs in your browser using the Canvas API. Files are read from your device, re-encoded in memory and returned as downloads. Nothing is transmitted or stored, so private photos, ID scans and client work stay on your machine. You can check by going offline after the page loads and compressing anyway.

Why did my PNG barely get smaller?

PNG is lossless, so the Quality slider has no effect on it, and the result note says so. To shrink a PNG, lower Max width so it has fewer pixels, or switch Output format to WebP or JPEG if it is a photo without transparency. Logos and screenshots are usually fine as PNG at a smaller width.

Why is my compressed file larger than the original?

A file grows when it was already well optimised, or when a JPEG is saved as PNG, which stores every pixel without loss. The result card then shows the change as larger. Lower the quality, reduce Max width or choose WebP, and keep the original if no setting gives a smaller file.

Does compressing remove EXIF and location data from photos?

Yes. Redrawing the picture on a canvas keeps only the pixels, so GPS coordinates, camera settings and the capture date are not in the compressed file. The browser applies the original rotation first, so photos still appear the right way up. Keep the original file if you need that information later.