Compress an image to an exact target file size
Type the byte ceiling you need and this page searches quality and pixel width together until the encoded file fits. Runs in your browser, uploads nothing.
Enter the ceiling you have to meet — a form limit, an upload cap — not a quality setting.
Runs in this tab. Nothing is uploaded.
Result
Free tier: up to 25 MB per file, 3 files per run, 5 runs per day. A buyout for this tool is $35 once. Compare.
Free tier in use. The buyout for this tool is one payment, not a subscription.
What this page does differently
Most compressors give you a quality slider and leave you guessing. This page works the other way: you enter a byte ceiling — the 2 MB limit from a form, the 5 MB cap on an upload endpoint — and it binary searches JPEG quality against pixel width until the encoded result lands under it. Decoding and re-encoding both happen in this tab, so the photo never leaves your device.
searches encoder quality and pixel width together until the encoded bytes fit a ceiling the user typed, instead of exposing a quality slider
Sample input and output
| Run | Case | Size | Notes |
|---|---|---|---|
| Input | 8.4 MB phone photo | 8.0 MB | 4032 by 3024 JPEG taken on a phone, the usual shape of an upload that gets rejected |
| Output | 1.9 MB result under a 2 MB ceiling | 1.8 MB | same framing, resampled to about 2560 px wide, quality settled near 0.72 |
These are the demo numbers this page was built against, not a guarantee for every file.
What you can check yourself
| The claim | What the test showed |
|---|---|
| A 200 KB ceiling lands within 1% of it, not far below. | A 7.6 MB noise PNG comes back at 204,647 bytes for a 200 KB target, and 506,107 bytes for a 500 KB target, measured by the deep test. |
| The picture keeps its aspect ratio while shrinking. | A 4:3 photo compressed to 200 KB is emitted at 1085 by 814 pixels, so the ratio survives the rescale instead of being squeezed. |
Questions
Does the photo get uploaded anywhere?
No. The file is decoded with the browser image decoder and re-encoded on a canvas in this tab. There is no upload endpoint on this site at all.
Why is the result size not exactly the number I typed?
Encoding is not perfectly predictable, so the page stops at the highest quality that still lands under your ceiling. Expect a few percent below it, never above.
What happens when the ceiling is impossible?
If even the lowest quality at the smallest allowed width cannot fit, the page tells you the smallest size it could reach instead of silently returning a file that fails your limit.
Is the original file modified?
No. The page only reads it and hands back a new file. Your original stays exactly as it was on disk, so you can retry with a different ceiling.
What are the free limits?
Free runs take files up to 25 MB, three at a time, five runs a day. A buyout removes the daily count and raises the batch size; a site-wide yearly pass raises it further.
Price
This tool is $35 once, for as long as the tool exists. One payment, not a subscription. The licence is stored in this browser; the transaction id restores it elsewhere.
Free: 5 runs a day, 25 MB a file, a batch of 3. Buyout: a batch of 50, 200 MB a file.