ExactSize

Image compressor to 20KB: one 4000×6000 file, ten targets

A 3,492,678-byte JPEG at 4000×6000 does reach 20 KB on this compressor — it came back at 452×679 and 20,341 bytes. It got there by discarding 98.72% of the pixels, and that, not the byte count, is what stops people. If you need the pixels, set the target to 1,200 KB: that returned 3993×5989 — 99.6% of the pixels, 99.8% of the width and height — at the 40% quality floor. 1,600 KB is the smallest target that held the exact 4000×6000 frame, at quality 55%.

Match your symptom to a cause

  • “This target is not reachable for this image.” You have PNG selected. PNG has no quality dial, so nothing can be traded away — both test files refused at 20 KB as PNG and both produced a file as JPG. Switch the output format.
  • A file under 20 KB, but the picture is a stamp. Your target sits below the pixel floor for that content. 20 KB carried 306,908 pixels of this photograph; 1,200 KB carried 23,914,077; 1,600 KB carried all 24,000,000.
  • A file above 20 KB. I could not reproduce this in ten runs. Every result landed at or under the target, from 20,341 bytes to 2,324,040 bytes.

The ladder further down shows exactly which target buys which dimensions.

What this page answers, and what it does not: it follows one 4000 × 6000 photograph down every target from 2,400 KB to 20 KB, so it answers “what happens to a large file as the budget shrinks”. It does not tell you how many pixels 20 KB holds for other kinds of picture — that is measured per content type on the 20 KB pixel budget page. Two images here, one per type — a photograph and a page of text — so two sample points, not a distribution. And every figure below was produced after the compressor reached its 40% quality floor, at which point it stops lowering quality and takes the difference out of the pixel dimensions instead.

The file that would not go to 20 KB

4000×6000, JPEG, 3,492,678 bytes. On paper that is a routine modern camera file. Set the target to 20 KB, choose JPG, press compress, and the tool answered in 4,680 ms with 452×679, 20,341 bytes, quality 40%. Dimensions scaled to 11% of the original.

Nothing errored. That is the part worth sitting with: the tool obeyed the number I gave it and paid for it in pixels, because at that budget there was nothing else left to pay with. If you came here because your file “will not compress”, check what you actually got back — a tiny file and a failed file are different problems with different fixes.

Every target from 2,400 KB down to 20 KB

One photograph, one output format, ten targets. Nothing else changed between rows, so the only thing moving is the byte budget.

Target Output Pixels Output bytes Quality Pixels per KB
2,400 KB4000×600024,000,0002,324,04076%10,575
1,800 KB4000×600024,000,0001,840,93461%13,350
1,600 KB4000×600024,000,0001,611,97755%15,246
1,200 KB3993×598923,914,0771,203,23940%20,352
800 KB3095×464214,366,990818,29040%17,979
400 KB2093×31396,569,927407,08940%16,526
200 KB1447×21703,139,990203,47440%15,802
100 KB1031×15471,594,957102,20740%15,980
50 KB720×1079776,88050,57540%15,730
20 KB452×679306,90820,34140%15,450

One image: 4000×6000 JPEG, 3,492,678 bytes, target set in KB (1 KB = 1,024 bytes), output JPG, measured 18 October 2026 in Chrome 155.0.8059.80 on Windows 11. Quality is the whole percentage the tool prints in its own verdict line. One image per type — a sample point, not a distribution. Every row at or below 1,200 KB was produced after the tool hit its 40% quality floor and cut the dimensions instead; the rows above 1,200 KB kept 4000×6000 and spent quality.

Where the line is: between 1,200 KB and 1,600 KB

Read the quality column instead of the dimensions. From 20 KB up to 1,200 KB it never moves: 40%, every row. That is the floor. The encoder has no quality left to give, so each extra kilobyte buys pixels and nothing else — which is why pixels per KB climbs from 15,450 to 20,352 across that range, peaking at 1,200 KB where quality is still at the floor and no bytes are being spent on it.

Above 1,200 KB the column jumps: 55% at 1,600 KB, 61% at 1,800 KB, 76% at 2,400 KB. The dimensions are already whole, so the extra bytes go into quality. Somewhere in that gap the tool switches from “shrink the picture” to “keep the picture, spend quality”, and 1,200 KB is the last target on the wrong side of it.

The switch is predictable in direction, but bytes per pixel is a range on a single image, not a constant. Across the ten rows of the ladder it runs from 0.0503 (the 1,200 KB row) to 0.0968 (the 2,400 KB row) — a factor of 1.9 on one photograph. Every row at the 40% floor, from 20 KB up to 1,200 KB, sits between 0.0503 and 0.0663. Above the floor the price climbs with quality: 0.0672 at 55%, 0.0767 at 61%, 0.0968 at 76%.

