Mailbox providers often allow a large message. A job form, a school portal, or a ticketing inbox may still say “max 200 KB per image.” LocalPix Compress to KB binary-searches JPEG quality in the tab until it is near the target you type, or until it cannot get closer without giving up. The number it prints is the file you download — confirm that against the form, because MIME overhead can add a little.
PNG screenshots have their own notes: Compress PNG for email size limits. Use that page when you are shrinking UI shots and deciding whether JPEG is acceptable. Use this page when the cap itself is the problem.
Caps people actually type
- 100 KB — tight. Fine for a simple logo-like graphic or a small headshot. A 12-megapixel photo will look soft. Crop to the useful region first.
- 200 KB — a common “one picture in the reply” budget when the text in the image still needs to be readable.
- 500 KB — enough for many application photos and product stills when the portal is stricter than email but not tiny.
These are planning numbers, not a promise from any host. If the form says 150 KB, type 150, not a round number you prefer.
Steps (local, 0-byte upload)
- If the file is HEIC, open HEIC to JPG first (guide). Compress to KB does not decode HEIC.
- Open Compress to KB and drop a PNG, JPEG, or WebP. Compress stays disabled until a file is chosen. The photo is not uploaded. Optional proof: Verify local.
- The Target KB field opens at 100 and accepts 10 to 5000. Replace 100 with the cap the form printed: 100, 200, 500, or 150 if it said 150. Do not type 1 for 1 MB. About 1 MB is 1000.
- Press Compress. Ten probes search JPEG quality from 0.10 to 0.95. Width and height stay the same. Read the status line, then the size of
compressed.jpgon disk. The last probe can sit a little under the number and, less often, a little over. - If text went soft, raise the target and press Compress again. If quality 0.10 is still over the cap, crop in another editor and run again. If the original was already under the cap, keep it. The tool re-encodes even when the original already fits.
When the result is the wrong kind of small
- Text is blurry. Raise the target. A readable 400 KB file beats an illegible 100 KB file that the portal accepts and a human rejects.
- Transparency disappeared. The tool encodes JPEG. Alpha becomes a flat background. For a cutout you must keep, stay on PNG from Remove background.
- Already under the cap. Do not recompress. A second pass only adds artifacts.
- WebP or AVIF the form will not open. Convert to JPG first: WebP and AVIF for inboxes that reject them, then compress if the JPG is still over the cap.
How it works
A named 100, 200, or 500 KB cap is a number on one file, not a 10–25 MB mailbox. Type that number in Compress to KB. The field is kilobytes from 10 to 5000. Type 200 for 200 KB. Type 150 when the form says 150. Do not round down to 100 to “be safe” if the text in the picture still has to be read. About 1 MB is a different habit: type 1000 on compress a photo to about 1 MB.
The page decodes a PNG, JPEG, or WebP in the tab. It does not decode HEIC. It binary-searches JPEG quality ten times, with the probe moving between 0.10 and 0.95. Each step calls canvas.toBlob with type image/jpeg at the photo’s naturalWidth and naturalHeight. Width and height never change. The comparison is blob.size / 1024 against the integer you typed. The download is the last probe, named compressed.jpg, from a blob: URL. No ormbg file is fetched. A 4032×3024 phone JPEG that is 4 MB on disk will usually fit under 200 KB because quality can drop. A 4000-pixel-wide scan of a letter often will not: quality 0.10 still contains every pixel. Crop to the region the form asked for, then type 200 again.
A concrete pass: the job portal says “max 200 KB per image.” Type 200. Read the status line, then the size on disk. If it prints 188 KB, attach that file. If it prints 260 KB at the lowest probe, the grid is too large for that cap — crop, do not type 80. If the form counts MIME wrapping and has already rejected a 198 KB file, type 180 and check the download. Three 200 KB pictures are about 600 KB of images before headers; this page compresses one file and never sees the message.
Limits
- The field accepts 10 through 5000 and opens at 100. There is no setting for a 25 MB mailbox. 100, 200, and 500 are planning numbers you type, not a host’s promise.
- The ten probes are best-effort. The status can show a file over the target when even quality 0.10 is larger. The page will not scale the pixels down.
- Alpha is discarded. A transparent PNG becomes an opaque JPEG. Flatten onto the plate you want before you compress if the holes matter.
- Re-encoding is unconditional. A file that is already under the cap still becomes a new JPEG. Skip the tool when the original already fits.
- HEIC from a phone is a different tool. HEIC to JPG first, then return here if that JPEG is still over the cap.
- The photo is not posted. The page and the cookieless analytics beacon still load. Verify local if you want that list while the search runs.
FAQ
Does my photo leave the device?
No. Quality search runs in the browser. There is no LocalPix upload of the image. Model weights are not part of this tool.
Can I trust the KB figure?
Trust it as the size of the downloaded JPEG. Portals sometimes count the message after encoding. Leave a little headroom under a hard cap.
How is this different from the PNG email guide?
Compress PNG for email is about screenshot PNGs and ordinary mailbox limits. This page is the short path for a named 100 / 200 / 500 KB cap.
I typed 100 and the file is still over 100 KB.
The search never changes width or height. Quality 0.10 still encodes every pixel. Crop to the useful region, then type 100 again. The status line shows the real size of the last probe.
The form says 150 KB. Do I type 100, 150, or 200?
150. The field takes the integer the form printed. Rounding down to 100 only helps if 150 still looks sharp. Rounding up to 200 will miss a 150 KB cap.
The original is an iPhone HEIC. What runs first?
HEIC to JPG. Compress does not load libheif. After you have a JPEG, type the cap only if that JPEG is still over the number you were given.
Sources
- JPEG on jpeg.org — the format
compressed.jpgis encoded as. Two files at the same 200 KB cap can look different because quality is a quantization choice. - ITU-T T.81 — the JPEG specification behind that browser encode.
- HTMLCanvasElement.toBlob() on MDN — the encode each of the ten probes calls, with a quality argument from 0.10 through 0.95 in this tool.
- Blob on MDN —
blob.sizeis the byte count the status compares with the cap, divided by 1024.
Related
Compress to KB · Compress PNG for email · HEIC to JPG · Verify local