Compress any image to under 20 KB — in your browser, with nothing uploaded. The tool searches encoder quality settings to land as close to 20 KB as it can without going over, and only reduces dimensions when the target cannot be reached any other way.
Drop images here, click to browse, or paste from the clipboard
JPG · PNG · WebP · GIF · BMP · SVG · as many files as you like · nothing is uploaded
Everything worth knowing about the 20 KB target
What 20 KB can realistically hold, how the tool actually reaches it, which format to pick, what quality to expect, and where this budget is the right choice rather than an arbitrary one.
Compressing to 20 KB: what the number actually means
Twenty kilobytes is the point where a compressed image stops being a token and starts being a picture. It is double the budget of the tightest tier, and because image quality responds to bytes in a sharply diminishing curve, that doubling buys a disproportionate improvement — roughly 40% more linear resolution, or the same resolution with visibly fewer artifacts.
It remains a small budget in absolute terms. A photograph straight from a phone is two to four hundred times larger, so the tool still reduces dimensions on most inputs rather than relying on quality reduction alone. What changes at 20 KB is that the resulting image is comfortably large enough for avatars, list rows, card thumbnails and icon sets, and it no longer looks obviously broken when someone views it at its native size.
The tool searches for the highest quality setting that still fits under 20 KB, and only reduces dimensions when quality alone cannot get there. That ordering matters: it means you always get the largest image the budget can support rather than an arbitrarily shrunken one.
Why people choose the 20 KB target
Twenty kilobytes is usually chosen rather than imposed. It is the number people land on when 10 KB proved too aggressive and 50 KB felt wasteful for something that renders at 200 pixels. That makes it a considered budget, and it rewards a little care in setting it up: pick the output dimensions deliberately and 20 KB is genuinely comfortable.
The other route here is an avatar pipeline. If you are storing profile pictures for thousands of users, the difference between 20 KB and 200 KB each is the difference between a few hundred megabytes and a few gigabytes, replicated across every backup and every CDN edge. Avatars are displayed small and stored forever, which is precisely the profile that justifies squeezing them.
Why a target size beats a quality slider
Every image editor asks you for a quality number and then tells you the file size afterwards. That is backwards for the problem most people actually have, which is a fixed ceiling — an upload form, a page budget, a mailbox limit — and no idea which quality setting will land underneath it. The usual result is a loop: export at 70, check, export at 50, check, export at 60, give up somewhere in the middle.
This tool inverts the relationship. You give it the ceiling and it searches for the quality, using a bisection over the encoder settings that converges in a handful of attempts. That is why it can hit 20 KB reliably on the first pass, and why it can tell you afterwards exactly which quality it used — which is useful information, because it tells you how much headroom you had.
What the tool does not do
It does not upload anything, so it cannot use a server-side encoder like MozJPEG or a full WebP encoder with custom tuning. It uses the encoders built into your browser, which are good but not state of the art. It also does not perform content-aware operations — no smart cropping, no subject detection, no upscaling. And it will not make a compressed file better than its source: compressing an image that has already been through a lossy pass compounds the damage, so always start from the best original you have.
The pipeline, step by step
Decode. The file is decoded into a bitmap using the browser image decoder, with EXIF orientation applied so photographs taken sideways come out the right way up. This step also discards every metadata block — EXIF, GPS, camera make and model, colour profile — because a bitmap is just pixels.
Resize. If you have set a maximum width or height, the bitmap is drawn into a canvas of the fitted size with the browser high-quality smoothing enabled. Aspect ratio is always preserved; the tool never stretches or crops.
Search quality. The canvas is encoded repeatedly at different quality settings, bisecting between the floor you set and the practical ceiling. Each attempt produces a real encoded blob, so the size it reports is the actual file size rather than an estimate. Around eight to ten iterations are enough to converge.
Downscale and retry. If even the quality floor exceeds 20 KB, the tool computes a scale factor from the ratio between the achieved size and the target, applies it, and runs the quality search again. It repeats this until the file fits, which for a photograph against a small target may take several rounds.
Score fidelity. The original and the result are both drawn to a small common canvas and compared pixel by pixel to produce a peak signal-to-noise ratio. This gives you an objective number rather than a promise.
Hand back the blob. The result is offered as a download, individually or bundled into a ZIP that is assembled in the browser.
Why bisection rather than a fixed quality
The relationship between quality setting and file size is not linear and it is not the same for two different images. A photograph of a plain wall at quality 80 might be a tenth the size of a photograph of a forest at the same setting. Any fixed quality number therefore lands wildly differently depending on the picture, which is why exporting at "quality 60" is such an unreliable way to hit a file-size target.
Bisection sidesteps that by measuring rather than predicting: encode at the midpoint, read the real size, move the bracket, repeat until the remaining error is smaller than one quality step.
Why dimensions come after quality
Removing pixels is destructive in a way that lowering quality is not — pixels cannot come back. So the tool exhausts the quality range first and reaches for the scissors only when it must, which is what makes it produce the largest image that fits 20 KB rather than an arbitrarily shrunken one.
PNG is a special case. PNG is lossless and has no quality parameter, so the quality search does not apply to it. When you choose PNG the only lever available is dimensions, which means the tool reaches 20 KB purely by scaling. That is why a photographic PNG at a small target ends up so much smaller in dimensions than the same image as WebP.
What actually fits in 20 KB
The honest answer to "how big an image fits" is that it depends entirely on the picture. Compression works by removing redundancy, and a photograph of a foggy lake has far more redundancy than a photograph of a market crowd. The table below works from a bytes-per-pixel model: for each kind of content, roughly how many bytes a pixel costs at the quality settings this tool typically lands on, and therefore how many pixels a 20 KB budget buys.
Content type
JPEG at 4:3
JPEG at 16:9
WebP at 4:3
WebP megapixels
Detailed photograph — foliage, crowds, texture, fine grain
280 × 210
330 × 180
350 × 260
0.09 MP
Ordinary photograph — portrait, product on plain ground
390 × 290
450 × 250
490 × 370
0.18 MP
Soft or low-detail photo — sky, studio white, shallow depth of field
510 × 380
590 × 330
630 × 480
0.30 MP
Screenshot or UI capture with text
320 × 240
370 × 210
430 × 320
0.14 MP
Flat graphic, logo or illustration
550 × 410
640 × 360
740 × 550
0.41 MP
Derived from typical encoder output at the quality range this tool settles on: JPEG at roughly 0.34 bytes per pixel for detailed photographs down to 0.09 for flat graphics, with WebP at about 0.65 of the JPEG figure. Dimensions are rounded to the nearest ten pixels. These are planning figures, not guarantees — your own images will land somewhere either side depending on their content.
How to read the table
Find the row that best describes your image and read across. If your photograph is a portrait against a plain studio background, you are in the "ordinary photograph" row and can expect the dimensions shown. If it is a landscape full of trees, you are in the "detailed photograph" row and should expect roughly half the pixel area for the same bytes.
The WebP column is the one to look at if you control where the image is going, because it is the format that will actually be used. The JPEG columns matter when the destination is an upload form, an email or any system whose format handling you cannot predict.
How 20 KB compares with the targets either side
The same photograph at three neighbouring budgets, using the WebP figure for an ordinary photograph. This is the fastest way to tell whether you are on the right tier or one step away from it.
The step down to 10 KB costs about 30% of your linear resolution; the step up to 30 KB buys about 20% more. If you are unsure, run the same image at both and use the comparison slider — the difference is easy to see at these sizes.
Halving the width and height quarters the pixel count, which roughly quarters the file size at the same quality. That relationship is the lever you have. If a 20 KB target is producing a soft image, the fix is almost always fewer pixels rather than a different encoder or a cleverer setting — and because screens are smaller than camera sensors, those pixels are usually ones nobody would have seen anyway.
What makes an image expensive
Fine random texture. Foliage, gravel, fabric weave, hair, sand and film grain are incompressible by nature — there is no pattern to exploit.
High contrast edges. Rendered text, line art and hard shadows force the encoder to spend heavily to avoid visible ringing.
Noise and heavy sharpening. Both are high-frequency detail, and high-frequency detail is what costs bytes. Denoise before compressing and sharpen lightly, after resizing.
Choosing a format at 20 KB
WebP is the strongest choice at 20 KB and is now supported by every current browser. Against JPEG it typically delivers the same visual result in 25 to 35% fewer bytes, which at this budget translates directly into a meaningfully larger picture.
Keep JPEG when the file has to travel through systems you do not control — email clients, legacy content management systems, third-party upload endpoints and print workflows all still have pockets of WebP unfamiliarity. Use PNG only for flat graphics; a photographic PNG at 20 KB will be far worse than the same picture as a JPEG.
Format
Compression
Transparency
Best for
Avoid for
JPEG
Lossy
No
Photographs, anything going to an unpredictable destination, email, print workflows
Text, screenshots, logos, line art, anything needing transparency
WebP
Lossy or lossless
Yes
Anything served from a site you control — typically 25 to 35% smaller than JPEG at equal quality
Legacy pipelines, some third-party upload endpoints, older print software
PNG
Lossless
Yes
Screenshots, diagrams, charts, logos, flat colour, anything with rendered text
Photographs — a photographic PNG is many times larger than an equivalent JPEG
AVIF
Lossy or lossless
Yes
The smallest files of all, roughly 20 to 30% below WebP
Browser canvas export support is still inconsistent, so it is not offered here
GIF
Lossless, 256 colours
Binary only
Nothing, in practice — superseded by PNG for stills and video for animation
Photographs, anything needing more than 256 colours
SVG
Vector, text-based
Yes
Logos, icons and diagrams that must scale to any size
Photographs — SVG cannot represent them without embedding a raster image
What "auto" does
With the format set to auto, the tool inspects each image and decides per file. Images with a meaningful alpha channel go to WebP so transparency survives. Images that look photographic go to WebP if your browser can encode it and JPEG otherwise. Images that appear to be flat graphics or screenshots — few distinct colours, large uniform regions — stay as PNG, because forcing them through a lossy encoder would produce a larger and uglier file. If you know what your images are, setting the format explicitly is always more predictable than auto.
The re-encoding trap
Every lossy encode discards information permanently, and the losses compound. A JPEG that has been through three save cycles at quality 80 looks noticeably worse than one saved once at quality 60, even though the last file is larger. This matters here because it is tempting to compress a file, decide it is not small enough, and compress the result again. Do not: change the target and re-run from the original instead. The tool keeps your originals in the list precisely so you can do that.
Transparency and background flattening
JPEG has no alpha channel, so converting a transparent PNG to JPEG has to put something behind it. The tool fills transparent areas with the colour you pick — white by default, which suits most pages but is exactly wrong on a dark background, where it produces a bright rectangle around your logo. If transparency matters, choose WebP or PNG and it survives untouched.
What 20 KB looks like
At 20 KB a photograph in the region of 300 to 400 pixels wide looks genuinely good. Push the same budget to 800 pixels and the picture starts to fall apart: flat areas turn blocky, gradients band, and fine texture dissolves into mush. The trade is entirely between area and cleanliness, and there is no setting that avoids it.
Faces are the usual test. A face at 20 KB and 300 pixels wide is perfectly recognisable and pleasant. The same face at 20 KB and 900 pixels wide develops the mottled, waxy look that people immediately read as a low-quality image, even when they cannot say why. If your image contains a face and it matters, keep the dimensions modest.
Compare the before and after with the slider in the results panel before you commit to a batch. Two minutes of checking on one representative image saves re-running forty.
A measured result at 20 KB
Vague promises about quality are easy to make, so here is an actual run. A deliberately difficult synthetic photograph — 2000 × 1500 pixels, saturated, and loaded with random noise that no encoder can compress away — was put through this exact tool at the 20 KB target in Chromium. Real photographs are easier than this, so treat these figures as close to a worst case rather than a typical one.
Source
1.8 MB JPEG at quality 96, 2000 × 1500, heavy synthetic noise
Result
19.9 KB as WebP, 99% of the 20 KB budget
Dimensions
900 × 675 px — the quality floor could not reach 20 KB at full size, so the image was scaled to about 45%
Quality landed on
38 out of 100, found by bisection
Fidelity
36.6 dB against the original
Reduction
98.9%
Mistakes people make at 20 KB
Not square-cropping avatars first. The interface will crop anyway, so you are spending bytes on pixels that get thrown away, and risking an automatic crop that cuts off a face.
Using one 20 KB file for every display size. A file sized for a 128 px avatar looks soft on a 400 px profile header. Produce two.
Letting a screenshot through as JPEG. At 20 KB the ringing around text is severe. Screenshots need PNG and a much smaller pixel count.
Ignoring gradients. Skies and studio backdrops band badly at this budget in JPEG. WebP handles them far better for the same bytes.
Compressing from an already-resized copy. Start from the original upload, not from the 400 px version somebody already made.
Reading the fidelity score
Every result carries a peak signal-to-noise ratio in decibels, computed by comparing the compressed output against the original pixel by pixel. It is a genuine measurement rather than a marketing claim, and it is a good deal more useful than a vague assurance that quality has been preserved.
Score
What it means
Practical reading
Above 45 dB
Essentially identical
No difference detectable by any means short of subtracting the images
40 – 45 dB
Visually lossless
Indistinguishable in normal viewing; safe for anything
35 – 40 dB
Excellent
Differences only visible in a side-by-side at full zoom
30 – 35 dB
Good
Noticeable on close inspection, invisible in normal use
25 – 30 dB
Acceptable
Artifacts visible if you look; fine for thumbnails, not for hero images
Below 25 dB
Degraded
Obvious blocking and banding; consider a larger target or smaller dimensions
One caveat worth knowing: peak signal-to-noise ratio measures mathematical difference, not perceived quality. A slight overall brightness shift scores badly while being invisible; blocking concentrated in one corner scores well while being obvious. Use the number as a guide and the comparison slider as the verdict.
What compression artifacts look like
Blocking. Visible 8 × 8 squares in flat areas, the classic JPEG failure. Appears first in skies and shadows.
Banding. Smooth gradients breaking into visible steps. Worst in skies, studio backdrops and soft shadow.
Ringing. Faint halos alongside hard edges, most obvious around text and line art. This is why screenshots belong in PNG.
Colour bleed. Saturated colour smearing beyond its boundary, because colour is stored at lower resolution than brightness.
Texture loss. Fine detail flattening into smooth patches — the "waxy" look on skin and fabric.
Getting more quality out of the same budget
Crop first. Removing pixels you do not need is free compression, and it concentrates the budget on the part of the image that matters.
Cap the dimensions. The most effective single lever. A smaller sharp image beats a larger broken one in almost every context.
Use WebP. Roughly a third fewer bytes for the same visual result, and the advantage is widest exactly where budgets are tight.
Denoise a noisy original. Sensor noise is random data and random data does not compress. Removing it can cut file size dramatically.
Sharpen less. Aggressive sharpening manufactures the high-frequency detail that costs the most bytes.
Start from the best original. Compressing an already-compressed file compounds the damage from both passes.
Where 20 KB is the right budget
Avatars and profile pictures
User photos at the 128 to 256 pixel sizes most applications actually render, where 20 KB is comfortable rather than tight.
Card and tile images
The small images on category tiles, article cards and related-content strips, where a page may load twenty of them at once.
Chat and forum images
Inline images in messaging and discussion threads, where fast loading matters more than absolute fidelity.
Icon and badge sets
Application icons, achievement badges and small illustrations, particularly when dozens ship together.
Mobile-first interfaces
List rows and compact layouts on phones, where the rendered size is small and the connection often is not fast.
Forms with a 20 KB ceiling
Upload fields that reject anything larger, which is a common limit on older web applications and internal tools.
Choosing a budget by role, not by habit
The most common mistake in image optimisation is applying one number to everything. A page has different kinds of image on it and they deserve different budgets: the hero that determines the largest contentful paint, the content images inside the article, and the thumbnails in a related-posts strip are three different jobs. Give the hero a generous allowance, keep content images moderate, and squeeze thumbnails hard — the thumbnails are where volume multiplies small savings into large ones.
Role
Typical budget
Why
Grid and list thumbnails
10 – 30 KB
Many per page, rendered small; volume makes each kilobyte count
Avatars and icons
10 – 50 KB
Displayed at 32 to 256 pixels, often dozens at once
Inline content images
50 – 100 KB
Full column width, several per article, quality matters but so does weight
Mobile hero / LCP element
100 – 200 KB
Directly determines the largest contentful paint on the device that matters most
Desktop full-width hero
200 – 500 KB
Large dimensions at high pixel density, and only one per page
Portfolio and zoom images
300 – 500 KB
The photograph is the product; texture and detail must survive
Attachments and portal uploads
500 KB – 1 MB
The constraint is a system limit, not page speed; preserve as much as allowed
When compression is the wrong answer
When you should be serving a different size. A phone downloading a desktop-width image wastes most of it. Responsive images through srcset beat compression alone.
When the image should not be an image. Text rendered into a picture is heavier, unsearchable and inaccessible. Use real text. Charts are often better as SVG.
When the original is the deliverable. Print files, archival masters and anything a client is paying for should never be replaced by a compressed copy.
Working efficiently
If you are producing avatars, crop to a square before compressing. A square crop at 20 KB gives you more useful pixels than a 4:3 image the interface is going to crop anyway, and it removes the risk of the automatic crop cutting off part of a face.
Recommended settings for common 20 KB jobs
Starting points rather than rules. The quality floor only sets how far the search may go; the tool still uses the highest setting that fits, so raising the floor makes it give up and downscale sooner rather than producing a bigger file.
Job
Format
Max width
Quality floor
Note
Avatar or profile picture
WebP
512 px
35%
Square-crop before compressing
Card or category tile
WebP
480 px
30%
Comfortable for a 240 px slot at retina density
Chat or forum inline image
JPEG
600 px
30%
JPEG travels through more clients safely
20 KB upload cap
JPEG
500 px
25%
Target 19 KB to leave request-overhead margin
Test one before running fifty. Drop in a single representative image, look at the result on the comparison slider, and only then commit the batch. Two minutes here saves re-running everything.
Decide dimensions before size. Setting a maximum width is what turns a byte budget into a sharp picture. Left unconstrained, a 6000-pixel camera file spends the whole budget on pixels no screen will show.
Keep your originals. Compression is one-way. Compress into a new folder and never overwrite the source, because the day you need a print or a different crop will arrive.
Group by content type. Photographs, screenshots and logos want different formats; run them as separate batches rather than trusting auto to sort a mixed pile.
Batch processing notes
Every file in a batch is processed independently against the same target, so a mixed set produces mixed results — a simple graphic may land far under the ceiling while a detailed photograph needs downscaling to get there. The results table shows what each file required, which makes the outliers easy to spot and re-run with different settings.
The ZIP is assembled in your browser using stored (uncompressed) entries. That is deliberate: the files inside are already compressed images, so deflating them again would cost time and save almost nothing. The archive opens in every standard tool.
Filenames and organisation
Output files keep the original name with the new extension. If you compress a JPEG to WebP you will get the same base name with a .webp extension, which means a compressed set can sit alongside the originals without collisions. When you are optimising a website this matters: update the references in your markup at the same time, or serve both through a picture element with the WebP first and the JPEG as a fallback.
Accessibility and SEO are separate problems
Compression makes pages faster, and speed helps search ranking indirectly. It does nothing for the things that actually describe your image to a search engine or a screen reader: the alt text, the filename, the caption and the surrounding content. Compress for speed, write proper alt text for everything else, and do not confuse the two.
Image compression terms
Artifact
Visible damage introduced by lossy compression — blocking, banding, ringing or colour bleed.
Banding
Smooth gradients breaking into visible steps. The first failure you will see in skies and studio backdrops.
Blocking
Visible square tiles in flat areas, produced by the block-based transform at the heart of JPEG.
Bytes per pixel
File size divided by pixel count. The single most useful way to reason about whether an image will fit a byte budget.
EXIF
Metadata a camera embeds — exposure, lens, timestamp and often GPS coordinates. Removed entirely by re-encoding.
Lossless
Compression that reconstructs the original exactly. PNG and lossless WebP; larger files, no artifacts.
Lossy
Compression that discards information permanently in exchange for much smaller files. JPEG, lossy WebP, AVIF.
LCP
Largest Contentful Paint, the Core Web Vitals metric measuring when the biggest element becomes visible. Usually an image.
PSNR
Peak signal-to-noise ratio, the fidelity score shown for each result. Higher is closer to the original.
Quality setting
The 0 to 100 parameter given to a lossy encoder. It is not a percentage of anything and the same number means different things in different encoders.
Re-encoding
Decoding an image and encoding it again. Each lossy round trip compounds the damage of the last.
Ringing
Faint halos beside hard edges, most visible around text. The reason screenshots belong in PNG.
WebP
An image format supporting both lossy and lossless compression with transparency, typically 25 to 35% smaller than JPEG.
Frequently asked questions
What resolution can I expect at 20 KB?
For an ordinary photograph in WebP, roughly 500 × 380 pixels; for a detailed one, closer to 360 × 270. JPEG comes in about 25% smaller in each dimension for the same budget. Flat graphics and simple images go considerably larger. The table on this page gives the full breakdown.
Is 20 KB good enough for a profile photo?
Yes, for almost every interface. Avatars are typically rendered between 32 and 256 pixels, and 20 KB comfortably covers a clean image at the top of that range. The only case where it falls short is a profile page that displays the same file at full width.
Why is 20 KB so much better than 10 KB?
Because image quality follows a diminishing-returns curve. The first kilobytes buy structure, the last buy fine texture. Doubling from 10 to 20 KB sits early on that curve, where each additional kilobyte is still doing a lot of work, so the improvement is much larger than the doubling suggests.
Can I keep the original dimensions?
Set a maximum width and height and the tool will respect them, but if the target cannot be met at that size the output will miss 20 KB. Turn strict mode off if you would rather have the original dimensions at whatever size the encoder can manage, and on if hitting the target is the hard requirement.
Does the tool work on transparent PNGs?
Yes. If you convert to JPEG, which has no alpha channel, transparency is flattened onto the background colour you choose — white by default. WebP keeps transparency, so choose WebP or PNG if the transparent areas matter.
How do I compress a whole folder?
Select or drag in every file at once. Each is compressed independently against the same 20 KB target, the results table shows what each one needed, and the ZIP button packages the entire batch in a single download.
Does compression happen on your servers?
No. All decoding, resizing and re-encoding runs in your browser. Nothing is uploaded, nothing is logged, and the page continues to work if you disconnect from the network after it loads.
What is the fidelity score in the results?
It is a peak signal-to-noise ratio, a standard measure of how far the compressed image has drifted from the original. Above about 35 dB the difference is usually invisible; between 28 and 35 it is noticeable on close inspection; below 28 it is obvious.
My file came out well under 20 KB. Why not use the full budget?
Because the tool searches for the highest quality that fits and encoders move in discrete steps. If the next quality step up would have exceeded the target, it stops at the one below. Raising the maximum dimensions is usually the better way to use up spare budget.
Which browsers does this work in?
Every current desktop and mobile browser. WebP output requires a browser from 2020 or later, which in practice means all of them; if yours cannot produce WebP, the tool falls back to JPEG automatically.
About Compress Image to 20 KB
This tool compresses any image you give it to under 20 KB, in your browser, without uploading anything. Drop in a JPG, PNG, WebP, GIF, BMP or SVG and it decodes the file, searches encoder quality settings to find the highest one that still fits inside 20 KB, and hands back the result with the exact final size, the dimensions, the quality setting it used and a fidelity score measuring how far the output has drifted from the original.
Where quality alone cannot reach 20 KB — which happens on tight budgets and very large source images — it reduces the dimensions progressively and re-encodes until the file genuinely fits, then tells you the scale factor it applied. You get the largest, cleanest image that will actually fit the target rather than a file that misses it.
Small but usable: this page covers what 20 KB can realistically hold, which formats behave best at that size, and where the budget is genuinely the right choice.
Features
Exact target search: Binary search across encoder quality settings to land as close to 20 KB as possible without exceeding it.
Automatic downscaling fallback: When quality alone cannot reach 20 KB, dimensions are reduced progressively until the file fits, with the scale factor reported.
Batch processing: Drop in a whole folder; every file is processed independently against the same target.
Format control: Auto, JPEG, WebP or PNG output, with auto choosing per file based on whether the image is photographic or has transparency.
Dimension limits: Set a maximum width and height and the image is fitted inside that box with its aspect ratio kept.
Before-and-after comparison: A draggable slider over the original and the result at full size, so you can judge the trade rather than guess at it.
Fidelity score: A peak signal-to-noise ratio for every file, telling you objectively how much was lost.
ZIP download: Take the entire batch as one archive, built in the browser with no library and no server.
Metadata stripped: EXIF, GPS coordinates and camera details are discarded during re-encoding, which is a privacy benefit worth knowing about.
Nothing uploaded: Every step runs locally through the Canvas API. The tool works with the network disconnected.
How to Use
Add your images — drag them onto the drop zone, click to browse, or paste from the clipboard. Multiple files at once are fine.
Check the target — it is preset to 20 KB. Lower it slightly if you are compressing to satisfy an upload limit, since some systems measure the whole request rather than the file.
Pick an output format — auto is right most of the time. Choose WebP for the smallest files, JPEG for maximum compatibility, PNG for screenshots, logos and anything with text.
Set maximum dimensions if it matters — capping the width is what turns a byte budget into a sharp image rather than a soft one.
Compress — each file is processed and appears in the results table with its before and after size, dimensions, quality and fidelity score.
Check one result — open the comparison slider on a representative image before committing to a large batch.
Download — take files individually or the whole batch as a single ZIP.
Examples
Example 1 — an avatar for a member directory: A 3.1 MB portrait is compressed to 20 KB. The tool holds quality at 78% and lands on 480 × 640 in WebP at 19.4 KB, a 99.4% reduction, with a fidelity score in the high thirties — visually identical at any size the directory displays.
Example 2 — twenty category tiles: Twenty landscape photographs are dropped in together with the maximum width set to 400. Each lands between 15 and 20 KB, the batch drops from 46 MB to 380 KB, and the whole set downloads as one ZIP.
Example 3 — a transparent badge: A PNG badge with a transparent background is compressed with the format left on WebP so the alpha channel survives. It lands at 6 KB with no visible change, where a JPEG conversion would have added an unwanted white box behind it.
Benefits
Hit the number first time: No exporting at quality 60, checking the size, exporting again at 45. The tool searches for you.
Pass upload limits that reject camera files: A phone photo is many times over a 20 KB cap; this closes the gap in one step.
Keep as much quality as the budget allows: Quality is reduced before dimensions, so you never lose resolution unnecessarily.
Judge the trade honestly: A comparison slider and an objective fidelity score instead of a vague promise about quality.
Process a folder in one pass: Batch compression with a per-file report and a single ZIP download.
Keep your images private: Nothing is uploaded, nothing is stored, and the tool works offline.
Strip location data automatically: Re-encoding removes EXIF and GPS, which matters when sharing photographs publicly.
Free, with no account and no watermark.
Frequently Asked Questions
What resolution can I expect at 20 KB?
For an ordinary photograph in WebP, roughly 500 × 380 pixels; for a detailed one, closer to 360 × 270. JPEG comes in about 25% smaller in each dimension for the same budget. Flat graphics and simple images go considerably larger. The table on this page gives the full breakdown.
Is 20 KB good enough for a profile photo?
Yes, for almost every interface. Avatars are typically rendered between 32 and 256 pixels, and 20 KB comfortably covers a clean image at the top of that range. The only case where it falls short is a profile page that displays the same file at full width.
Why is 20 KB so much better than 10 KB?
Because image quality follows a diminishing-returns curve. The first kilobytes buy structure, the last buy fine texture. Doubling from 10 to 20 KB sits early on that curve, where each additional kilobyte is still doing a lot of work, so the improvement is much larger than the doubling suggests.
Can I keep the original dimensions?
Set a maximum width and height and the tool will respect them, but if the target cannot be met at that size the output will miss 20 KB. Turn strict mode off if you would rather have the original dimensions at whatever size the encoder can manage, and on if hitting the target is the hard requirement.
Does the tool work on transparent PNGs?
Yes. If you convert to JPEG, which has no alpha channel, transparency is flattened onto the background colour you choose — white by default. WebP keeps transparency, so choose WebP or PNG if the transparent areas matter.
How do I compress a whole folder?
Select or drag in every file at once. Each is compressed independently against the same 20 KB target, the results table shows what each one needed, and the ZIP button packages the entire batch in a single download.
Does compression happen on your servers?
No. All decoding, resizing and re-encoding runs in your browser. Nothing is uploaded, nothing is logged, and the page continues to work if you disconnect from the network after it loads.
What is the fidelity score in the results?
It is a peak signal-to-noise ratio, a standard measure of how far the compressed image has drifted from the original. Above about 35 dB the difference is usually invisible; between 28 and 35 it is noticeable on close inspection; below 28 it is obvious.
My file came out well under 20 KB. Why not use the full budget?
Because the tool searches for the highest quality that fits and encoders move in discrete steps. If the next quality step up would have exceeded the target, it stops at the one below. Raising the maximum dimensions is usually the better way to use up spare budget.
Which browsers does this work in?
Every current desktop and mobile browser. WebP output requires a browser from 2020 or later, which in practice means all of them; if yours cannot produce WebP, the tool falls back to JPEG automatically.