Skip to content

Image Compressor for JPG, PNG and WebP Photos

Pick a quality level, see the new file size and the percentage saved, and download the smaller JPEG or WebP. The picture never leaves your device.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Fill in the settings to see your result here.

Your result appears here instantly — nothing is uploaded.

Quick answers

How do I reduce the file size of an image?
Re-encode it in a lossy format at a lower quality, reduce its pixel dimensions, or both. Dropping JPEG quality to around 70 percent usually removes most of the weight of a camera photo. If that is not enough, resize the picture to the dimensions it will actually be shown at.
What JPEG quality should I use?
Between 70 and 80 percent suits most photos: the file is far smaller and the difference is hard to see at normal viewing size. Use 85 to 95 for images that will be edited again or printed. Below 50, blocky artefacts show around edges and text.
Does compressing an image reduce its quality?
Yes, with JPEG and lossy WebP. Fine detail is discarded to save space and cannot be recovered from the compressed file. At moderate settings the loss is hard to notice, but keep the original if you may need it again.
Is WebP smaller than JPEG?
Usually, at a similar visual quality, which is why it is offered here as the smaller option. The exact saving depends on the picture. Every current browser displays WebP, but some older software and upload forms still accept only JPEG or PNG.
Can I compress an image to an exact size such as 100 KB?
Not automatically. This tool has no target-size field. Lower the Quality slider one step at a time and watch File size in the Details panel. If the lowest quality you can accept is still too large, reduce the pixel dimensions first and compress again.
Why did my compressed file come out bigger?
The source was already compressed harder than the quality you chose, so re-encoding added data instead of removing it. The Saved line then shows 0 B. Lower the Quality slider, try WebP, or keep the original file.

About Image Compressor

This image compressor makes a picture file smaller by re-encoding it as JPEG or WebP at a quality you set between 5 and 95 percent. The default is 70 percent JPEG. The pixel dimensions stay exactly the same; only the amount of detail kept per pixel changes. After each run the Details panel shows the new file size, the original size and how much was saved, as a size and as a percentage, so you can move the slider until the trade looks right. Compression is lossy, and it happens in your browser, so the file is not sent to a server.

JPEG and WebP quality settings: what to expect at each level

The slider maps directly to the encoder quality your browser uses. Results vary by picture, so treat this as a starting point and check the preview.

QualityTypical lookGood for
90 to 95Visually the same as the source for most photos; modest savingImages that will be edited again, print files, product close-ups
80 to 85Differences only visible when zoomed in and compared side by sidePortfolio and hero images, photos with fine texture
70 to 75Clean at normal viewing size; the tool's default rangeGeneral web photos, blog images, email attachments
55 to 65Slight softness; faint halos around sharp edgesThumbnails, listing photos, previews
40 to 50Visible blocks in skies and gradients, fuzzy textSmall previews where size matters more than looks
5 to 35Heavy blocking and colour bandingPlaceholders and tests only

No file sizes are quoted here because they depend entirely on the image: a busy, detailed photo keeps more data at any setting than a plain one.

What happens to each file type when you compress it

Source fileOutput as JPEGOutput as WebP
JPEG photoRe-encoded at the chosen quality; smaller if the setting is below the original'sRe-encoded as WebP, usually smaller again
PNG photo or screenshotConverted to lossy JPEG, often a very large saving for photosConverted to lossy WebP
PNG with transparencyTransparent areas are filled with whiteTransparency is kept
WebPConverted to JPEG; may grow if the source was heavily compressedRe-encoded at the chosen quality
Animated GIFFirst frame only, as a still imageFirst frame only, as a still image

There is no PNG output. A file that must stay lossless needs a dedicated PNG optimiser instead. WebP output relies on the browser's own encoder: a browser that cannot write WebP produces a PNG instead, usually larger than the source, so check the Format line in the Details panel.

How to get an image under a size limit

