Compress Image

Make JPG, PNG and WebP pictures smaller in your browser, to a file size you choose such as 100 KB or 50 KB, or by a quality setting. Add one file or a batch. Nothing is uploaded.

Updated by Khokhar Sab

How do I compress an image online?

Press Choose pictures, or drop or paste files, and leave Compress by on Target file size. Enter a size such as 100 KB, or press one of the preset buttons, then press Compress and Download. The tool finds the best quality that fits under the number. One picture arrives as a single file and several as a ZIP.

  1. Press Choose pictures, drop files on the page, or paste a copied picture with Ctrl+V.
  2. Enter the size under Make each file smaller than, or press 50, 100, 200 or 500 KB. Or switch Compress by to Quality setting and pick a number.
  3. Leave Format on keeping each picture's format, or pick JPG or WebP, which shrink best.
  4. Press Compress, then Download. The result list shows each picture before and after, the quality used and a difference score.

To change the pixel size yourself, for example to exactly 1200 pixels wide, use Resize Image. To make a PDF smaller instead, use Compress PDF. To switch formats, use the Image Converter.

How do I compress an image to 100 KB or 50 KB?

Enter 100 or 50 as the target in KB and press Compress. The tool saves the picture at quality 95, then 40, then searches between them for the highest quality that fits. If quality 40 is still too big, it shrinks the pixels in 1 percent steps until the file fits. Both steps run on your device.

The 1280 x 854 test photo run through the tool's own target search. Difference is the average change per color channel against the same photo at that pixel size (0 is identical, 255 the most possible). Measured 2026-10-18 in src/tools/imgsize/sizes.bench.test.ts.
FormatTargetQuality chosenPixelsFile sizeDifference
JPG500 KB931280 x 854483 KB2.4
JPG200 KB591280 x 854199 KB6.15
JPG100 KB401075 x 71799 KB6.59
JPG50 KB40730 x 48749 KB7.68
WebP500 KB951280 x 854463 KB1.76
WebP200 KB621280 x 854198 KB4.44
WebP100 KB401114 x 74399 KB5.39
WebP50 KB40742 x 49550 KB6.06

Up to 200 KB the full 1280 x 854 pixels stayed (200 KB needed JPG quality 59). Below that, quality alone ran out: JPG quality 40 was still about 153 KB, so 100 KB took the pixels down to 1075 x 717 and 50 KB to 730 x 487. Each search took 9 to 10 test saves. If you would rather keep the original dimensions and accept a bigger file, turn off the pixel reduction box; the tool then stops at quality 40 and says it could not reach the target.

Should I reduce the pixel size or the file size?

Change whichever the form asks for. A pixel limit means width and height, so use the resizer. A size limit in KB or MB means bytes, so use this page. Bytes depend on both pixel count and quality, which is why the target search can lower either one.

The web.dev guide to choosing the correct level of compression says finding the best setting means weighing format, content, quality and pixel dimensions together, which is the search this tool automates. In our test, the 100 KB result kept 84 percent of the original width and height, and the 50 KB result kept 57 percent. A picture that is already small in pixels, such as a 400 pixel thumbnail, has little left to give: its file was 32 KB at quality 80. For a particular pixel size first, see Resize Image.

Is JPG or WebP better for a smaller file?

WebP, at the same quality number. In our test, quality 80 gave 265 KB as WebP and 298 KB as JPG, 11 percent smaller, with less error. JPG still opens in every program and upload form, so pick it when the file must work everywhere. Use WebP for web pages.

The 1280 x 854 test photo at full size, saved at seven quality settings. Error is the average change per color channel against the original (0 to 255). Measured 2026-10-18.
QualityJPG sizeJPG errorWebP sizeWebP error
95556 KB2.02463 KB1.76
90417 KB2.9371 KB2.2
80298 KB4.27265 KB3.29
70239 KB5.27215 KB4.11
60202 KB6.08195 KB4.52
50176 KB6.72175 KB4.98
40153 KB7.43151 KB5.67

Quality numbers from different formats are not equal measures, so the table shows size and error side by side. At the 100 KB target, WebP kept 1114 x 743 pixels where JPG kept 1075 x 717. Google's WebP page reports lossy WebP files 25 to 34 percent smaller than comparable JPEGs at equivalent quality, and our figures at the same quality number showed smaller gaps, from 1 to 17 percent depending on the setting. Quality numbers do not mean the same thing in two encoders, so compare sizes at similar error instead. The catch is reach: some older programs and forms still reject WebP, and the WebP to JPG page covers the way back. The Google WebP overview has the full comparison.

