Compress Images to a Target File Size Online
This free online target size image compressor lets you batch compress JPG, PNG, and WebP images to a specific KB or MB size. Upload one or more images, set a target such as 200KB, 500KB, or 1MB, then export the processed results directly in your browser.
Everything runs locally in the browser without uploading files to a server. It works well for upload limits, website image requirements, email attachments, media asset delivery, and day-to-day image preparation.
What this tool is useful for
- compress images to 200KB, 500KB, or 1MB
- batch compress images to a target file size
- reduce JPG, PNG, and WebP files for upload limits
- prepare form photos, screenshots, product images, and social media assets
- make image files small enough for email or content management systems
Supported features
- batch upload JPG, PNG, and WebP images
- target size input in KB or MB
- output as auto WebP, original format, JPG, PNG, or WebP
- automatic quality adjustment
- optional downscaling when quality changes alone are not enough
- single download and ZIP export
- keep the original image when it is already at or below the target size
How to compress images to a specific size
- Upload one or more images
- Enter the target size, such as
200 - Choose
KBorMB - Choose the output format
- Start processing
- Download one result or export all results as a ZIP
What the target size means
The target size is the output file size goal, not the image width or height.
Examples:
200 KBmeans you want the final image to be around 200KB1 MBmeans you want the final image to stay around 1MB
The tool tries to get each file at or below the target. Depending on the source image and format, some results may land very close to the target instead of matching it exactly.
Why the tool may reduce dimensions
Many users want to lower file size without changing dimensions, but that is not always enough to hit a strict size limit.
This tool uses a practical two-step approach:
- lower quality first
- reduce dimensions only when needed
That matches real upload workflows better, because the actual goal is usually to meet a file size limit, not necessarily to preserve the original pixel size at all costs.
Which output format should you choose
Auto recommend WebP: usually the easiest way to hit the target sizeKeep original format: good when you do not want to change file typeJPG: best compatibility, good for photosPNG: useful for transparency and sharp graphics, but harder to shrink aggressivelyWebP: usually smaller and better for most target-size compression tasks
If your main goal is to reliably compress images to a target KB or MB size, Auto recommend WebP or WebP is usually the most effective choice.
Common use cases
- compress a photo below 200KB for a form
- keep uploaded images under 1MB
- shrink large email attachment images
- batch optimize product photos for websites
- prepare blog images and social media assets
- reduce screenshots or posters before upload
Usage tips
- JPG and WebP are usually better for photos
- PNG is better for transparent graphics, but may not compress as aggressively
- for stricter upload limits, try auto or WebP first
- avoid setting the target too low, because extreme compression will reduce visual quality
Privacy
Image reading, compression, preview, and export all happen locally in your browser. Nothing is uploaded to a server, which makes this tool a better fit for sensitive screenshots, internal assets, and private images.