Use this when a form or printer wants a JPEG and you care about the format, not a 100 KB cap. Type a high target the tool allows (10 to 5000). 2000 is a reasonable start for a photo-sized PNG. A screenshot full of text should stay higher too: a tiny JPEG turns glyphs to mush. Size-first email advice is compress a PNG for email.
A transparent logo should not come through this page if you still need the transparency. JPEG cannot keep it. Keep the PNG, or cut the subject out first and download the file whose name ends in -nobg.png.
Steps
- Open Compress to KB and choose the PNG. No ormbg download is involved. HEIC will not decode here.
- Replace the default 100 with a high target. 2000 is inside the 10–5000 range and is a quality-minded start for a photo-sized PNG. Type 100 only when the form named 100 KB.
- Press Compress. The page keeps the PNG’s pixel width and height and writes
compressed.jpg. Read the status, then zoom type and edges. Raise the target if they break. - Do not run this on a cutout you still need as a transparent PNG. JPEG has no alpha, and this tool does not paint a white plate first. That cutout is remove the background from a logo.
How it works
Compress to KB is the encoder. There is no second “PNG to JPG” route on this site. The file is decoded in the tab: a blob: URL is handed to an Image, then drawn at naturalWidth by naturalHeight onto a canvas. The pixel dimensions do not change. Ten times, the page calls canvas.toBlob with type image/jpeg, binary-searching quality from 0.10 to 0.95. Each probe keeps the blob, and the next probe goes lower when blob.size / 1024 is still above the number you typed. The tenth blob is the download, saved as compressed.jpg from a blob: URL.
JPEG has no alpha channel. The tool does not paint a white, cream, or grey plate before that encode. If the form wants a flat background, composite it in an editor so the plate is already in the pixels, then run the search. The checkerboard on a cutout preview is transparency in the PNG. That channel is absent from the JPEG. HEIC never enters this function. Convert on HEIC to JPG first. No ormbg weights are fetched for a compress run.
Limits
- The target field is marked 10 through 5000. 2000 is a quality-minded start for a photo-sized PNG. 100 is the email habit, written up in compress a PNG for email.
- The search can finish a little under the target and, less often, a little over. Read the status line, then the size on disk. Quality 0.10 still has every pixel, so a huge screenshot can miss a small target.
- Width and height stay at the source size. This page will not scale the PNG down to hit 2000 KB.
- Alpha is discarded. A transparent logo or cutout should stay a PNG when you still need the holes. Remove the background from a logo is the cutout. This page is the opposite step.
- A file that is already a small JPEG is decoded and encoded again. Keep the original until you have compared edges.
- No account, and no model download. The page shell and the cookieless analytics beacon still load. Neither of those is the PNG. Verify local.
What “without uploading” means on this site
LocalPix convert and compress paths write a blob: download in the tab. They do not POST the PNG to a LocalPix upload API. Page shell, script, and cookieless analytics requests still appear in DevTools — those are not your image. Confirm with Verify local. If the file is already a PNG screenshot that only needs a size budget, prefer Compress to KB and press Compress; that tool re-encodes to JPEG during the search.
FAQ
Does the PNG get uploaded?
No. The quality search runs in the tab. The download is a local blob URL. Verify local.
Why did the transparent areas change?
JPEG has no alpha channel, and this tool does not paint a plate first. Composite the colour the form names, then compress. The checkerboard you see on a cutout preview is transparency, and that channel is not in the JPG.
Can I type 10000 KB?
No. The field accepts 10 through 5000. For a larger original, 5000 is the highest target.
Does the search shrink the pixel dimensions?
No. The canvas uses the PNG’s natural width and height. Ten JPEG probes change quality only. If the file is still too big at the low end of the search, scale it in an editor and run the page again.
My PNG is already 400 KB. Will 2000 KB leave it untouched?
No. The tool always re-encodes. A target above the current size still produces a new JPEG, and the status line shows that size. Keep the PNG if you only needed a format the recipient already accepts and the PNG is small enough.
The file from my phone is HEIC. Can I drop it here?
No. Compress decodes PNG, JPEG, and WebP. Convert the HEIC to JPG first, then come back if that JPG needs a different size. The HEIC decoder is a separate download and does not run on this step.
Sources
- RFC 2083, PNG — the still format you are leaving. The alpha channel in that spec is what the JPEG file does not keep.
- JPEG on jpeg.org — the format of
compressed.jpg. Quality in the browser is a quantization choice on top of that codec. - ITU-T T.81 — the JPEG specification the ten probes encode into.
- HTMLCanvasElement.toBlob() on MDN — the call each probe makes, with
image/jpegand a quality argument between 0 and 1.
Related
Compress to KB · PNG for an email cap · All guides