Compress an image to a target KB size

Compress JPG, PNG, and WebP images to exact target limits: 20KB, 50KB, 100KB, 200KB, or a custom file size. Fast, private, and 100% processed in your browser.

20, 50, 100, 200, 500 KB PresetsCustom KB LimitsAt or Under Target ModeJPG, WebP & PNGNo Silent DownscalingClient-Side Privacy

Select or Drop an Image to Compress to KB

Compress JPG, PNG, and WebP images to exact target limits: 20KB, 50KB, 100KB, 200KB, 500KB, or a custom file size.

Exact Target KB ModeInstant Quality SearchNo Silent Downscaling100% Client-Side Privacy

Choose a target file size

Many websites, online job applications, government portals, and email services strictly enforce maximum file size limits. Instead of guessing quality sliders, our tool automatically calculates the exact quality percentage needed:

Under 20 KB / 50 KB

Common limits for signature photos, identification icons, and thumbnail badges on government forms and older application portals.

Under 100 KB / 200 KB

Standard requirement for resume attachments, digital document uploads, and blog article inline images.

Under 500 KB / Custom

Recommended target for email attachments and hero banners to ensure instant delivery and fast loading speeds.

What happens when the target is too small

Every image has a physical lower limit. For example, a 4000×3000 high-resolution photo contains 12 million pixels. Even at the lowest quality setting (5%), the file size might remain around 45 KB.

Unlike other converters that silently downscale your image to a tiny blur without telling you, our tool never alters your pixel dimensions without your explicit consent. If your chosen target cannot be reached at 100% resolution, you can choose to:

  • Scale Dimensions to 75% or 50%: Downscale the pixel resolution proportionally to easily hit smaller targets like 20 KB.
  • Switch to WebP: Take advantage of WebP's superior compression algorithm to fit more detail into fewer kilobytes.
  • Increase Target Limit: Adjust the threshold to match the natural complexity of the photo.

JPG, PNG, and WebP behave differently

Choosing the right file format is critical when aiming for a specific target size:

JPEG / JPG

Best for photographs and continuous-tone images. Allows fine-grained quality adjustments between 5% and 98% to hit exact KB targets.

WebP

Modern replacement for both JPEG and PNG. Supports full alpha transparency and delivers approximately 30% smaller sizes than JPEG at the same visual quality.

PNG

Lossless format with zero compression artifacts. Because it does not discard visual data, it cannot guarantee arbitrary small target sizes without reducing pixel dimensions.

Compress for email, forms, and websites

Whether preparing attachments for Outlook and Gmail, uploading profile photos to application forms, or optimizing hero graphics for your website, compressing to a known KB limit ensures smooth, error-free transfers.

Need to resize multiple images at once? Use our Bulk Image Resizer to process up to 50 photos in a single batch.

Frequently Asked Questions About Compressing Images to KB

Clear answers about hitting target file sizes, formats, and quality

How do I compress an image to 100KB?

Upload your image, click the "100K" preset button, and the tool will automatically calculate the highest possible visual quality that stays at or under 100 KB. Review the live preview and click Download.

Can I enter a custom KB size?

Yes. In the "Custom Target Size" input, enter any desired size in kilobytes (such as 30 KB, 75 KB, 250 KB, or 1500 KB). The binary search engine will find the exact quality level to meet your threshold.

Why can some PNG files not reach the target?

PNG uses lossless Deflate compression, which preserves every pixel exactly but cannot be arbitrarily compressed like JPEG. If your target KB is smaller than what lossless PNG allows, switch to WebP (which supports transparency with much higher compression) or scale down the resolution.

Will the tool change image dimensions?

No, the tool keeps 100% of your original pixel dimensions by default. If your target file size is physically impossible at full resolution (e.g. 20 KB on a 24-megapixel photo), the tool will alert you and let you choose whether to scale dimensions to 75% or 50%.

Which output format produces the smallest file?

WebP generally produces 25% to 35% smaller file sizes than JPEG at equivalent visual quality while supporting transparency. For traditional photos, JPEG is widely compatible, while WebP is best for modern web use.

Are files uploaded to any server?

No. All compression, quality optimization, and file generation happen 100% client-side inside your browser. Your images remain completely private on your device.
Compress Image to KB | 20, 50, 100, 200 KB or Custom Size