← back to tools

Resize to File Size

Compress any image to an exact KB or MB limit β€” instantly, in your browser.

Processed in your browser β€” image never leaves your device
πŸ“¦

Drop your image here

or browse to upload

JPG PNG WebP GIF BMP
Preview
filename.jpg
0 Γ— 0 px
β€” Original
β€” Dimensions
Quick Targets β€” common upload limits
Custom Target Size
Compression Strategy
Reduces JPEG/WebP quality until target is hit. Keeps original pixel dimensions.
Output Format
Current Image vs Target
0 target
Searching optimal quality…
Result
βœ…
Target achieved!
β€”
Final Size
β€”
Reduced By
β€”
Dimensions
β€”
Quality Used
β€”
Format
Compressed preview

How it works

How does it hit the exact size?

It uses a binary search algorithm β€” tries quality values between 1–100 repeatedly until the output lands at or just under your target. Usually takes 7–10 iterations, all in your browser.

Is my image uploaded to a server?

No β€” never. The entire process happens inside your browser tab using the Canvas API. Nothing is sent anywhere. Your file stays on your device.

What if the target is too small to reach?

If even quality 1% can't hit your target, we tell you the smallest we can get and still give you a downloadable file. PNG files have a compression floor and may not reach very small sizes.

Quality Only vs Quality + Resize?

Quality Only keeps your original pixel dimensions and just reduces JPEG compression. Quality + Resize also shrinks the pixel dimensions if quality alone isn't enough β€” useful for very small targets.

Why use WebP for output?

WebP is typically 25–35% smaller than JPG at the same quality. For the same target file size, you'll get a noticeably sharper-looking image in WebP format.

What are the quick targets for?

Common real-world limits: job application portals (200 KB), WhatsApp profile pics (5 MB), email attachments (1 MB), government form uploads (500 KB), and web thumbnails (100 KB). One click sets the target.