Compress to KB accepts PNG, JPEG, and WebP, from 10 KB through 5000 KB. 1 MB is 1000 in that field. 2 MB is 2000. It is best-effort: a file that is already under the cap can still be re-encoded, so compare the download size before you replace a sharp original.
Do not use the 100 KB habit here. That budget is for tight attachments and is written up in 100 / 200 / 500 KB caps. HEIC from a phone must become a JPG first. This page does not decode HEIC.
Steps
- If the camera file is still HEIC, open HEIC to JPG and download the JPG first. Compress to KB does not decode HEIC.
- Open Compress to KB. Replace the default 100 with 1000 for about 1 MB, or 2000 for about 2 MB. Do not type 1.
- Press Compress. Ten probes search JPEG quality from 0.10 to 0.95. Width and height stay the same. The photo is not uploaded.
- Read the status line, then the size of
compressed.jpgon disk. The last probe can sit a little under 1000 and, less often, a little over. - If text or a face went soft, raise the target. The field stops at 5000. If quality 0.10 is still over the cap, crop the pixel grid in another editor and run again. If the original was already under the cap, keep it.
How it works
A portal that says “under 1 MB” is a loose cap compared with a 200 KB attachment line. Type 1000 in Compress to KB, not 1, and not 100. The field is kilobytes from 10 to 5000. Two megabytes is 2000. There is no 10000 setting. The comparison is blob.size / 1024 against the integer you typed, so 1000 means about a thousand of those KB, which is the figure most portals call 1 MB. If a form counts 1024-byte kibibytes and rejects a 1000 KB file, type 900 and read the size on disk.
The page does not resize the photo. It decodes PNG, JPEG, or WebP in the tab and binary-searches JPEG quality ten times, between 0.10 and 0.95. Each probe is a full-size canvas encode via canvas.toBlob. The download is the last probe, named compressed.jpg, from a blob: URL. It can land a little under 1000 and, less often, a little over. Read the status line, then the size on disk. HEIC never enters this search. HEIC to JPG first, then type 1000.
A concrete pass: an 8 MB iPhone JPEG of a face usually drops under 1000 KB because quality can fall and the picture is still usable. A 4000-pixel-wide PNG of a spreadsheet often does not: quality 0.10 still encodes every cell. This page will not scale that grid down. Crop or export a smaller pixel size locally, then type 1000 again. A file that is already 800 KB does not need this pass — re-encoding it to “hit 1000” only adds artifacts. Skip the tool when the original already fits. Tighter caps, where 1000 is the wrong habit, are in 100, 200, or 500 KB. A government form that names its own number is JPG under a form cap.
What the status line says
Type 1000, then read the line on Compress to KB before you trust the portal. The figure is blob.size / 1024, one decimal. The download name is compressed.jpg.
- Wrong number still in the box. The field opens at 100. If you press Compress without replacing it, the working line is “Compressing toward ~100 KB…”, not a 1 MB search. Replace 100 with 1000 first. Do not type 1.
- The search you wanted. “Compressing toward ~1000 KB…” for about 1 MB, or “Compressing toward ~2000 KB…” for about 2 MB. There is no model download during that line.
- Finished. “Done: {sz} KB (target 1000 KB). Best-effort JPEG quality search.” {sz} is the last of ten probes. Under 1000 is what a “max 1 MB” form wants. A little over 1000 can still happen. Open the file and read the size on disk. If {sz} is far over 1000, quality 0.10 could not beat the pixel grid. Crop, then type 1000 again.
- The original was already small. An 800 KB JPEG still produces a “Done:” line, because the page re-encodes. If {sz} is not better than the original, keep the original.
- HEIC, or a file this page cannot open. “Browser could not decode this image.” Convert the phone HEIC on HEIC to JPG first. This search does not load libheif.
- No file was written. “JPEG encode failed”. There is no
compressed.jpgto upload.
Limits
- The field stops at 5000. Two megabytes is 2000. There is no 10000 setting.
- The ten probes are best-effort. The download can sit a little over 1000 KB. Check the size on disk before the portal sees it.
- Dimensions do not change. A screenshot that is still over 1000 KB at quality 0.10 has to be cropped first.
- Alpha is discarded. A transparent PNG becomes an opaque JPEG. That is not a second background removal.
- Re-encoding a file that is already under 1000 KB still re-encodes. Keep the sharp original until you have compared them.
- No account, and no ormbg download. The photo is not posted. The page and cookieless analytics still load, and neither of those is the image.
FAQ
Is 1 MB the same as 1000 KB or 1024 KB?
Type 1000. Portals that say 1 MB almost always accept a file around that size. If the form counts kibibytes and rejects you, try 900.
Does this upload the photo?
No. JPEG quality search runs in the tab. The download is a local blob URL. The page does not fetch a background-removal model for this step.
Will 1000 KB keep a transparent background?
No. The result is a JPEG. Transparency is gone.
Why is the file still over 1 MB?
The search never changes width or height. If the lowest quality is still larger than 1000 KB, the status shows that real size. Shrink the pixel dimensions locally, then run it again.
Should I type 100 because that is a round number?
No. 100 KB is a tight attachment budget, not a 1 MB portal. Type 1000 for about 1 MB, or 2000 for about 2 MB. A face that looked fine at 1000 will smear at 100.
The photo is already 800 KB. Should I still compress it to 1000?
No. Skip the tool when the original already fits. Re-encoding an 800 KB JPEG still writes a new file and can add artifacts for no gain.
Sources
- JPEG on jpeg.org — the still-image format the 1000 KB file is encoded as.
- ITU-T T.81 — the JPEG specification. Quality in the browser is a quantization choice on top of that codec, which is why two files at “1000 KB” can look different.
- HTMLCanvasElement.toBlob() on MDN — the encode each of the ten probes calls, with a quality argument between 0 and 1.
- Blob on MDN —
blob.sizeis the byte count the status compares with 1000, divided by 1024.
Related
Compress to KB · 100 / 200 / 500 KB · All guides