Compress an image to a target size in KB or MB

Upload forms, application portals and email servers set hard limits.

Compress image to size
Drop image files hereChoose image photosor paste with Ctrl V · up to 50 filesUp to 50 · stays on your phoneNo file handy? Try a sample
  • Free, no sign-up
  • No upload
  • Up to 50 files
  • Free, no sign-up
  • No upload
  • Up to 50 files

How it works

Three steps, under a minute

Upload forms, application portals and email servers set hard limits. Type the limit, drop the image, and the tool searches for the highest quality that fits under it, scaling the pixels down only if it has to. The result and its exact size appear before you download. Nothing is uploaded. Up to 50 files per batch, each up to 40 megapixels at full quality.

  1. 1

    Add your files

    Drop the image or images on the tool.

  2. 2

    Compress

    Type the target, pick KB or MB, and choose the output format (JPG is accepted everywhere).

  3. 3

    Download

    Click Compress. The results row shows the final size; open Compare if you want to check it, then download.

What you get

Built for real batches, not just one file

  • Any target from a few KB to many MB.

  • Quality is searched first; pixel size is reduced only when needed, and the row tells you.

  • JPG, WebP, PNG or AVIF output.

  • Batch of 50 with ZIP, no upload, no watermark.

Settings

How the search works

The image is encoded at the highest quality and the lowest acceptable quality to see whether the target is reachable by quality alone. If it is, a binary search between the two finds the best quality that fits in six steps. If the lowest quality is still too large, the image is scaled down in proportion to the overshoot and the search runs again. The whole process takes a second or two for a phone photo.

In depth

Typical targets and what fits

Typical targets and what fits
TargetWhat usually fits as JPGCommon use
50 KBAbout 600 to 800 pixels wide at quality 70 to 80Application forms, profile photos on portals
100 KBAbout 1000 pixels wide at quality 75 to 85ID photos, forum avatars, forms
200 KBAbout 1200 to 1500 pixels wideWebsite images, job boards
500 KBAbout 2000 pixels wideBlogs, listings, presentations
1 MBAbout 2500 to 3000 pixels wideHigh-quality web images, documents
2 to 5 MBFull-resolution phone photos at quality 85 to 90Printing, archiving, marketplaces

In depth

Compress images for email

Gmail limits a message to 25 MB of attachments, and company servers are often set lower. Set a target of 500 KB to 1 MB per photo to send a dozen in one message without a cloud link. The recipient sees the same picture on their screen; only the invisible detail has gone.

FAQ

Frequently asked questions

Can’t find an answer? The guides cover formats, sizes and privacy in depth.

Read the guides

Are my images uploaded to compress them?

No. Compression runs in your browser; the image never leaves your device. The Network tab in the browser’s developer tools shows no upload while the tool works.

How does the target size mode work?

The tool encodes the image at several quality levels and keeps the highest quality that fits under your target. If even the lowest acceptable quality is too big, it scales the pixel dimensions down and tries again, and tells you the final size in the results row.

Is a KB 1000 or 1024 bytes here?

1000 bytes, and a MB is 1,000,000 bytes. That is the stricter of the two conventions, so a result shown as under 100 KB also passes a form that counts 1024-byte kilobytes.

Why is the result smaller than my target?

The search finds the best quality under the target, and quality steps change file size in jumps. The result is the largest file that stays under the limit at one of those steps.

What if the target cannot be reached?

The tool scales the pixel size down, to as little as a tenth of the original, and reports the smallest result it achieved. Extremely small targets on large images may need the full editor to crop first.

Can I keep PNG and hit a target?

Yes, but PNG is lossless, so only the pixel size can shrink. The row shows the final dimensions.

Does the pixel size change?

Only when quality alone cannot meet the target. The results row says "Scaled to" with the new size when that happens.

Sources

Sources and further reading

Links checked 13 November 2026. Outside pages change, so check the date on them.

Related tools

More free tools

Done here? Make it look great.

Adjust, retouch and add effects in the full editor. Still 100% on your device.

Start editing