How much quality will I lose when I compress an image?

It depends on the setting. High qualities change pixels so little that the eye does not notice, and quality 40 shows soft detail and blocky edges. Each result row shows a difference score and a plain label, from Not visible to Clearly visible, measured against your original, so you see the cost before you download.

The score is the average change per color channel (0 is identical, 255 the most possible) between your original and the result on a 512 pixel preview. It is labeled Not visible under 1.5, Hard to see under 3, Visible up close under 6 and Clearly visible above that. The preview averages some compression noise away, so the score is a guide and not a verdict; always look at the picture beside the original in the result panel. In our grainy test photo, JPG error was 2.02 at quality 95 and 7.43 at quality 40, so the lowest setting added about 5.4 more levels of error while the file fell from 556 KB to 153 KB.

Can I compress a PNG image?

Only a little through this tool, and only by shrinking the pixels. PNG is lossless, so it has no quality setting to lower, and this tool does not reduce its colors. Converting the picture to JPG or WebP usually gives a far smaller file when the picture is a photo.

Our flat-color chart was 36.9 KB as a PNG and 28.2 KB as a quality 75 JPG, so even a flat graphic shrank slightly as JPG, at the price of soft edges around text. With a 20 KB target, the PNG search had to reduce the chart to 870 x 581 pixels (68 percent) to reach 19.9 KB. If the picture has transparency you need to keep, choose WebP in the Format menu: it keeps see-through areas and compresses far better than PNG for photos, and Google reports lossless WebP 26 percent smaller than PNG. A tool that cuts a PNG's colors to 256 can shrink it more, but it changes the colors; this one does not.

Does compressing an image remove its metadata?

Yes, for every file the tool re-saves. The browser draws the picture on a canvas and writes a new file, so the location, camera model and time stored in the original's EXIF block are not copied. The camera turn is applied first, so the picture stays upright. A file already under your target is left unchanged, with its metadata.

The result list marks any file that was left alone. If you need the location removed from a file that was already small enough, set the target a little lower, or use Resize Image, which always re-saves. Color profiles are not kept: the result uses the browser's standard screen colors.

Limits

  • Quality range: the target search uses qualities from 95 down to 40. Below 40, JPG and WebP pictures show obvious damage, so the tool shrinks pixels instead, or stops if you turned that off.
  • PNG: lossless. Only the pixel size can shrink, and no color reduction is applied.
  • Targets that cannot be met: a very small target for a large picture can fall below what the smallest allowed size can reach (10 percent of each side). The result row then says so and gives the smallest file it made.
  • Accuracy: sizes use 1 KB = 1,024 bytes, as file managers show. The final size is read from the file your browser actually saves; the tables above come from a desktop encoder and differ a little.
  • Animation: a GIF is compressed as its first frame, and the result is a still picture.
  • Size: pictures over about 16 megapixels are scaled down to fit what phone browsers can draw. The longest side stops at 8,192 pixels.
  • Formats: opens JPG, PNG, WebP, AVIF, GIF, BMP and HEIC. SVG and TIFF are not opened; see SVG to PDF and TIFF to PDF.

Frequently asked questions

Is the image compressor free?

Yes. There is no sign-up, no watermark and no limit on the number of pictures.

Are my pictures uploaded?

No. Each picture is opened, compressed and saved by your own browser. The page has no upload step, so a private photo never leaves your device.

Can I compress many images at once?

Yes. Add them all and set one target. Each picture gets its own best quality for that target, and they download together as one ZIP file.

What if my picture is already under the target?

It is left exactly as it is, and the result list says so. That file keeps its camera details, because nothing was re-saved.

Does it work on a phone?

Yes. Choose pictures from your photo library or files. A phone handles about 120 MB at once, so send very large batches in parts.

How this tool was built and tested

Embed this tool on your site

Add this compress image to a blog, class page or help center for free. Paste the code into an HTML block. It runs in the visitor's browser, so nothing they enter reaches us or you. Please keep the credit line under the tool: Free Compress Image by iLoveDesk.