Guide · Compress

Hit a 100 KB, 200 KB, or 500 KB attachment cap

Some inboxes and forms do not use the 10–25 MB message limit. They reject a single image over a few hundred kilobytes. Aim at that number locally.

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

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)

  1. If the file is HEIC, open HEIC to JPG first (guide). Compress to KB does not decode HEIC.
  2. 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.
  3. 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.
  4. 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.jpg on disk. The last probe can sit a little under the number and, less often, a little over.
  5. 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

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

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

Related

Compress to KB · Compress PNG for email · HEIC to JPG · Verify local

Related guides