Image Compressor

Compress JPG, PNG and WebP images in your browser, or to a target size in KB for a form that caps the upload.

Private in your browserFree · No sign-up
On your device. Off the cloud.
01

Start with an image

Drop it like it’s done.

JPG, PNG, or WebP · up to 20 MB each

Stays on your device
02

Make it fit

Keeps proportions. Smaller images are never enlarged.

80%

For forms that cap the upload — 50 KB for an exam photo, 20 KB for a signature. Quality steps down from the setting above until the file fits. Leave empty to compress by quality alone.

03

The result, before the download.

A little less work awaits.

Choose an image to see it here.

Files and results stay in your browser. No uploads or account.
FROM INPUT TO ANSWER

How to use the image compressor

  1. 01

    Choose your files

    Select files from your device and check the supported formats and size limits.

  2. 02

    Check the preview

    Compare the preview and output file size with the original. Inspect fine text and sharp edges at full size before downloading a smaller image.

  3. 03

    Download and verify

    Download the finished file, then open it to check the content, layout and dimensions before sharing.

A LITTLE CONTEXT

About this image compressor

Reduce an image file so it fits where you need to put it. If a form caps the upload at a size — many exam, government and job portals do, and the cap is usually printed in the form instructions — enter that number as the target in KB and the compressor works down to it. Otherwise set a quality level and compare the original against the result. You can also cap the dimensions and change the output format. Everything is decoded and re-encoded on your own device, so the photo is never uploaded to a service, which matters when the file is an identity document or a signature.

How the image compressor works

The image is decoded into pixels in a browser worker, fitted within the maximum dimensions without upscaling, and re-encoded as WebP, JPG or PNG. When a target size is set, the encoder starts at your quality setting and steps down until the file fits, so an image that already fits is encoded once and left alone. The result reports the quality actually used, which is lower than your setting whenever the target forced it down. PNG is lossless and its size does not respond to quality, so a target cannot be applied to it.

Image Compressor examples

01

3,000 × 2,000 photo, target 50 KB, saved as JPG

Under 50 KB; the report names the quality it had to use to get there
02

Photo already under the target

Encoded once at your quality setting; the target changes nothing
03

2,000 × 1,000 image, max 1,080 × 1,080

1,080 × 540 output; exact file size depends on the image
04

100 KB original and 60 KB output

40% smaller

Limitations & privacy

One JPG, PNG or WebP up to 20 MB and 12 million pixels. Output sides are limited to 4,096 pixels. A target size is available for JPG and WebP only, between 5 KB and 10 MB. A small target on a large image is reached by lowering quality, which can leave it visibly degraded — reducing the maximum width and height first gives a better-looking file at the same size. A target that cannot be reached at the chosen dimensions fails with a message rather than returning an oversized file. Compression savings vary and a result can be larger than the original. PNG ignores quality. JPG replaces transparency with white. Animation, EXIF and colour profiles are not preserved. Web Workers and OffscreenCanvas are required.

Inputs and results stay in this browser. Only tool identifiers are stored for your recently used tools. You can clear that history from the directory.

Image Compressor: frequently asked questions

How do I compress an image to 50 KB?

Choose the image, set Save as to JPG or WebP, enter 50 in the target size field, and compress. The encoder steps quality down until the file fits. The same works for 20 KB, 100 KB, 200 KB or any size between 5 KB and 10 MB.

The quality dropped a lot to reach my target. What should I do?

Lower the maximum width and height, then compress again. A smaller image needs far less data for the same file size, so it reaches the target at a much higher quality. The result tells you when quality fell below 35% for this reason.

Can I compress a PNG to a target size?

No. PNG is lossless, so its size does not respond to the quality setting and a target cannot be reached by reducing it. Choose JPG or WebP instead; for a photo either is usually smaller than PNG anyway.

What size does my form need?

Check the form's own instructions. Caps differ between portals and change between years, so the number printed next to the upload field is the one to trust rather than a figure from anywhere else.

Does my photo get uploaded?

No. A browser worker processes it on your device, which is why this is safe to use for an identity document or a signature.

Why is the result larger than the original?

Some source files are already well optimised. Try WebP, a lower quality, or smaller dimensions.

Updated October 10, 2026

Related tools for your next step

All tools