Image Compressor
JPG · PNG · WebP · No upload
Drop images here or paste with Ctrl+V. JPG, PNG, WebP, GIF, BMP, SVG, AVIF. Many at once.
Compressed in your browser. Nothing is uploaded.

How to compress an image

  1. Add images: drop them on the box, click it to choose files, or paste a screenshot with Ctrl+V. You can add many at once.
  2. Choose the format: keep the same format, or pick WebP for the smallest files on websites, JPG for photos that must open everywhere, or PNG for a lossless copy.
  3. Choose the quality with the slider, or turn on Target size and type a size such as 100 KB. The tool then finds the best quality that fits.
  4. Resize if the image is bigger than it will ever be shown. A phone photo of 4000×3000 pixels shown 1200 pixels wide on a website wastes most of its bytes.
  5. Check the result with the before and after slider (turn on Zoom 100% to see small details), then download one image or all of them as a ZIP file.

Every change to the settings is applied to all images again at once. The images are processed by your browser and are never uploaded, so private photos stay private.

JPG, PNG, WebP or AVIF: which format makes the smallest file?

FormatTypeTransparencyBest for
WebPLossy or losslessYesWebsites. Usually 25–35% smaller than JPG at the same quality. Works in every current browser.
JPG / JPEGLossyNoPhotos for email, forms and programs that do not accept WebP.
PNGLosslessYesScreenshots, logos, drawings and text with sharp edges. Large for photos.
AVIFLossy or losslessYesEven smaller than WebP, but slow to create. Only some browsers can save it; the option appears above when yours can.
GIFLossless, 256 colorsYes (on/off)Simple animations. Saved here as a still image (first frame).

Lossy means the file gets smaller by dropping details the eye hardly sees. Lossless means every pixel stays exactly the same, so the file cannot get much smaller.

Which quality and size should I use?

UseWidthQualityTypical size (WebP)
Full-screen website photo (hero)1920 px75–80150–350 KB
Blog or article image1200 px75–8060–150 KB
Social media preview (og:image)1200×630 px (exact)80–8550–120 KB
Online shop product photo1000–1600 px80–8580–200 KB
Thumbnail or avatar150–400 px65–755–25 KB
Form upload with a size limitas neededTarget sizeunder the limit, e.g. 100 KB

On screens with high pixel density (most phones and many laptops), an image shown 600 pixels wide looks sharpest when the file is about 1200 pixels wide. Going bigger than 2× rarely helps.

Artifacts show first on sharp edges, text, skies and smooth color areas. If you see blocks or rings around edges at 100% zoom, raise the quality by 5–10.

Why images get smaller, and when they do not

  • Phone and camera photos are saved at high quality (often 90–95) and full size. Re-saving at 80 and resizing usually saves 70–95% with no visible change.
  • Images that are already compressed (for example downloaded from social media) are often already small. Re-saving can make them bigger; the "keep the original" option then keeps the original file.
  • PNG to PNG rarely gets smaller, because the quality slider does not change a lossless file and the browser saves PNG with simple compression. Convert to WebP or resize instead.
  • Screenshots with text look best as PNG or as WebP at a high quality (90+). As JPG, letters get blurry edges.

Privacy: EXIF data and GPS location

Photos from phones carry EXIF data: the camera model, the date and time and often the exact GPS location where the photo was taken. This tool draws the new image from its pixels only, so none of that data is copied to the compressed file. The photo is first turned the right way using its EXIF orientation, so it does not appear sideways.

The color profile is not copied either; images are saved in sRGB, the standard for the web. Photos in a wide color space (Display P3 from newer iPhones) can look a little less vivid afterwards.

Frequently asked questions

Are my images uploaded to a server?

No. The images are opened, resized and compressed by your own browser with the canvas API. Nothing is sent to a server, so the tool also works for private photos and keeps working offline once the page has loaded.

How do I compress an image to 100 KB (or 200 KB, 50 KB)?

Turn on "Target size", type 100 in the KB box and choose JPG or WebP. The tool tries different quality levels and keeps the best one that fits under 100 KB. If even the lowest quality is too big, make the image smaller with Resize, for example a maximum width of 1200 pixels, and it will fit.

Which quality should I use?

For photos, 75 to 85 is a good default: most people cannot see a difference from the original, and the file is often 3 to 10 times smaller. Use 85 to 92 for photos you will print or edit again, and 60 to 70 for thumbnails. Use the comparison slider at 100% zoom to check edges and skies, where artifacts show first.

Why did my PNG get bigger?

PNG is lossless, so the quality slider does not change it, and a browser saves PNG files with simple compression. A PNG made by an optimizer can be smaller than the browser's version. That is why the tool keeps the original file when the result is bigger and nothing else changed. To really shrink a PNG, convert it to WebP (keeps transparency) or JPG (for photos), or make it smaller.

Should I use WebP, JPG or PNG?

WebP is usually 25 to 35% smaller than JPG at the same quality, keeps transparency and works in all current browsers, so it is the best choice for websites. Use JPG when a program or website does not accept WebP. Use PNG for screenshots, logos and drawings with sharp edges and few colors when you need a lossless file.

Does compressing remove EXIF data and GPS location?

Yes. The new file is drawn from the pixels only, so EXIF data such as the camera model, the date and the GPS location is not copied. The photo is turned the right way first, using the EXIF orientation. Only when the original file is kept (because it was already smaller) does its metadata stay.

Can I compress HEIC photos from an iPhone or animated GIFs?

HEIC works only in browsers that can open HEIC, which today means Safari on a Mac, iPhone or iPad; there it is converted to JPG or WebP. Chrome, Edge and Firefox cannot open HEIC. An animated GIF is saved as a still image of its first frame, because the browser cannot write animations.

More tools