Compress images to get under a size limit

Type the size you need — 20 KB, 100 KB, 2 MB — and get every file back at or under it. Or use the quality slider and watch the saving on each file. Nothing is uploaded, so there is no size limit imposed by anyone else's server.

Drag & drop images to compress

or — you can paste too

HEIC, HEIF, JPG, PNG, WebP, GIF, BMP · up to 40 images

    How to hit a specific target size

    Most people arrive here with a number in mind: a passport photo form wanting under 30 KB, a job portal wanting under 2 MB, a forum capped at 500 KB, an email attachment limit. Switch the tool to Target size and you can type that number directly:

    1. Choose Target size, then pick a preset (20 KB up to 1 MB) or type your own limit in KB or MB.
    2. Drop the files in and press Convert All.
    3. Each file comes back at or under your limit — not exactly on it, since the limit is a ceiling. The result size is shown against every file.

    Behind the scenes it searches for the highest quality that still fits, so you get the best-looking file the limit allows rather than an arbitrarily crushed one. If quality alone cannot get there, it shrinks the dimensions a step at a time and shows you the new width and height on that file. Files already under the limit are left untouched instead of being recompressed for no reason — except an iPhone HEIC, which is still turned into a JPG, and a photo whose metadata you have asked to remove.

    The kept metadata counts towards the limit too. When capture date, camera and GPS are carried into a JPG, their bytes are included in the size check, so the downloaded file genuinely fits.

    If you would rather steer it yourself, Quality mode still works the old way: convert, read the size, move the slider, convert again.

    What 10 KB, 20 KB, 50 KB and 100 KB actually look like

    The same 830 KB, 12-megapixel phone photo (3024×4032), run through Target size mode in Chrome with this tool:

    Result for each size limit, from one 3024×4032 photo
    LimitResultDimensionsTime
    10 KB8.9 KB886×11823 s
    20 KB18.7 KB1385×18463 s
    30 KB27.7 KB1732×23083 s
    50 KB49.7 KB2419×32252 s
    100 KB96.9 KB3024×4032 — full size1 s
    200 KB198.6 KB3024×4032 — full size1 s

    From 100 KB upwards a modern phone photo fits at full resolution — only the JPG quality drops. Below about 50 KB there are simply too many pixels to describe in so few bytes, so the tool trades resolution for clarity instead of producing a full-size but smeared image. For the places that ask for 20 KB or less — exam and job application forms, ID photo uploads, signature fields — that is usually what they want anyway: those forms display the photo small, often only a few hundred pixels wide.

    If a form also sets exact pixel dimensions (for example a fixed width and height for a passport-style photo), crop and resize to those first in any editor, then compress here. A smaller starting image reaches a small size limit at a higher quality.

    What the quality slider actually does

    It is not a percentage of the original size, and the relationship is far from linear. Measured on a 3024×4032 photograph with this tool:

    JPG output at each quality setting, from an 830 KB source
    QualitySizeWhat it looks like
    1002,602 KBWasteful — larger than the original for no visible gain
    90699 KBArchive quality, no visible loss
    80337 KBThe sweet spot for most uses
    60189 KBFine for web and messaging; slight softening
    30133 KBVisible blocking in skies and skin tones

    Two things stand out. Dropping from 100 to 90 removes three quarters of the file for no visible cost at all, so quality 100 is essentially never worth using. And below about 60 the savings flatten out while the damage accelerates — from 60 to 30 you save only 56 KB but the image visibly falls apart. There is little reason to go below 60 unless you are desperate.

    The honest limitation: a PNG kept as PNG rarely gets smaller

    This is worth stating plainly rather than letting you discover it. If your file is a PNG and you keep it as a PNG, re-encoding it here will most likely make it larger, not smaller.

    PNG is lossless, so there is no quality dial to turn — that is why the slider disappears when you select PNG. Real PNG optimisers shrink files by reducing the colour palette and applying smarter filtering, which a browser's built-in encoder does not do. In our test, a 7 KB screenshot re-encoded through the browser came back at 35 KB, because the source had been optimised and the browser's encoder had not. In Target size mode, a PNG that stays PNG can only get under the limit by having its dimensions reduced.

    So to actually shrink a PNG, change format. In Target size mode, ticking Allow format change does this for you when needed — it switches the PNG to WebP, never to JPG, so transparency survives. Or pick the format yourself:

    • Screenshots, diagrams, logos, anything with flat colour or transparency → convert to WebP. Our 7 KB screenshot stayed at 8 KB and our transparent logo went from 26 KB to 9 KB, with transparency intact.
    • Photographs accidentally saved as PNG → convert to JPG. This is where the enormous wins are: 8,636 KB down to 337 KB in our test, a 96% reduction.

    Where compression works best

    Photographs are the ideal case. They are full of noise and gradual tonal change, which is precisely the kind of detail lossy compression can discard without your eye noticing. A camera photo will usually take a large reduction without complaint.

    Images containing text are the difficult case. Screenshots, infographics, scanned documents and anything with fine lines degrade in a very visible way — letters develop a grey halo and thin lines go patchy. For these, keep the quality above 85 or switch format rather than compressing harder.

    What this tool does not do

    Being clear about the boundaries, since the biggest saving is often something else entirely:

    • It does not resize to a size you choose. Quality mode never touches dimensions. Target size mode only reduces them as a last resort — in steps of about 20% of the area, and never below 200 pixels on the shorter side. If it still cannot reach your limit, you get the closest result, clearly marked as over target. If you need a specific width, such as 800 pixels for a website slot, resize in an editor first.
    • It does not strip metadata to save space. Exif is a few kilobytes at most, so removing it is not a meaningful size lever. The metadata toggle exists for privacy, not compression — untick it if you're compressing something to share publicly, since GPS tags can reveal exactly where a photo was taken.
    • It does not hit a size exactly. Your number is treated as a ceiling: the result lands at or under it, usually a little below, because encoders decide the final byte count based on image content.

    Related conversions

    Common questions

    Can I compress a phone photo to 20 KB without it looking terrible?

    Yes. In our test a 12-megapixel, 830 KB phone photo came out at 18.7 KB in about three seconds. To get that small the tool reduced it to 1385×1846 pixels rather than crushing the full-size image into blocky noise — still far larger than most forms display. 10 KB also works (886×1182 in our test). Nothing is uploaded at any point.

    What quality setting should I use?

    80 for anything you care about, 60 for web and messaging where size matters more. Quality 100 is never worth it — in our test it produced a 2,602 KB file where quality 90 produced 699 KB with no visible difference. Below 60, savings flatten out while visible damage accelerates quickly.

    Why will this not compress my PNG?

    PNG is a lossless format with no quality setting, and a browser's built-in PNG encoder is weaker than a dedicated optimiser — re-encoding an already-optimised PNG usually makes it bigger. To actually shrink a PNG you have to change format: WebP for graphics and transparency, JPG for photographs. In Target size mode, ticking "Allow format change" switches a PNG to WebP automatically when needed.

    How do I compress an image to a specific size, like 20 KB or 100 KB?

    Switch to Target size mode, pick a preset or type your limit in KB or MB, and press Convert All. Each file comes back at or under that size, at the highest quality that fits. If quality alone is not enough, the dimensions are reduced step by step, never below 200 pixels on the shorter side. Files already under the limit are left as they are, unless they still need converting from HEIC or stripping of metadata.

    Does compressing remove my photo's metadata?

    Not unless you want it to. Capture date, camera and GPS are carried into JPG output while the metadata toggle stays ticked. Untick it if you are compressing something you plan to share publicly and would rather not include location data.

    Can I compress images without losing any quality at all?

    Not with this tool. Genuinely lossless compression requires specialised optimisers that reorganise the file without touching pixels. What you get here is lossy compression, where quality 90 is close enough to the original that the difference is not visible in normal use.

    Will compressing change my image dimensions?

    In Quality mode, never — width and height stay exactly the same. In Target size mode, only when quality alone cannot reach your limit; the new dimensions are then shown next to that file, and the aspect ratio is always kept. If you need a specific width, resize in an editor first.