Image Compressor

An image compressor reduces a photo's file size while keeping it looking the same. Drop in a JPG, PNG or WebP image, adjust the quality, compare before and after, and download, with nothing uploaded.

Reviewed by ToolNook editorial team Updated Sources

Choose an image, drag it here or paste it

JPG, PNG, WebP, GIF, AVIF or SVG · up to 50 MB. Your image stays on your device.

Why compress images?

Images are usually the heaviest part of a web page. A photo straight from a phone can be 3–8 MB, far more than a website needs. Large images slow pages down, which frustrates visitors, hurts search rankings through Core Web Vitals and uses up mobile data. They also hit size limits on email attachments, job portals, government forms and online marketplaces.

Compression reduces the file size by discarding detail the eye barely notices. At 70–80% quality, most photos look identical to the original but are a fraction of the size. Unlike most online compressors, this tool never uploads your photos: everything happens in your browser, so even private documents and ID scans stay on your device.

How to use the image compressor

  1. Choose, drag or paste an image.
  2. Move the quality slider. The compressed preview and new file size update instantly.
  3. Pick an output format. WebP usually gives the smallest file; JPG works everywhere.
  4. Optionally set a maximum width. Shrinking a 4000-pixel photo to 1600 pixels often saves more than lowering quality.
  5. Compare the two previews, then click Download.

How it works

The image is decoded by your browser and redrawn on an HTML canvas at the size you choose. Large reductions are done in several halving steps for sharper results. The canvas is then re-encoded as JPG or WebP at the selected quality. Encoding also strips metadata such as camera details and GPS location, which is good for privacy.

PNG is a lossless format, so it ignores the quality setting. To shrink a PNG photo, convert it to JPG or WebP. Keep PNG for logos, screenshots and graphics with transparency or sharp text.

More worked examples

Share image: a 216.5 KB PNG banner saved as JPG at 75% quality comes out at about 48.5 KB, roughly 78% smaller, with no visible difference at normal size.

Common mistakes to avoid

  • Compressing PNG photos as PNG. PNG is lossless; convert photos to JPG or WebP.
  • Re-compressing the same JPG repeatedly. Each save loses detail; start from the original.
  • Uploading huge dimensions. Resizing often saves more than lowering quality; try the image resizer.

Sources and methodology

The calculations on this page follow these published standards and references. The code is covered by automated tests against known values.

Frequently asked questions

Are my images uploaded to a server?

No. Compression happens in your browser using the canvas API. Your images never leave your device.

Will compression reduce quality?

Lossy formats discard some detail, but between 70% and 85% quality the difference is usually invisible. Compare the previews before you download.

Why did my file get bigger?

If the original was already heavily compressed, re-encoding at a high quality can increase the size. Lower the quality, choose WebP or reduce the width.

Does it remove EXIF and location data?

Yes. Re-encoding the image through the canvas removes metadata such as camera model, date and GPS coordinates.

Can I compress several images at once?

This tool processes one image at a time so you can check each result. Change the image to compress the next one with the same settings.