Image Compressor – Reduce JPG, PNG and WebP File Size

Drop in one photo or a whole folder of them, choose a quality and, if you like, a maximum width.

Lower means a smaller file. 70 to 80 looks the same as the original for most photos.

Wider images are scaled down to this width, keeping their proportions. Smaller ones are left as they are.

A PNG keeps every pixel, so it only gets smaller when it is resized. WebP or JPG make it much lighter.

Drop images here, paste one, or click to choose

JPG, PNG, WebP, AVIF or BMP, as many as you like

Your images never leave your device: everything happens in this browser tab, nothing is uploaded.

The compressor shows each file before and after with the percentage saved, lets you compare the two side by side, and gives you a download per file or all of them in one ZIP. It is handy when a job application portal, a school form or an email provider rejects anything over a few megabytes. Your images never leave your device: the work happens in this browser tab and nothing is uploaded.

How it works

Each file is decoded by your browser with createImageBitmap, which also turns phone photos upright using their EXIF orientation tag. If you set a maximum width and the image is wider, it is scaled down with its proportions kept. Large reductions are done in halving steps with high quality smoothing, because one big jump would skip pixels and leave jagged edges. The image is then saved again with the browser's own JPEG or WebP encoder at the quality you chose, from 10 to 95 (75 by default). The quality number controls how much fine detail the encoder may throw away: lower numbers give smaller files and, eventually, visible blocks. A JPEG stays a JPEG and a WebP stays a WebP. PNG is lossless, so by default it stays PNG and only gets smaller when it is resized. You can instead turn PNGs into WebP, which keeps transparency, or JPG, which puts a white background behind transparent areas. BMP and HEIC files are saved as JPG, and GIF as PNG (only the first frame of an animation). If the new file is not smaller than the original, the tool keeps the original and labels it, so you never download a "compressed" file that weighs more. Saving through the canvas also drops metadata such as the camera model and GPS location. Sizes are shown in decimal units, where 1 kB is 1000 bytes and 1 MB is 1,000,000 bytes, as on a Mac or a phone.

Worked example

Say you want to attach a phone photo to an online form that accepts files up to 1 MB. The photo is 4032 by 3024 pixels and weighs 3.48 MB. You set the quality to 75 and the maximum width to 1920. The width is more than twice 1920, so the tool first halves the image to 2016 by 1512, then makes one last step to 1920 by 1440, keeping the 4:3 shape. The browser then encodes it as a JPEG at quality 75. If the result is 612 kB, the list shows 3.48 MB → 612 kB and 82.4% smaller: 3,482,112 bytes minus 612,000 bytes is 2,870,112 bytes saved, and that divided by the original size is 0.824. The file is saved with "-compressed" added to its name, and it now fits the form with room to spare.

Which quality to choose

The quality number tells the JPEG or WebP encoder how much detail it may drop. These are good starting points; use Compare to check the result before you download it.

QualityGood for
90–95Prints, portfolios and photos you will edit again
80–85Photos on a website or in an online shop
70–75Email attachments, forms and blog images: the usual sweet spot
50–60Thumbnails and previews, where small matters more than detail
10–40Only for tiny previews: blocks and smudges become visible

Frequently asked questions

Are my images uploaded to a server?

No. The files are read, resized and encoded inside your browser tab. Nothing is sent anywhere, and closing the tab discards everything.

What quality setting should I use?

For photos, 70 to 80 usually looks the same as the original at a fraction of the size. Use 85 or more for images you will print or edit again, and 50 to 60 for small thumbnails. Use Compare to check before you download.

Why doesn't my PNG get smaller?

PNG is lossless, so the quality slider has nothing to throw away. A PNG only shrinks when you lower its width. For a big saving, choose to convert PNGs to WebP (keeps transparency) or JPG.

What happens if the compressed file is bigger than the original?

It is not offered. When re-encoding does not make a file smaller, which happens with images that are already well compressed, the tool keeps the original and says so in the list.

Does compressing remove EXIF and GPS location data?

Yes. The image is redrawn on a canvas and saved fresh, so camera details, the date taken and GPS coordinates are not carried over. The photo is turned upright first, so it still displays the right way.

Can I compress several images at once?

Yes. Drop as many as you like; they are processed one after another, and Download all puts every result in one ZIP file. Changing a setting reprocesses the whole list.

Is WebP smaller than JPG?

Usually, yes: at the same visible quality a WebP is often around a quarter smaller than a JPEG. Every current browser shows WebP, but some older programs and upload forms only accept JPG.