Upload forms and email often set a ceiling such as 100 KB, 500 KB or 2 MB. Work through these in order and stop when File size is below the limit.

  1. Compress at 70 percent JPEG and read File size.
  2. If the form accepts WebP, switch Output format to WebP at the same quality and compare.
  3. Step the quality down by 5 at a time to about 50, checking the preview each time.
  4. Still too large? Reduce the pixel dimensions with the Image Resizer, for example to 1600 pixels on the long side, then compress the resized copy.
  5. For a strict limit on a document scan or ID photo, crop away empty margins before resizing. Fewer pixels always means fewer bytes.

Why a PNG barely shrinks until you change its format

PNG is lossless. It stores every pixel exactly, and its size depends on how repetitive the picture is, not on a quality setting. A screenshot with large flat areas is small as a PNG. A photograph has almost no repetition, so the same photo saved as PNG is often several times the size of a good JPEG.

That is why this tool always writes JPEG or WebP. For a photo that arrived as a PNG, switching format does most of the work before the slider is touched. For a logo, chart or screenshot with sharp text, the trade is worse: lossy encoding puts faint halos around hard edges, and the saving is smaller. Check the preview at full size before replacing a crisp PNG with a JPEG.

Re-encoding also drops the embedded metadata, such as camera model, capture time and GPS position, because only the pixels are redrawn. That saves a little space and removes location data from photos you plan to share.

Reading the Details panel after a run

The Saved line is the original size minus the new size, with the percentage rounded to a whole number.

A photo that shrinks

Original size 4.00 MB, new File size 1.00 MB

Saved shows 3.00 MB (75%). Dimensions are unchanged and Format shows JPEG or WebP.

A file that was already small

A JPEG saved at low quality, re-encoded at Quality 90

The new file is larger than the source, so Saved shows 0 B with the hint that the original is already smaller than the recompressed version.

Keep the original in this case, or lower the slider.

A transparent PNG logo

Output format JPEG

The logo appears on a white background, because JPEG cannot store transparency. Choose WebP to keep the transparent areas.

Step by step

  1. 1

    Under Image, choose a JPEG, PNG, WebP or other picture file up to 30 MB.

  2. 2

    Set Output format to JPEG (best compression) or WebP (smaller, modern browsers).

  3. 3

    Move the Quality slider. It runs from 5 to 95 percent in steps of 5 and starts at 70.

  4. 4

    Read File size, Original size and Saved in the Details panel, and look closely at the preview around edges and text.

  5. 5

    Download the result. It is saved as the original name with -compressed added, ending in .jpg or .webp.

Answers to common questions

Is my photo uploaded when I compress it?
No. The file is decoded and re-encoded by the canvas feature in your browser, and the smaller copy is created on your device. Nothing is sent to a server.
Does compression change the width and height of my image?
No. The output has the same pixel dimensions as the source. To change dimensions, use the Image Resizer, ideally before compressing.
Should I resize or compress first?
Resize first. Compressing the final-size picture means the encoder only spends bytes on pixels that will be seen, and you avoid re-encoding a lossy file a second time.
Can I compress several images at once?
No. The tool handles one file per run. Download the first result, then choose the next file.
What is the largest file I can compress?
30 MB. Larger files are rejected with a message stating the file's size and the limit. Very large pixel dimensions can also hit the memory limits of a phone browser.
Will compressing the same JPEG again and again keep shrinking it?
Only slightly, and each pass adds new artefacts on top of the old ones. Go back to the original and compress once at a lower quality instead.
Why is the quality slider capped at 95?
The slider in this tool stops at 95. The last few points of JPEG quality add a lot of bytes for very little visible gain, so they are rarely useful for shrinking a file. If you need a near-lossless copy, use the Image Converter on this site, whose quality control goes up to 100.
Does the compressed file keep its EXIF data?
No. Camera settings, timestamps and GPS coordinates are not carried into the new file, because the picture is redrawn from its pixels alone.

Looking for something else? Browse all image tools or see every tool.