Format Compression

Compress PNG to 20 KB

Compress a PNG image to 20 KB online with a private browser-based compressor.

≤ 20 KB targetPNG output

Compress PNG to 20 KB

100% private
KB

Upload an image to start. Processing happens in your browser.

Quick answer

To bring a PNG under this limit, start from about 400–600 px on the longest edge. PNG export is lossless here, so switch the output to JPG or WebP if the file stays above the limit. 20 KB is 20,000 bytes. The image is processed in your browser and never uploaded.

How it works

PNG files can balloon in size because PNG is lossless and stores every pixel exactly, which is a problem when a form caps uploads at 20 KB. This page is preset to take a PNG and bring it under 20 KB, converting to a more compact format when that produces a smaller file, all inside your browser.

  1. Upload your PNG image.
  2. Keep the output target at 20 KB.
  3. Process the image and review the estimated file size.
  4. Download the compressed file.

Tips for the best result

  • PNG rarely hits a tight 20 KB target on its own — for photographs, exporting as JPG or WebP will get you there with far less quality loss.
  • Screenshots and flat graphics with sharp edges stay cleaner as PNG; photos do better as JPG or WebP.
  • For a target as small as 20 KB, shrink the pixel dimensions first so the compressor is not forced into heavy quality reduction.

Format choice

PNG next to the other export formats

When a PNG will not get small enough, the alternative is a different format. This is what each export option keeps and gives up.

FormatCompressionTransparencyBest suited toRole here
PNGLosslessYesGraphics, screenshots, text, and transparencyThe format this page is about
JPGLossyNoPhotographs and strict upload limitsAlternative with different transparency support
WebPLossy or losslessYesSmall modern-web imagesAlternative with the same transparency support

Working backwards

Largest image 20 KB can hold at a given data budget

Fix how many bits each pixel may use and the 20 KB ceiling decides how many pixels you can afford. A lower budget per pixel means heavier compression; a higher one means a smaller image.

Bits per pixelPixels availableAs a squareAs 4:3As 16:9
0.5320,000565 × 565653 × 489754 × 424
1160,000400 × 400461 × 346533 × 300
280,000282 × 282326 × 244377 × 212
440,000200 × 200230 × 173266 × 150
820,000141 × 141163 × 122188 × 106

Pixels available is the limit in bits divided by the budget. Dimensions are rounded down to whole pixels.

Why this workflow works

Practical benefits

No signup, watermark, or server upload is required.

The relevant dimensions or file-size target are prefilled.

JPG, PNG, and WebP output options cover common workflows.

Common mistakes to avoid

  • Do not edit the only copy of your image. Keep the original before using this page.
  • Do not judge the result by file size alone. Open the downloaded image and check important details.
  • Do not force 20 KB using compression only if the image becomes blurry. Reduce dimensions first when the source is very large.

Example workflows

  • Use this target-size workflow for application portals, support tickets, CMS uploads, or email attachments with a strict file-size cap.
  • If the first result is still too large, reduce the width and height before lowering quality further.
  • If the destination accepts WebP, test it against JPG because it may create a smaller photo file.

Preset reference

Compress PNG to 20 KB: numbers and tradeoffs

File size depends on dimensions, detail, noise, and format. These target-specific values give you a reliable starting point without pretending every image compresses the same way.

Target ceiling
20 KB
20,000 bytes using the decimal units common on upload portals.
Megabyte equivalent
0.02 MB
19.5 KiB when measured in binary units.
Suggested longest edge
400–600 px
A practical starting range for photographs, not a guaranteed limit; detail and noise affect compression.
Best first format
PNG
Graphics, screenshots, text, and transparency

How to use this preset well

  1. Treat 20 KB as a ceiling, not a number the file must equal exactly.
  2. Start with JPG for a photo; keep PNG only when transparency or sharp graphic edges matter.
  3. If fine detail becomes soft, restore quality and reduce pixel dimensions instead.
  4. Open the downloaded file and confirm both its appearance and file properties before submitting it.

Common questions

Frequently asked questions

How do I compress a PNG to 20 KB without losing quality?

For a photo, the most reliable way to reach 20 KB is to let the tool output JPG or WebP instead of PNG. If you must keep PNG (for transparency or sharp text), reduce the dimensions first.

Why is my PNG file so large to begin with?

PNG is lossless, so it keeps every pixel intact and produces big files for photographs. That is great for graphics and screenshots but inefficient for photos.

Is the compression done privately?

Yes. Your image is processed locally in the browser and is never uploaded to a server.