Compress image to an exact size
Type the file size you need — 20KB, 50KB, 100KB, 200KB, 1MB — and get a JPG, PNG or WebP that lands at or under that number. It keeps your pixel dimensions and lowers quality only as far as 40%; past that it shrinks the picture instead. It never hands back a file above your number.
No sign-up. No watermark. No upload — your file is decoded, resized and re-encoded by your own browser.
Choose an image
Drop an image here
or choose a file — JPG, PNG, WebP, GIF or BMP
Set the target file size
JPG and WebP keep your pixel dimensions and let quality drop — but only to 40%. Below that the tool shrinks the image instead, which looks better at the same file size.
Where your file goes
Nowhere. There is no server behind this page and no network request carries your image.
The file is read with the browser's File API, drawn onto a canvas, re-encoded with
canvas.toBlob() and handed straight back to you as a download.
Turn off your Wi-Fi after the page has loaded and it still works.
- No upload, no account, no watermark, no usage limit.
- The target size is enforced by the tool: it never hands back a file above your number.
- If a target is impossible for a given image, the tool says so instead of guessing.
What 20KB actually holds in pixels — measured output sizes for photographs, text pages, flat artwork and gradients.
Indian passport photo size — 4.5 cm by 3.5 cm, what that is in pixels at 300 and 600 DPI, and the nine measured encodes behind it.
Resizing a folder to 20KB — ten files, ten limits, and why the same 20KB came back between 189 × 189 and 1,545 × 773 pixels.
Converting an image to JPG at 20KB — why PNG, JPG and WebP sources land within 9 bytes of each other, what happens to transparency, and why renaming a file does not convert it.
What 200KB leaves you — on a 6-megapixel photo every pixel stays and quality drops to 58.3%, with a mean pixel error of 1.552 measured by decoding the output, plus the nine-budget ladder from 20KB to 5MB and the point where nothing happens at all.
What 1MB actually holds — 19.75 megapixels for a photograph, and the fifteen runs where twelve kept every pixel, including the PNG conversion that returns a file 6.7x larger.
"Image too large to upload" — the four limits behind that one message, and the measured proof that a 2MB target leaves a 54-megapixel photo 5755 pixels wide.
What 300KB actually holds — 4.84 megapixels for a photograph, nine budgets measured at one fixed viewing frame, and why each doubling of the bytes removes only about 18% of the remaining error.
Compressing a JPEG to 20KB — 532 pixels wide for a detailed photograph, why 89 of 102 measured runs reported the same 40.5% quality, and the 8 × 8 block grid that decides which pictures keep their pixels.
What 500KB actually holds — 8.41 megapixels for a photograph, eleven budgets on one ladder, and why doubling to 1MB buys 2.28x the pixels instead of 2x.
Running the reducer twice — same target again returns the file untouched with every pixel identical; a deeper second pass buys 44–220 bytes and costs about a tenth of a level of quality, measured across six budgets and six second passes.
"File too large to upload" — why a 9.4 MB file reaches the server as 13.1 MB, and the two coefficients that decide whether 10 MB holds 9,765 KB or only 7,324 KB.
"File too large" — 1953 KB, not 2000 KB — why the round number in the KB box overshoots a 2 MB limit by 14,942 bytes, how far over a limit the KB/MB base can explain, and what a file actually occupies on disk.
"The file you are trying to upload is too large" — 84 KB is not the number the form checked — the unit in the message decides the fix, three published platform limits quoted from their own documentation, and four platforms left blank because no figure could be sourced.
"Image size too large" — an 84 KB file that is 16 megapixels — twelve files where the gap between bytes on disk and bytes of pixels runs from 6x to 835x, and the measured byte target that actually gets a 24-megapixel photo under a 12-megapixel ceiling.
Compressing an image to WebP — 37.5% more pixels than JPG at the same 100 KB, 4.4% more on a scanned page, and the cut-out where JPG turned 71.91% of the picture white.
Reducing an image size in KB — one 6-megapixel photo at 20KB, 50KB, 100KB, 200KB, 500KB and 1MB: the exact bytes each target returns, which three cut the pixels and which three keep every one, and why the 1MB tier hands the file back untouched.
JPEG size reducer: luma dies first — one photograph at nine byte targets with the error split into Y, Cb and Cr. Luma grew 69% as the budget tightened; chroma grew 33–49%. The crossover sits at 200 KB, where the tool switches from paying quality to paying pixels.
Where the bytes actually come off — the same photograph cut into 40 tiles at five budgets. The ten most textured tiles carried 34–40% of the pixel error and the ten flattest 12–17%, and local texture predicted which tile paid at a rank correlation of 0.96–0.98.
Where the bytes come off inside the JPEG — each output parsed segment by segment at eight targets. The quantization tables stayed at 138 bytes every time; the entropy-coded data took 92–99.6% of the file. At 10 KB, three percent of the output is table overhead.
Image quality reducer: the marginal cost of each quality step — nineteen quality levels from q=0.95 to q=0.05. The byte curve is a staircase; the error curve has two cliffs at q=0.85 and q=0.15; q=0.90 is the sweet spot — 21% smaller than q=0.95 with 36× less error.
Photo compressor online: how long it actually takes — the same photograph at nine targets, a 54-megapixel photo at the same nine, six content types, and five repeat runs. The time peaks where the tool starts shrinking dimensions, not at the smallest target. A 54 MP photo took 14,895 ms at 500 KB.
What the dead frame costs at 100KB — the same photograph compressed whole and with its sky cropped away losslessly. The dead 22.9% of a landscape cost about 4% of the budget, cropping bought the subject 2.9% more pixels and no quality step, and the whole-frame error average understates the subject damage by up to 18.5%.
Resize image to 100KB: what happens to its shape — seven inputs from a 600 × 600 photo to a 24-megapixel portrait, each compressed to 102,400 bytes three times. Pixel retention ranged from 6.65% to 100%, aspect-ratio drift stayed under 0.096%, and every output was identical across the three runs.
Compressing an image for email: does EXIF stay? — a synthetic JPG with known GPS, capture-time, camera and orientation fields was re-encoded three times; two independent readers found no EXIF in the outputs, while a pass-through kept it.
Compress photo to 100KB: what synthetic noise changes — one 3000 × 4500 photograph, four controlled RGB perturbation levels and twelve JPG runs. The PNG inputs grew as synthetic changes increased, while the 100 KiB outputs stayed within a narrow, non-monotonic byte band.