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.
Your file is ready
- Files stay on your device. Nothing is uploaded.
- Free, no sign-up, no daily limit.
- Works with Wi-Fi off once the page has loaded. Check it yourself
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.
- Press Choose pictures, drop files on the page, or paste a copied picture with Ctrl+V.
- 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.
- Leave Format on keeping each picture's format, or pick JPG or WebP, which shrink best.
- 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.
| Format | Target | Quality chosen | Pixels | File size | Difference |
|---|---|---|---|---|---|
| JPG | 500 KB | 93 | 1280 x 854 | 483 KB | 2.4 |
| JPG | 200 KB | 59 | 1280 x 854 | 199 KB | 6.15 |
| JPG | 100 KB | 40 | 1075 x 717 | 99 KB | 6.59 |
| JPG | 50 KB | 40 | 730 x 487 | 49 KB | 7.68 |
| WebP | 500 KB | 95 | 1280 x 854 | 463 KB | 1.76 |
| WebP | 200 KB | 62 | 1280 x 854 | 198 KB | 4.44 |
| WebP | 100 KB | 40 | 1114 x 743 | 99 KB | 5.39 |
| WebP | 50 KB | 40 | 742 x 495 | 50 KB | 6.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.
| Quality | JPG size | JPG error | WebP size | WebP error |
|---|---|---|---|---|
| 95 | 556 KB | 2.02 | 463 KB | 1.76 |
| 90 | 417 KB | 2.9 | 371 KB | 2.2 |
| 80 | 298 KB | 4.27 | 265 KB | 3.29 |
| 70 | 239 KB | 5.27 | 215 KB | 4.11 |
| 60 | 202 KB | 6.08 | 195 KB | 4.52 |
| 50 | 176 KB | 6.72 | 175 KB | 4.98 |
| 40 | 153 KB | 7.43 | 151 KB | 5.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.
Related PDF tools
How this tool was built and tested
- web.dev: Choose the correct level of compression: lossy and lossless compression, and why quality and pixel dimensions both matter
- Google for Developers: WebP, an image format for the Web: Google's size comparison of lossy WebP with JPEG and lossless WebP with PNG
- MDN Web Docs: HTMLCanvasElement.toBlob(): how a browser saves a canvas as JPG or WebP and what the quality value from 0 to 1 does
- MDN Web Docs: Image file type and format guide: what each format suits and where browsers support it
- Test method: 1280 x 854 libheif example photo, run through the tool's own target search and downscaler, saved with sharp (libvips) in src/tools/imgsize/sizes.bench.test.ts, 2026-10-18