So run the calculation as a range. At the floor price the frame needs 24,000,000 × 0.064 ≈ 1,536,000 bytes; at the 55% price it needs 24,000,000 × 0.0672 = 1,612,800. The measurement lands between those two: 1,200 KB (1,228,800 bytes) did not hold 4000×6000, 1,600 KB (1,638,400 bytes) did. A single figure like 0.0663 is the 20 KB row's price — it predicts neither end of the ladder well, and it is not a constant you can carry to another photograph.

Same dimensions, same target, half the pixels: the text page

A second file, 4000×6000 as well, so pixel count is held constant and only the content changes. This one is a page of dense body text, 1,297,068 bytes as PNG. Its source file is smaller than the photograph's 3,492,678 bytes. It came out far worse.

Image Source bytes Output at 20 KB Pixels Output bytes Bytes per pixel
Photograph3,492,678452×679306,90820,3410.0663
Text page1,297,068334×500167,00020,4530.1225

Both 4000×6000, both targeted at 20 KB, both output JPG, same browser and same session. One image per type — two sample points, not a distribution. Both outputs were produced after the 40% quality floor was reached, so neither number describes a lower-quality full-size encode; the tool does not make one.

The text page needed 0.1225 bytes per pixel against 0.0663 for the photograph — 1.85 times as much per pixel — so the same 20 KB bought it 167,000 pixels instead of 306,908. Both figures are the 20 KB row, so this one comparison is like for like. Hard edges are what JPEG spends on, and a page of 44-pixel type at this resolution is nothing but edges. If your file is a scan, a screenshot or a page of text, expect to keep 54.4% of the pixels a photograph would keep at the same target.

The arithmetic, so you can predict your own file

pixels that fit ≈ target bytes ÷ bytes per pixel  ·  for this photograph, 0.050–0.067 at the 40% floor

Both inputs are things you can get from one run. Target bytes is the number you typed, multiplied by 1,024. Bytes per pixel comes from compressing once and dividing the output bytes by the output pixels — 20,341 ÷ 306,908 = 0.0663 for this photograph at 20 KB. Put 20,480 in the top and you get 309,005 pixels, which is within 0.7% of the 306,908 the tool actually returned.

That agreement is at this size and this size only. The same file gives 0.0503 at 1,200 KB and 0.0968 at 2,400 KB, so treat the formula as an order-of-magnitude check, not a prediction to the kilobyte — and definitely not as a constant you can hand to a different photograph. A portrait against a plain wall and a landscape full of foliage do not share a bytes-per-pixel figure, whatever this one says.

Run it the other way and you get a range for the target you need. 4000×6000 is 24,000,000 pixels, so the floor price puts the frame at 24,000,000 × 0.064 ≈ 1,536,000 bytes and the 55% price at 24,000,000 × 0.0672 = 1,612,800. Anything below the low end cannot hold the frame at the 40% floor, no matter how the tool searches.

The one hard refusal: PNG at 20 KB

Both files were run a second time with the output set to PNG, same 20 KB target. Both were refused, in these words:

This target is not reachable for this image — the encoder bottoms out before it gets that small. Try a larger target size or a different output format.

That is the tool's own message, copied from the page. It is not a bug and not a limit on your file: PNG is lossless, so there is no quality to spend, and the only lever left is pixels — which at 20 KB runs out before the encoder reaches anything worth calling a picture. The same two files, same target, as JPG produced 452×679 and 334×500 without complaint. If you see that sentence, change the format before you change anything else.

What to change, cheapest first

  1. Switch the output format. Same photograph, same 20 KB target: JPG gave 452×679 (306,908 pixels), WebP gave 534×801 (427,734 pixels), PNG gave the refusal above. WebP bought 39.4% more pixels for the same budget, so it is the first thing to try if the destination accepts .webp.
  2. Raise the target to the number your dimensions need. Use the range, not a single constant: pixels × 0.050 to 0.067 for this photograph at the 40% floor. 1200×900 is 1,080,000 pixels, so it needs 54,000 to 71,604 bytes — 53 KB to 70 KB. Set 100 KB and you clear it with margin.
  3. Crop before you compress. The budget is fixed; the frame is not. Cutting the frame to the subject spends all 306,908 pixels of a 20 KB budget on the part that matters instead of on sky and road shoulder.
  4. Flatten busy backgrounds. A textured background costs more than the subject does. One flat colour behind the subject can move a file from the 334×500 side of the table toward the 452×679 side.

What the 20 KB output actually looks like

I opened both results at their real pixel size. The photograph at 452×679 is a usable thumbnail: the road, the ridge line and the sky all read correctly, and the double yellow line still separates from the asphalt. The rock faces on either side are mush, and the car in the distance is a grey smudge. On a phone at arm's length it holds up; at 100% it does not.

