Upload Portal Says 'File Must Be Under 200 KB' — Compress to an Exact Target Size

The rejection is blunt: “File must be under 200 KB.” The photo is otherwise ready. Its subject is sharp, its dimensions are more than large enough, and the form gives no credit for either. It checks the file’s bytes, finds 4.4 MB instead of a file at the 200 KB limit, and stops the upload.
That message changes the job. This is not “make the photo somewhat smaller.” It is “produce a file that lands at a specified size while preserving the dimensions the form also requires.” A general-purpose compressor may get closer, but closer can still be a rejection.
A quality percentage is not a file size
A JPEG quality slider does not promise a number of bytes. Quality 70 on a smooth portrait, a detailed landscape, and a noisy night photo can produce three very different file sizes. Lowering the setting to 60 may overshoot the limit for one image and miss it for another. The slider controls how aggressively the encoder discards information; the resulting byte count depends on the pixels being encoded.
That is why the familiar sequence — export at 80, check the size, export at 65, check again, upload, discover another condition — is so unreliable. You are searching for a byte target with a control that was never labelled in bytes.
Resizing first has the opposite problem. Reducing the dimensions will almost certainly reduce the file size, but a portal may check both conditions separately: below the byte limit and at least a stated width or longest side. A tiny file can still be rejected because it has too few pixels. File size and pixel dimensions are different measurements, and passing one does not repair the other.
Work from the portal’s two numbers
Start by writing down both requirements, not just the one in the rejection message. In the test below, the portal limit was 200 KB and the photo had to be at least 600 px wide. I used a minimum longest side of 1,000 px to leave room above that requirement.
With an ordinary editor, the manual method is to work on a copy, set the longest side no lower than the required minimum, export, inspect the actual saved file, and then adjust quality in small steps. Check the file’s bytes and dimensions after every export; an export preview or a rounded size shown by an app is not the submitted file. If quality reaches the lowest level you are willing to accept and the file is still too large, the next variable is dimensions — but only down to the portal’s minimum.
A target-size compressor turns that search into an input. The Loopyti tool used for the measurements below is one way to run it: enter the byte target, set a minimum size only when the receiving site requires one, and let the tool search for a result. It is not the only way to solve the problem, but it replaces repeated manual exports with a stated target.
Try the toolCompress Photos to a Target SizeChoose how many KB the photo should be shrunk to. The tool starts from the original size, reduces it only as needed, never lowers quality below 60%, and reports when the target cannot be met. HEIC photos can be converted to JPG.loopyti.comThe test photo and the 200 KB attempt
I built the test photo for this on purpose: a park scene with a wooden sign reading “RIVERSIDE PARK”, “Trailhead • Open dawn to dusk”, “Please keep dogs on a leash”, and “No fires beyond this point”. It is a built test image, not a real camera photo — but its size is real: sample-original-photo.jpg measures 4,603,668 bytes (4.39 MB) at 4032 × 3024 px, about 23 times the test portal’s 200 KB limit. Tested 2026-11-12, and re-tested the same day after the tool was fixed.

The target field defaults to 200 KB, with preset buttons for 100 KB, 200 KB, 500 KB and 1 MB. The minimum-size control is inside step ② under “Only if the site requires a minimum size (px)” and defaults to 800 px; it can be left closed when the receiving site has no minimum. For this landscape photo, the longest side is the width, so I set that field to 1,000 px.

One submitted run produced the result. The tool reported: “Original: 4.4MB → Compressed: 200KB (96% Reduced) · Photo dimensions: 2,432 × 1,824 · Quality: 60%”. I checked the downloaded file rather than relying on that line: it measures 204,748 bytes (200.0 KiB, about 200 KB) and 2432 × 1824 px.
That is the exact-target difference. The result did not merely become “much smaller”; it landed on the requested 200 KB mark. It did so partly by reducing the dimensions as well as compressing: 4032 px became 2432 px, about 60% of the original width, while quality stopped at 60%. The 1,000 px minimum was comfortably preserved, but the output was not a full-resolution copy. If a portal requires the original dimensions rather than only a minimum, that distinction matters.

At a 100% crop of the downloaded file, all four lines on the sign are still readable. “RIVERSIDE PARK” is crisp; the three smaller lines are readable but slightly softer. There is no visible colour banding in the sky at this setting. For a portal upload, that is a pass.
When 100 KB and 3,000 pixels cannot both be true
The second run paired a 100 KB target with a 3,000 px minimum longest side. That combination asks for a very small file while requiring a large number of pixels to remain. This time the tool refused to pretend the target had been met.
A dialog titled “Some photos could not meet the target size” said: “Some photos could not be reduced to the target. Increase the target size or lower the minimum dimensions and try again.” After dismissing it, the result read “Compression results: 1 photo · Within target size: 0 photos · Target not met: 1 photo”, with the notice: “Target not met: even at the lowest quality (60%) and the minimum dimensions (3,000 × 2,250), this photo is 274KB, above the 100KB target. Quality is not reduced further.”
The best-effort file measures 280,834 bytes (274.2 KiB, about 274 KB) at 3000 × 2250 px. Its summary was “Original: 4.4MB → Compressed: 274KB (94% Reduced) · Photo dimensions: 3,000 × 2,250 · Quality: 60%”. The tool still offered “Save this photo”, but saving it would not make it a 100 KB file.


The same sign region at 100% zoom in all three files shows why the two successful-looking numbers need context. The 200 KB result is physically smaller on screen because the file itself came back at 2432 × 1824 px, not 4032 × 3024. The bottom panel is the 100 KB target’s best-effort file at 60% quality — 274 KB, so the target was not met — and its sign stays readable with no banding in the sky.
Other limits in the measured version
At the 60% floor, detail held up in this test: the sign stayed readable at 100% zoom and the sky showed no banding rings. That is a result for this photo, not a promise for every photo. Still zoom in on smooth gradients and small text before submitting.
Location and device metadata is stripped from the result. That protects privacy, but the compressed copy will not carry the original’s camera or location information. HEIC photos convert to JPG, first frame only, so a Live Photo or burst does not come through as a sequence. Transparent areas become white, and small photos are not enlarged with new detail.
Processing happens in the browser; the photo is never uploaded to a server. The limits are up to 10 photos at once, 20 MB each, 60 MB total, up to 20 megapixels and 16,384 px on the longest side. Before compressing, the tool shows no original size or dimensions — only the file name — and file sizes on screen are rounded KB values, which is another reason to inspect the downloaded file.
If the numbers cannot be reconciled
A target is impossible when the smallest acceptable file at the required dimensions is still larger than the byte limit. No slider setting can remove that conflict. In the test, the floor was clear: at 3000 × 2250 px and 60% quality, the photo was 274 KB, not 100 KB.
At that point, one of the requirements has to move. Raise the byte target if you control it, or lower the minimum dimensions if the portal allows a smaller image. If both numbers are fixed by the portal, this particular photo cannot satisfy both at an acceptable quality floor; use a different, less detailed source image, ask whether the portal accepts another route, or keep the best-effort file only for a purpose where its actual 274 KB size is acceptable. Do not rename the best-effort result a success and upload it anyway — the form will still read its bytes.