Skip to main content

Optimize file size

Image Compressor

Reduce JPG, PNG, WebP, or AVIF file size locally and compare the result before downloading.

100% local

Drop one image here

JPG, PNG, WebP, or AVIF · up to 32 MB · adaptive 8–24 megapixel limit

Your image never leaves this browser

Private by design

Images stay in browser memory and are never uploaded by these tools.

Modern formats

Decode and export JPG, PNG, WebP, and AVIF using browser and WebAssembly codecs.

Keep your original

Re-encoding can alter metadata, animation, profiles, or quality, so verify every output.

Complete tool guide

Image Compressor guide

Make a JPG, PNG, WebP, or AVIF file smaller without changing its width, height, or format. Choose a quality level, compress, and compare the before and after file sizes and the preview before you download. The image is decoded and re-encoded in this browser tab, so it is never uploaded.

Your input is processed in the current browser tab and is not sent to the application server.

Why use this tool?

  • See the exact size before and after, plus the percentage saved, before you download anything.
  • Keep the same format and pixel dimensions, so the file drops into the same place as the original.
  • Never get a bigger file: if re-encoding would not save space, the original bytes are returned unchanged.
  • Compress private photos, ID scans, and screenshots without sending them to a server.

Common use cases

  • Getting a photo under an email attachment, job portal, or government form size limit.
  • Speeding up a website or blog by shrinking hero images and product photos.
  • Reducing phone photos before sharing them in chat apps or cloud storage.
  • Making screenshots and documentation images lighter for a knowledge base.
  • Preparing marketplace listing photos that must stay below an upload limit.

How to use it

  1. 1

    Choose or drag in one JPG, PNG, WebP, or AVIF image up to 32 MB.

  2. 2

    Set Output quality. 82% is the default and a good starting point for photos; lower values make smaller files.

  3. 3

    Select Compress image and compare the Before, Output, and Reduction values with the preview.

  4. 4

    If the result looks soft or blocky, raise the quality and compress again. Download when you are happy.

Controls and results explained

Output quality (1–100%)

Controls how much detail the lossy JPG, WebP, and AVIF encoders keep. Values around 70–85% usually look very close to the original photo at normal viewing size. Below about 50%, edges, skin tones, and smooth skies start to show blocks, halos, or banding.

PNG files

Browsers save PNG losslessly, so the quality slider is disabled for PNG sources. A PNG can only get smaller here if the browser’s encoder packs it more efficiently than the original. For big savings on photographic PNGs, convert them to WebP, AVIF, or JPG instead.

Before, Output, and Reduction

Before is the size of your file, Output is the size of the new file, and Reduction is (Before − Output) ÷ Before. The preview shows the actual compressed pixels, on a checkerboard so you can see any transparency.

Worked examples

Shrink a phone photo for an email attachment

Start with: IMG_2041.jpg · 4032 × 3024 px · 4.8 MB

  1. Choose IMG_2041.jpg and set Output quality to 75%.
  2. Select Compress image and read the Output and Reduction values.
  3. If the file is still too large, resize it to 2000 px wide first, then compress again.
IMG_2041-compressed.jpg · 4032 × 3024 px (unchanged) · Reduction = (Before − Output) ÷ Before

The pixel size stays the same, so all of the saving comes from the encoder. If the Output reads 1.2 MB, the Reduction card shows (4.8 − 1.2) ÷ 4.8 = 75.0%. The exact saving depends on the photo: busy detail such as foliage compresses less than smooth sky.

Try to compress an optimized PNG screenshot

Start with: settings-screenshot.png · 1440 × 900 px · already exported by an optimizer

  1. Choose the PNG. The quality slider is disabled because PNG export is lossless.
  2. Select Compress image.
  3. Read the note under the result.
settings-screenshot-compressed.png · same bytes as the original · Reduction 0.0%

The browser’s PNG encoder could not beat the existing file, so the original was kept rather than enlarged. For a smaller file, convert the screenshot to WebP in the Image Converter, which keeps text sharp at high quality settings.

What compression actually does

The image is decoded to raw pixels and encoded again with the same format. Lossy formats discard fine detail that is hard to see, which is where most of the saving comes from. Width and height do not change; to make the file much smaller, reducing the dimensions with the Image Resizer is often more effective than lowering quality.

Supported files and limits

Still JPG, PNG, WebP, and AVIF files up to 32 MB and 10,000 pixels per side are supported. The largest image a device can handle depends on its memory: typically 8–24 megapixels. Animated GIF, PNG, WebP, and AVIF files are refused because saving them would keep only one frame. HEIC, TIFF, BMP, and RAW files are not supported.

Metadata and color

Browser encoders do not copy EXIF data such as camera model, capture date, or GPS location into the compressed file, so compressing also strips that data. Photos are re-encoded in sRGB; images saved with a wide-gamut profile such as Display P3 may look slightly less saturated.

Practical tips for better results

  • Resize first, then compress: a 4000 px photo shown 1200 px wide is carrying about 11 times more pixels than it needs.
  • Judge quality at the size the image will actually be seen, not zoomed to 400%.
  • Always compress from the best original. Compressing an already-compressed JPG again compounds the loss.
  • Text, logos, and UI screenshots show artifacts sooner than photos; keep their quality higher or use PNG.
  • For websites, converting to WebP or AVIF usually saves more than compressing a JPG harder.

Frequently asked questions

Is this image compressor free and private?

Yes. There is no account, limit on the number of images, or watermark. Your image is processed in this browser tab and is not uploaded to a server; refreshing the page clears it.

How do I compress an image to under 100 KB or 1 MB?

Compress at 82%, check the Output size, then lower the quality in steps of about 10 until it fits. If quality drops too far before you reach the target, reduce the dimensions with the Image Resizer first; halving width and height removes about three quarters of the pixels.

Why is my compressed file the same size as the original?

If the new file would be the same size or larger, the tool gives you the original bytes back instead of making the download bigger. This is common for PNG screenshots and images that were already optimized. Try a lower quality, a smaller size, or converting to WebP.

Does compressing change the image dimensions?

No. Width and height stay exactly the same. Use the Image Resizer when you also need a smaller pixel size.

Can I compress several images at once?

Not yet. The compressor handles one image at a time so you can check each result before downloading it.

What to check before using the result

  • One still image at a time, up to 32 MB and 10,000 px per side; animated images are not supported.
  • You choose a quality level, not a target file size; adjust and compress again to reach a limit.
  • EXIF data and embedded color profiles are not carried into the compressed file.

Keep working

Continue with another focused tool from the same collection.