[{"data":1,"prerenderedAt":20},["ShallowReactive",2],{"$f-icYGSrUBE4hN80HDq03mP6B8GlmTfUyyDSJ2RZ4cmA":3},{"title":4,"description":5,"author":6,"date":7,"category":8,"tags":9,"featured":15,"coverImage":16,"contentHtml":17,"_path":18,"_id":19},"Compress an Image to 200 KB in the Browser: What Actually Shrinks It","Measured on a real 4K photo and a long screenshot: which of the three settings actually moves the file size, in what order to pull them, and where 100% quality goes wrong.","AI Tools Lab Team","2026-11-11","Tutorial",[10,11,12,13,14],"Image Compression","WebP","Browser Tools","Privacy","Playground","false","\u002Fblog-covers\u002Fcompress-image-to-200kb-cover.svg","\u003Cblockquote>\n\u003Cp>&quot;Compress your image&quot; is not an instruction. There are three settings, they do not cost the same, and pulling the wrong one first is how a photo ends up soft and still too heavy. What follows is a measurement, not a rule of thumb: two real files, run through the \u003Ca href=\"\u002Fplay\u002Fimage-compressor\">browser compressor\u003C\u002Fa> in this site&#39;s Playground, with every number read off the output it reported.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>The two test files:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Input\u003C\u002Fth>\n\u003Cth>Pixels\u003C\u002Fth>\n\u003Cth align=\"right\">Source size\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>A photograph (a wallpaper shipped with Windows)\u003C\u002Ftd>\n\u003Ctd>3840 × 2160\u003C\u002Ftd>\n\u003Ctd align=\"right\">1.49 MB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>A full-page screenshot of a web page\u003C\u002Ftd>\n\u003Ctd>1920 × 4271\u003C\u002Ftd>\n\u003Ctd align=\"right\">545 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>Both are ordinary: a camera or wallpaper file on one side, a screenshot on the other. Most &quot;image too large&quot; problems are one of these two.\u003C\u002Fp>\n\u003Ch2>The limit counts bytes, not pixels\u003C\u002Fh2>\n\u003Cp>An upload form that rejects files over 200 KB is reading the filesystem size of your file. It does not know how many pixels the image has, and it does not care whether the picture looks detailed.\u003C\u002Fp>\n\u003Cp>That gap is where the confusion comes from. A 3840 × 2160 photo is not large because it has 8.3 million pixels — it is large because those pixels are mostly fine-grained detail, and the encoder spends bytes describing it. A screenshot at a similar pixel count is small because most of it is a few flat rectangles. \u003Cstrong>Compression is a property of what is inside the picture, so no single quality setting produces the same size for two different images.\u003C\u002Fstrong> Anyone quoting one number for &quot;compress to 200 KB&quot; is describing their own photo.\u003C\u002Fp>\n\u003Ch2>Three settings, ranked by what they buy\u003C\u002Fh2>\n\u003Cp>The photograph, five combinations. Percentages are relative to the 1.49 MB source.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Setting\u003C\u002Fth>\n\u003Cth align=\"right\">Output\u003C\u002Fth>\n\u003Cth align=\"right\">Change\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>WebP, quality 80, original width 3840\u003C\u002Ftd>\n\u003Ctd align=\"right\">487 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−68%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>WebP, quality 80, max width 1920\u003C\u002Ftd>\n\u003Ctd align=\"right\">147 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−90%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>WebP, quality 80, max width 1280\u003C\u002Ftd>\n\u003Ctd align=\"right\">67 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−96%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>WebP, quality 50, max width 1280\u003C\u002Ftd>\n\u003Ctd align=\"right\">38 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−97%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>WebP, quality 80, max width 800\u003C\u002Ftd>\n\u003Ctd align=\"right\">30 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−98%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>Two observations matter more than the table.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Width scales the file almost linearly.\u003C\u002Fstrong> 3840 down to 1920 removes 75% of the pixels and 70% of the bytes. 1920 down to 1280 removes another 56% of the pixels for 54% of the bytes. That is about as close to proportional as compression gets.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Everything past the display size is waste.\u003C\u002Fstrong> If the page will show your image in a 640-pixel-wide column, a 3840-pixel source is spending its bytes on pixels the reader never receives. Resizing to 1280 is not a compromise; it is the correct size. The same drop in bytes bought by lowering quality from 80 to 50 costs visible detail, while the width reduction costs detail nobody was going to see.\u003C\u002Fp>\n\u003Ch2>Format is worth more than most people assume\u003C\u002Fh2>\n\u003Cp>At identical settings, the same photograph:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Encoding\u003C\u002Fth>\n\u003Cth align=\"right\">3840 wide\u003C\u002Fth>\n\u003Cth align=\"right\">1280 wide\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>WebP, quality 80\u003C\u002Ftd>\n\u003Ctd align=\"right\">487 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">67 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>JPEG, quality 80\u003C\u002Ftd>\n\u003Ctd align=\"right\">772 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">93 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>WebP is 37% smaller at full resolution and 28% at 1280. That is not marginal — it is a third of the file for one dropdown change. Every current browser renders WebP, so the old reason to avoid it is gone. The reason to keep JPEG is narrower than people assume: an upload pipeline that rejects anything not ending in \u003Ccode>.jpg\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>PNG is a different story. Re-encoding the same photograph as PNG produced \u003Cstrong>9.26 MB\u003C\u002Fstrong>, six times larger than the file it started from. PNG is lossless; it stores the detail at full fidelity, which is the opposite of what you want for a photograph. Use it for line art, logos and transparency.\u003C\u002Fp>\n\u003Ch2>Screenshots behave backwards\u003C\u002Fh2>\n\u003Cp>Same tool, same settings, different input: a 1920 × 4271 full-page screenshot that starts as a 545 KB PNG.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Setting\u003C\u002Fth>\n\u003Cth align=\"right\">Output\u003C\u002Fth>\n\u003Cth align=\"right\">Change\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>WebP, quality 80, original size\u003C\u002Ftd>\n\u003Ctd align=\"right\">340 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−38%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>WebP, quality 80, max width 1280\u003C\u002Ftd>\n\u003Ctd align=\"right\">174 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−68%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>WebP, quality 50, max width 1280\u003C\u002Ftd>\n\u003Ctd align=\"right\">124 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">−77%\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>JPEG, quality 80, original size\u003C\u002Ftd>\n\u003Ctd align=\"right\">574 KB\u003C\u002Ftd>\n\u003Ctd align=\"right\">\u003Cstrong>+5%\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>PNG, original size\u003C\u002Ftd>\n\u003Ctd align=\"right\">1.05 MB\u003C\u002Ftd>\n\u003Ctd align=\"right\">\u003Cstrong>+97%\u003C\u002Fstrong>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>JPEG made the screenshot \u003Cstrong>larger than the file it started from\u003C\u002Fstrong>. That is not a bug. Text and interface panels are full of hard edges, and JPEG&#39;s block-based encoding is bad at hard edges — it spends bytes smoothing them and still leaves ringing around letters. WebP handles the same content far better.\u003C\u002Fp>\n\u003Cp>The PNG row is the other surprise: re-encoding a PNG through the browser doubled it. The original had been written by a screenshot tool with its own optimiser; the browser&#39;s encoder does not match it. \u003Cstrong>A re-encode can grow a file\u003C\u002Fstrong>, which is why reading the reported size before downloading is not optional.\u003C\u002Fp>\n\u003Cp>Practical rule: screenshots go to WebP. If the text has to stay pixel-exact — a UI mockup, a code listing — keep PNG and cut the width instead of the detail.\u003C\u002Fp>\n\u003Ch2>100% quality is not &quot;a little better&quot;\u003C\u002Fh2>\n\u003Cp>Quality sliders invite the assumption that higher is safer. The photograph at 1920 wide, WebP, moving only the quality dial:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth align=\"right\">Quality\u003C\u002Fth>\n\u003Cth align=\"right\">Output\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd align=\"right\">100\u003C\u002Ftd>\n\u003Ctd align=\"right\">1.58 MB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"right\">90\u003C\u002Ftd>\n\u003Ctd align=\"right\">253 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"right\">80\u003C\u002Ftd>\n\u003Ctd align=\"right\">147 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"right\">70\u003C\u002Ftd>\n\u003Ctd align=\"right\">108 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"right\">60\u003C\u002Ftd>\n\u003Ctd align=\"right\">94 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd align=\"right\">40\u003C\u002Ftd>\n\u003Ctd align=\"right\">69 KB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>At 100% the output is \u003Cstrong>larger than the 1.49 MB file that went in\u003C\u002Fstrong>, and six times the size of the same image at quality 90. Chrome&#39;s WebP encoder switches to lossless at quality 1.0, so you are no longer compressing at all — you are storing every pixel exactly, which is the opposite of what the form asked for.\u003C\u002Fp>\n\u003Cp>Between 90 and 60 the curve is steep and then flattens: 253 KB, 147, 108, 94. Most of the available saving is already banked by the time you reach 70. Below 60 the returns shrink while the artifacts — banding in gradients, mush in foliage, waxy skin — become the first thing you notice.\u003C\u002Fp>\n\u003Ch2>The loop that lands under the number\u003C\u002Fh2>\n\u003Cp>Four steps, in this order. The tool reports the output size after each run, so you read a number instead of guessing at one.\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Cstrong>Set the width to the size it will be displayed at.\u003C\u002Fstrong> 1280 covers most web layouts; 1920 only if the image opens full-screen. Unsure, choose 1280.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Choose WebP.\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Start at quality 80.\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Read the reported size.\u003C\u002Fstrong> Under the limit, download. Over it, step quality to 70, then 60.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>For the test photograph, step 3 lands at 67 KB — comfortably under a 200 KB limit without touching the quality dial. A 100 KB limit is a better illustration of the tradeoff, because 1920 wide at quality 80 is 147 KB and fails:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Move\u003C\u002Fth>\n\u003Cth align=\"right\">Result\u003C\u002Fth>\n\u003Cth>Verdict\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>Drop quality to 60, keep 1920\u003C\u002Ftd>\n\u003Ctd align=\"right\">94 KB\u003C\u002Ftd>\n\u003Ctd>passes, mild softening\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Resize to 1280, keep quality 80\u003C\u002Ftd>\n\u003Ctd align=\"right\">67 KB\u003C\u002Ftd>\n\u003Ctd>passes, no softening at 1280 display\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Resize to 800, keep quality 80\u003C\u002Ftd>\n\u003Ctd align=\"right\">30 KB\u003C\u002Ftd>\n\u003Ctd>passes, small on a retina screen\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cp>The middle row is usually the right answer: the image is still sharp, and the bytes went to pixels the viewer can actually see.\u003C\u002Fp>\n\u003Cp>If quality 60 is still over the limit, the honest options are cropping or accepting a smaller width — not pushing quality to 30, where the artifacts cost more than the file size saves.\u003C\u002Fp>\n\u003Ch2>A caveat about these numbers\u003C\u002Fh2>\n\u003Cp>Re-running the same settings in the same tab can return a different size than the first run — on the 1280-wide photo, a second pass after an earlier full-size run came out 29% larger than a fresh page did. The browser reuses a cached decode of the image, so the resampling is not identical. The table above was measured the way a reader will use the tool: a fresh page, one file, one compression.\u003C\u002Fp>\n\u003Cp>The lesson is not to memorise the table. It is that the reported size is the only number that describes your file, on your settings, right now. Read it before you download.\u003C\u002Fp>\n\u003Ch2>What compression will not fix\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Legible small text in a screenshot.\u003C\u002Fstrong> Resizing destroys it. Crop to the region that matters, or keep PNG at a smaller width.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Transparency.\u003C\u002Fstrong> JPEG has no alpha channel; the tool flattens it onto white. A cut-out that needs its background goes to WebP or PNG.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A file that is already optimised.\u003C\u002Fstrong> Re-encoding a 17.8 KB logo produced WebP at 4.3 KB — genuinely smaller — but re-encoding it as PNG returned 17.8 KB, exactly the input, 0% saved. Small files have little left to give.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Anything destined for print.\u003C\u002Fstrong> Screen compression is tuned for a display; the same file printed at A3 shows it.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Metadata you wanted to keep.\u003C\u002Fstrong> Re-encoding through a canvas writes fresh pixels and drops EXIF, so camera settings and GPS coordinates do not survive. For a photo of a document or an ID card, that is usually a feature.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Why &quot;nothing is uploaded&quot; is a claim you can check\u003C\u002Fh2>\n\u003Cp>Compression in the browser means the file is read into memory, drawn onto a canvas, and re-encoded there. No request carries the image anywhere.\u003C\u002Fp>\n\u003Cp>That is easy to verify rather than trust. Open the tool, open developer tools on the Network panel, and compress a file. Loading the page produces one request — the page itself. Compressing adds one entry, and its address begins with \u003Ccode>blob:\u003C\u002Fcode>, which is memory, not a server. Nothing else appears. The same check was run while preparing this article: one document request, one \u003Ccode>blob:\u003C\u002Fcode> URL, no upload.\u003C\u002Fp>\n\u003Cp>It matters for the files people are most often asked to shrink: scans of documents, ID photos, medical images, contracts. Those are exactly the files you should not hand to a free converter site in exchange for an email address.\u003C\u002Fp>\n\u003Cp>If you are compressing images you generated rather than photographed, the size problem starts earlier — \u003Ca href=\"\u002Fblog\u002Fai-image-generator-comparison\">the AI image generator comparison\u003C\u002Fa> covers what resolution each tool outputs, and the \u003Ca href=\"\u002Ftools\u002Fcategories\u002Fart\">AI image category\u003C\u002Fa> lists the generators in this directory. More one-page tools that run the same way, with no account, are in the \u003Ca href=\"\u002Fplay\">Playground\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2>Bottom line\u003C\u002Fh2>\n\u003Cp>Pull the dials in this order: \u003Cstrong>width, then format, then quality.\u003C\u002Fstrong> Width decides how many pixels you are paying for, format decides how efficiently each one is stored, and quality is the last stretch. Leave quality at 80 unless the number forces you lower, treat 100% as a setting that turns compression off rather than improves it, and trust the output size over any table — including this one.\u003C\u002Fp>\n\u003Cp>The compressor used for every number above is at \u003Ca href=\"\u002Fplay\u002Fimage-compressor\">Image Compressor\u003C\u002Fa>. It takes JPG, PNG and WebP, resizes to a chosen maximum width, and reports the exact before-and-after size so you can stop at the limit instead of overshooting it.\u003C\u002Fp>\n","\u002Fblog\u002Fcompress-image-to-200kb","compress-image-to-200kb",1795681101555]