A 20KB PNG is an extremely tight lossless target — enough for a small icon, favicon, or simple graphic, typically around 110–130 pixels on the long edge for a photograph. This tool hits it exactly: type 20, and you get a lossless PNG at or under 20KB, with no upload and no guesswork.
At this size, PNG suits small synthetic graphics far better than photographs — flat-color icons and badges compress efficiently and stay crisp, where a photo simply runs out of pixels. If your image is a photo and the destination accepts JPEG, a 20KB JPEG keeps more usable detail.
Who needs a 20KB PNG
- Strict systems with a 20KB PNG cap. Niche portals and embedded systems that accept only PNG and impose a very hard size limit.
- Tiny lossless icons and favicons. Small UI assets that must be pixel-perfect and tiny.
- Small graphics and badges. Logos, marks, and flat-color graphics where JPEG would blur edges and PNG stays sharp.
How to compress HEIC to 20KB PNG, step by step
- Open the compressor on this page. The engine loads once, in your browser.
- Drop your HEIC image into the box, or click to select it. A preview appears once it’s decoded.
- Set the target to 20KB. It is preset; type any number for a custom target.
- Click Compress. The tool reduces dimensions until the lossless PNG fits under 20KB.
- Compare before and after, then download the
.pngresult.
How PNG compression to a target size works
PNG is lossless by design, with no quality dial. To hit a size target, the tool reduces the image’s dimensions rather than its quality. It decodes the HEIC to pixels, estimates the target size from the dimensions, resizes with a Lanczos filter — the gold standard for downscaling — and encodes losslessly, looping until the PNG lands at or under 20KB. The result is a lossless PNG: exact pixels, no artifacts, at the very small resolution that fits.
What to expect from a 20KB PNG
- Very small resolution. A photo at 20KB PNG is typically ~110–130px on the long edge. Lossless at a tiny size means very few pixels.
- Graphics and icons work best. Flat-color synthetic content compresses efficiently and stays crisp; photographs do not have enough pixels to look good.
- No quality loss. Whatever the resolution, the encode is lossless.
For a photograph at 20KB, a 20KB JPEG is usually the more usable result.
Privacy: nothing leaves your device
Your image never leaves your device. Decoding and compression happen locally in your browser via a WebAssembly module — no upload, no server, no storage, no analytics on your image. Close the tab and the data is gone.
Related target sizes
- 30KB PNG — slightly more room.
- 50KB PNG — small icons and graphics with a bit more resolution.
- 20KB JPEG — the better choice for photos if the system accepts JPEG.
Whatever number your system states, type it and the tool lands at or under it — privately, in your browser, with no upload.
Frequently asked questions
Can it compress HEIC to exactly 20KB PNG?
Yes. PNG is lossless with no quality dial, so the tool reduces the image's dimensions with a high-quality Lanczos filter until the lossless PNG fits at or under 20KB. You always get a PNG of 20KB or less, never over, with no quality loss from the encode.
Why does the PNG end up so tiny?
Because PNG is lossless and keeps every pixel, a 20KB cap holds only a very small number of pixels — typically around 110–130 pixels on the long edge for a photograph. At this size PNG is best suited to small icons and graphics rather than photos. If the form accepts JPEG and the image is a photo, a 20KB JPEG keeps more usable resolution.
Is my photo uploaded to a server?
No. Decoding and compression run entirely in your browser via WebAssembly. Your HEIC file never leaves your device, nothing is stored, and there is no analytics on your image. Close the tab and it's gone.
Is the PNG really lossless?
The PNG encode is lossless — it preserves the decoded pixels exactly. Your HEIC was already lossy-compressed at capture, so this tool cannot recover detail the camera discarded; it guarantees no further loss while fitting the 20KB cap.
PNG or JPG for a 20KB image?
For a photograph, JPEG — it keeps more usable resolution at 20KB because it is designed for photos. Choose PNG at 20KB for small icons, favicons, and graphics where losslessness or the PNG format is required and the small size is acceptable.
How is this different from a quality slider?
A slider makes you guess and re-check the size repeatedly. You enter 20KB and the tool hits it directly. PNG has no quality slider anyway — the tool adjusts dimensions to fit, losslessly.
Does it work on Android or only iPhone?
It works in any modern browser (Chrome, Edge, Firefox, Safari) on any device. HEIC is most common on iPhone, but the file can come from anywhere.
Is it free?
Yes — completely free, with no signup, no watermark, and no upload. There is no account and no plan to upgrade.
Does the output keep my photo's metadata?
No. The result is a freshly encoded PNG with none of the original's EXIF data — camera details and any embedded GPS location are stripped.
Can I compress several images at once?
One at a time. This keeps the tool simple, fast, and entirely local. If you have many to prepare, compress each individually.