The text page at 334×500 is not readable. Not soft, not degraded — the body text is a grey field and the heading is a dark bar. If your file is a document and you need 20 KB, this is the result you will get, and no setting on the page changes it. Crop to the paragraph you need, or accept a larger target.

When the file is already inside the limit: 2,746 bytes in, 2,746 bytes out

Half the people who want to make image 20kb are holding a file that is already under 20 KB. The tool checks before it encodes: a 2,746-byte JPG at a 20 KB target came back at 2,746 bytes, 900 × 600, in 0 ms, with no quality value at all — the pass-through case, not a compression that happened to change nothing.

That matters for two reasons. It means an already-small file cannot be damaged by running it through: no second-generation JPEG loss, no silent resize. And it means the byte count you see after a run is not always a result — sometimes it is the input, echoed. The verdict line says which: "the file was already inside your limit and already JPG, so it was passed through untouched" is a different sentence from a verdict that reports elapsed milliseconds, and only the second one describes work.

If you came here looking for a 20kb image converter for a file that is already 2.7 KB, the answer is that you do not need one. If the file is 2.7 KB and a form still rejects it, the problem is not the byte count — it is the format, the pixel dimensions or the file name, and the refusal message will name which. The one case where a small file still gets re-encoded is a format change: a PNG under 20 KB converted to JPG is still a conversion, and it still goes through the encoder.

Questions this page gets

Why does the compressor say the target is not reachable for my PNG?

PNG has no quality dial, so the only thing the encoder can remove is pixels, and at 20 KB it runs out of them. Both test files refused as PNG and both produced a file as JPG. Change the output format.

My file is under 20 KB but the picture is unusable. What do I change?

Raise the target until the dimensions return. On this photograph: 20 KB gave 452×679, 200 KB gave 1447×2170, 1,200 KB gave 3993×5989 — 99.6% of the pixels — and 1,600 KB was the smallest tested target that held the exact 4000×6000 frame. If the limit is genuinely 20 KB, crop instead — 306,908 pixels is all the budget holds.

Does a smaller source file compress to 20 KB more easily?

No. The 1,297,068-byte text page is the smaller file and it got 167,000 pixels, against 306,908 for the 3,492,678-byte photograph. Detail decides this, not the starting file size.

Can I keep 4000×6000 and 20 KB at the same time?

Not with a JPEG at the 40% floor. 24,000,000 pixels against a 20,480-byte budget is 0.000853 bytes per pixel; the measured cost at the floor was 0.050–0.066 bytes per pixel on this image, roughly 78 times more. To hold the frame you need somewhere between 1,536,000 and 1,612,800 bytes — which is why 1,200 KB fell just short and 1,600 KB worked.

Is 20 KB reachable at all for a 4000×6000 photograph?

Yes — 452×679 at 20,341 bytes, in 4,680 ms. The tool meets the byte target; what it will not do is meet it and keep your pixels.

All figures measured on 18 October 2026 with Chrome 155.0.8059.80 on Windows 11, using this site's compressor and two test files of 4000×6000: a JPEG photograph of 3,492,678 bytes and a rendered text page of 1,297,068 bytes. The bytes-per-pixel range above is measured on one image; a photograph with different detail will sit outside 0.050–0.067, which is exactly why it is written as a range and not as a constant to apply to your own file. The other half of this question — how many pixels each content type fits into 20 KB — is measured on the 20 KB pixel budget page, and the same question at a 100 KB target, across PNG, JPG and WebP, is measured on the 100 KB PNG page. Which pixel sizes a 100 KB JPG actually satisfies, checked against three official photo specs, is on the JPG at 100 KB page. And if the ladder fails because the output format has to change rather than because the target is too small, the conversion step itself is measured on the convert to JPG page.

Why a JPEG behaves differently from a PNG at this size: a JPEG is rebuilt in 8 × 8 pixel blocks and gives up pixels before it gives up quality, which is why 89 of 102 measured runs reported 40.5% — on the JPEG at 20 KB page.

A larger budget, measured the same way: how many pixels 200 KB holds for a photograph, a text page, flat artwork and a gradient, and why a 1.5-megapixel photo keeps every pixel there while a 6-megapixel one does not, is on the 200 KB page.

A far more generous budget, measured the same way: how many pixels 1 MB holds for a photograph, a scan, a text page and flat artwork, and the fifteen runs where twelve kept every pixel, is on the 1 MB page.

The budget in between, measured the same way: 500 KB holds 8.41 megapixels of a photograph (2367 × 3551), and eleven budgets on one ladder show why doubling to 1 MB returns 2.28× the pixels rather than 2× — on the 500 KB page.