HeyDreaming

Free · target ≤ 20 KB in your browser · free account to download

Compress Image to 20 KB

Loading the tool…

Drop up to 20 JPG, PNG or WebP files and reduce each one to 20 KB (20,480 bytes) or less for application forms, ID portals and email signatures. Everything runs in your browser, so your images are not uploaded.

How do I compress an image to 20 KB without losing unnecessary detail?

Drop your JPG, PNG or WebP file into the box above and it is compressed right away. The tool searches for the highest encoding setting that fits under 20 KB (20,480 bytes) at your original pixel dimensions—searching quality between 30% and 95% for JPG and WebP, or 256, 128 and 64 palette colors for PNG. Only if the file still exceeds 20 KB does it shrink the width and height, up to 4 times.

How it works

01

Select up to 20 images

Drag or choose JPG, PNG or WebP files up to 50 MB each. Any file already at or below 20 KB is left untouched.

02

Run the 20 KB target search

Nothing to press: compression starts once the files are in. The tool aims for ≤ 20 KB by lowering quality or palette colors first and scaling pixel dimensions only when needed.

03

Review byte savings and dimensions

Each row lists the before and after file sizes, the percentage saved, and the new width and height if the image had to be resized.

04

Download your files

Sign in with Google or email to a free HeyDreaming account, no credit card needed. Then save a single compressed file, or download the entire batch as one ZIP archive.

Where a 20 KB limit comes up

Some recruitment, licensing and admission forms cap uploaded signatures, thumbprints or small ID photos at 20 KB (20,480 bytes). Small email-signature images and web badges are another place where a few kilobytes matter.

At 20 KB, a pre-cropped headshot, logo or signature scan can often keep its original pixel dimensions in JPG or WebP by stepping down the quality slider alone. A multi-megapixel phone photo, on the other hand, will be scaled down automatically to help it fit the 20,480-byte ceiling.

Quality search first, dimension scaling second

When you add a file, each JPG or WebP goes through a binary search across quality levels from 30% to 95% at its original width and height. Each PNG steps through indexed palettes of 256, 128 and 64 colors. For PNG, the first palette that lands at or below 20,480 bytes wins; for JPG and WebP, the highest quality that fits wins.

When even 30% quality or 64 PNG colors is larger than 20 KB, the tool scales the canvas dimensions down based on the ratio of target bytes to current bytes and repeats the search, up to 4 scaling rounds. Re-encoded files are written in 8-bit sRGB without camera metadata.

Formats, browser support and honest limits

You can process up to 20 files at once, each up to 50 MB. Files that start at 20 KB or less are returned unchanged. If a dense PNG still exceeds 20 KB after 4 rounds of scaling, the tool returns the smallest version it produced (or the original if smaller) and flags that on the result row.

Safari cannot write WebP from a canvas, so WebP files in Safari fall back to PNG or stay untouched if PNG is larger. Your photos stay on your device; the page records usage events in Google Analytics, never your files.

What this tool does not do

It does not crop to passport dimensions, convert between formats (except Safari's WebP-to-PNG fallback), keep EXIF or GPS metadata on re-encoded images, or pad files to hit 20 KB on the nose.

See all free tools

Keep exploring

Related free tools

Questions

Compress Image to 20KB: FAQ

Are my ID photos or signatures uploaded to a server?

No. All decoding, quality searching and resizing happen inside your browser. The page logs usage events in Google Analytics, such as how many files ran, without uploading any image.

Does this tool resize my image to reach 20 KB?

Only when compression alone cannot reach 20 KB. It tries quality levels down to 30% (for JPG and WebP) or palettes down to 64 colors (for PNG) at full resolution first, and shrinks width and height for up to 4 rounds only if the file is still above 20,480 bytes.

What happens if my image is already 20 KB or smaller?

The tool detects that the file is already at or under 20,480 bytes and keeps your original file without re-encoding it.

Why did my PNG file stay above 20 KB?

PNG uses lossless deflate compression even after palette reduction to 64 colors, so photographic PNGs do not shrink as small as JPGs. If you do not need transparency, convert the PNG to JPG first and then compress to 20 KB.

Can I compress 20 images to 20 KB at the same time?

Yes. Drop up to 20 JPG, PNG or WebP files at once; each file is fitted to 20 KB or less on its own and the batch downloads as a single ZIP.

Why did Safari save my WebP as PNG or leave it unchanged?

Safari does not support WebP encoding on an HTML canvas. Use Chrome, Edge or Firefox when you need compressed WebP output.