Skip to content
Toolore

Utilities

Image Compressor

Choose an image, pick a format and quality, and optionally a maximum size. The image is compressed by your own browser, so it never leaves your device — useful for passport photos, documents and anything you would rather not upload to a stranger's server.

80 is a good balance for photos

Choose an image, adjust the settings and press Compress.

How to use this tool

  1. Choose an image from your device.
  2. Pick an output format: JPEG for photos, WebP for the smallest files in modern browsers, PNG when you need transparency or exact pixels.
  3. Set the quality. Around 80 keeps photos looking the same at a fraction of the size; lower it for smaller files.
  4. Optionally set a maximum width or height. The image is scaled to fit without stretching and is never enlarged.
  5. Press Compress, check the preview and the size saved, then download.

Formula and method

Fitting inside a maximum size

scale = min(max width ÷ width, max height ÷ height, 1)

Both sides are multiplied by the same scale, so the proportions never change, and the 1 stops a small image from being blown up.

Worked examples

A 4000 × 3000 phone photo, maximum 1600 px

  1. Scale: min(1600 ÷ 4000, 1600 ÷ 3000, 1) = 0.4
  2. New size: 1600 × 1200 px

The photo keeps its shape at 40% of the width. With a sixth of the pixels, the file is usually a small fraction of the original — the tool shows the exact saving.

Notes and limitations

  • Everything runs in your browser using its built-in canvas. The image is not uploaded, stored or seen by anyone else.
  • Compression re-encodes the image and removes its metadata, including camera details and GPS location — often a privacy benefit when sharing photos.
  • JPEG has no transparency, so transparent areas become white. Choose PNG or WebP to keep them.
  • An image that is already heavily compressed may come out larger. The tool tells you when that happens so you can keep the original.
  • Very large images can be slow on older phones because the whole image is decoded in memory.

Frequently asked questions

Is it safe to compress private photos here?

Yes. The image is processed by your own browser and never sent to a server. You can switch off your internet connection after the page loads and the tool still works.

How do I reduce a photo to under 100 KB or 200 KB?

Set a maximum width of around 1200 px and a quality of 70 to 80, then compress. If it is still too large, lower the quality or the width a step at a time — each result shows the new file size.

JPEG, PNG or WebP — which should I choose?

JPEG for photographs; WebP for the smallest files where the destination accepts it; PNG for screenshots, logos and anything with transparency or sharp text.

Does compressing reduce quality?

JPEG and WebP discard detail that is hard to see, so very low quality settings show blocky artefacts. At 75 to 85 most photos look unchanged. PNG is lossless, so its quality setting has no effect.