Image Compressor

Use this tool to compress image files in JPG, PNG or WebP format so they load faster, fit email limits and take up less storage. Choose a quality level, optionally cap the width, and compare the before and after sizes. Everything happens in your browser, so your photos are never uploaded.

  • 100% free
  • No sign-up
  • Runs in your browser
  • Updated
75

Lower means smaller files. 70–80 is a good balance for photos. Applies to JPG and WebP.

Larger images are scaled down to this width, keeping the aspect ratio. Smaller ones are not enlarged.

Key takeaways

  • Quality 70 to 80 typically shrinks a phone JPG to a third or half of its size with no visible difference at normal viewing sizes.
  • Capping a 4032 × 3024 photo at 1920 pixels wide keeps only about 23% of its pixels, which is usually the single biggest saving.
  • PNG is lossless, so the quality slider does nothing until you switch the output to JPG or WebP.
  • Google measures lossy WebP at 25 to 34% smaller than JPG at comparable quality, so pick WebP when the destination accepts it.

How to use the Image Compressor

  1. 1Drop one or more JPG, PNG or WebP images onto the upload area, or click it to choose files.
  2. 2Set the Quality slider. 75 is the default and a good balance for most photos.
  3. 3Pick an output format: keep the original format, or convert to JPG or WebP for bigger savings.
  4. 4Optionally enter a max width in pixels to scale large images down while keeping their proportions.
  5. 5Check each file's original size, new size and percentage saved, compare the previews, then use Download or Download all.

How image compression works

JPG and WebP use lossy compression: they discard fine detail that the eye is unlikely to notice, and the quality setting controls how much is thrown away. At high settings the file stays close to the original; as you lower it, files shrink quickly, and eventually you start to see blocky areas, smeared textures and halos around sharp edges. For most photos, a quality between 70 and 80 removes a large share of the file size with no visible difference at normal viewing sizes.

This tool decodes each image, redraws it on a canvas and encodes it again at the quality you choose. Because it re-encodes the whole picture, a file that was already heavily compressed may not get any smaller. When that happens the tool warns you and offers to keep the original, so you never end up with a worse, larger file.

Why PNG files barely shrink, and what to do instead

PNG is a lossless format. Every pixel is stored exactly, so there is no quality setting to lower, and re-saving a PNG usually gives a file of about the same size or even slightly bigger. That is why the Quality slider has no effect when the output stays PNG.

For large PNG savings, change the output format. Photos and screenshots saved as PNG often become several times smaller as WebP or JPG. Choose WebP if the image has transparent areas, because JPG cannot store transparency and fills those areas with white. You can also switch formats for a whole batch with our image converter.

Reduce dimensions for the biggest savings

File size depends heavily on the number of pixels. A typical 12-megapixel phone photo measures 4032 × 3024 pixels. Setting a max width of 1920 scales it to 1920 × 1440, which keeps only about 23% of the original pixels while still looking sharp on a full HD screen. Combined with a sensible quality setting, this is usually the fastest way to get a photo under an upload or email limit.

Images narrower than your max width are left at their original size, because enlarging cannot add detail. If you need exact dimensions or a social media size, use the image resizer instead.

How to compress a photo to under 1 MB, 500 KB or 100 KB

Upload forms for job portals, visa applications and exam registrations often set a hard limit. File size grows roughly with the number of pixels, so halving the width cuts the pixel count to a quarter and usually shrinks the file by a similar amount. Start with the max width, then fine-tune with the quality slider, and check the new size shown for each file. If you would rather type the limit and let the tool find the settings, use image to target KB.

As a rough guide for phone photos: a max width of 1920 at quality 75 typically lands under 1 MB, 1280 at quality 70 typically lands around 200 to 400 KB, and 800 at quality 60 to 70 usually gets under 100 KB. Busy scenes such as foliage or crowds need more bytes than plain backgrounds, so if a file is still too big, lower the width one more step before dropping the quality below 60.

Choosing settings for common uses

For websites and blogs, WebP at quality 70 to 80 with a max width of 1600 to 2000 pixels gives fast pages and crisp images. For email attachments and messaging, JPG at quality 70 with a max width around 1600 works everywhere. For images you plan to edit again later, keep a high-quality copy, because each lossy save loses a little more detail.

If you are collecting photos into a single document, compress them first and then combine them with JPG to PDF to keep the PDF small.

Worked example

A 12-megapixel phone photo, before and after

A photo straight from a phone camera typically measures 4032 × 3024 pixels and weighs around 3 to 5 MB as a JPG, because phones save at a high quality. Dropped in with the default quality of 75 and no max width, it keeps every pixel and usually comes out at roughly a third to a half of the original size.

Now set a max width of 1920. The photo is scaled to 1920 × 1440, so only 2.76 megapixels remain out of 12.19, about 23%. At quality 75 the result is typically somewhere between 300 KB and 800 KB depending on how much fine detail the scene has, small enough for email, messaging apps and most upload forms, and still sharp on a full HD screen.

Switching the output to WebP with the same settings typically trims another quarter or so. If the photo had come from a screenshot saved as PNG, the difference would be larger still, because the PNG stored every pixel losslessly to begin with.

How a max width shrinks a 12-megapixel photo

The output size, pixel count and share of the original pixels kept when a 4032 × 3024 phone photo is scaled to common max widths. File size falls roughly in line with the pixel count.

Max widthOutput sizeMegapixelsPixels kept
3,840 px3,840 × 2,88011.0690.7%
2,560 px2,560 × 1,9204.9240.3%
1,920 px1,920 × 1,4402.7622.7%
1,600 px1,600 × 1,2001.9215.7%
1,280 px1,280 × 9601.2310.1%
1,080 px1,080 × 8100.877.2%
800 px800 × 6000.483.9%

The original has 12.19 megapixels. Images already narrower than the max width are left at their original size.

Frequently asked questions

Are my images uploaded to a server?

No. Compression runs entirely in your browser using the built-in canvas API. Your files never leave your device, and closing the page discards them. The other image tools on this site work the same way.

What quality setting should I use?

Start at 75. If the result looks fine, try 60 to 70 for smaller files; if you see artifacts in skies, skin or text, move up to 80 to 90. Photos tolerate lower settings than screenshots containing text.

Why is my compressed file bigger than the original?

The original was probably already well compressed, or it is a PNG being re-saved as PNG. Lower the quality, set a max width, or switch to WebP. You can also click Keep original so the download uses your untouched file.

Does compression remove EXIF data such as location?

Yes. Re-encoding through the canvas drops metadata like camera details and GPS location, which is useful for privacy. The photo is rotated correctly first, so it does not appear sideways.

Can I compress iPhone HEIC photos?

Not directly, because most browsers cannot read HEIC, the format iPhones use for photos by default. Convert them first with the HEIC to JPG converter, then compress the JPG files here. Both steps run in your browser, so the photos stay on your device. To avoid HEIC for new photos, open Settings on the iPhone, tap Camera, then Formats, and choose Most Compatible.

Sources

Last reviewed by the ToolsFiesta team.

Related tools