Free Online ToolsMFXGJ

Image Compressor

Upload forms, exam registrations and marketplaces all reject photos that are too large — usually with a hard limit like “under 200 KB”. This compressor shrinks your images entirely in your browser: nothing is uploaded to a server. Compress a batch of JPG, PNG or WebP files by quality, scale them down by a percentage, or set an exact target size (100 KB, 200 KB, 1 MB, or your own KB figure) and let the tool find the highest quality that fits. You can also convert between JPG, PNG and WebP, and every result shows the before/after size so you can check the saving.

Choose one or more images to see them here. Everything runs in your browser — no image is uploaded.

How to use the Image Compressor

  1. Choose or drop one or more JPG, PNG or WebP images.
  2. Pick a mode: by quality, scale down, or an exact target size (presets 100 KB / 200 KB / 1 MB, or a custom KB).
  3. Optionally convert the output format, then select “Compress all” and download each image — or all of them one by one.

Formula and method

Compression re-encodes the image with your browser’s built-in encoder. In target-size mode the tool binary-searches the encoder quality (and, if even the lowest quality is too big, steps the pixel dimensions down) until the output is at or under your target — the same trial-and-check method professional tools use, run locally. EXIF orientation from phone photos is honoured, so portrait shots never come out sideways; note that re-encoding strips EXIF metadata such as location.

Example

A 3 MB phone photo compressed to the 200 KB target keeps its full resolution at the highest quality that fits under 200 KB. Use the “Load example” button above to try it with the sample inputs.

Frequently asked questions

Are my images uploaded to a server?

No. All compression happens in your browser with the Canvas API. You can verify it by loading this page and then switching off your network — the tool still works.

Why does the target-size mode sometimes reduce the dimensions?

A very small target (for example 100 KB) cannot always be reached by quality alone at full resolution. When the lowest quality still overflows, the tool steps the image down in size until it fits, and tells you the new dimensions.

PNG or JPG — which compresses smaller?

For photos, JPG or WebP is almost always far smaller. PNG is lossless and suits screenshots, logos and images with text or transparency; converting a photo from PNG to JPG typically cuts the size by 80–95%.

Will the compressed image lose quality?

Lossy formats (JPG/WebP) trade a little detail for a lot of size. At quality 80+ the difference is hard to see; the preview shows original and compressed sizes side by side so you can judge before downloading.

Related tools