↑↓ to move ↵ to open Esc to close Browse all tools

Image Compressor

Reduce the file size of photos for websites, email and chat. Free, no signup, and your images never leave your device.

Embed

Compress images

80
Balanced. A good default for websites and email.
Output format
Wider images are scaled down. Smaller ones stay as they are.

Your images are compressed by your own browser. Nothing is uploaded.

Saved you time? Buy me a coffee

Free printableVision Board TemplateA grid of 6 to 12 tiles for your own photos and words, printed as a PDF. Hand-checked listFree Stock Photo SitesPhoto sites and open archives where you can download images for free, with the license terms checked on each site.

Image Compressor by Freebiefy, free online tools · Privacy · Legal notice

Embed this tool on your site

Paste this code into your page. The tool runs in the visitor's browser, free and without signup. The height adjusts to the content. All tools you can embed

How image compression works

Photos from phones and cameras store far more detail than most screens can show (and once the file is small, give it an alt attribute: how to write alt text). Compression drops the detail your eye is least likely to miss and stores the rest more efficiently. That is how a photo can get much smaller without a difference you would notice on a screen. Gregory Wallace, in his 1991 paper on the JPEG standard, rated JPEG photos at 1.5 to 2 bits per pixel as usually indistinguishable from the original, while an uncompressed color photo takes 24 bits per pixel. JPG and WebP let you decide how much to drop with a quality setting.

PNG works differently. It is lossless, so it keeps every pixel and has no quality setting. That makes PNG a good fit for screenshots, logos and graphics with flat colors, and a poor fit for photos.

This tool decodes each image in your browser, draws it on a canvas, scales it down if you set a max width, and encodes it again. If the new file is not smaller than the original, you get the original back, marked as already optimized. Where your browser supports it, this work runs in a background thread, so the page stays responsive while a large batch is compressed.

Re-encoding also removes metadata such as EXIF data, camera details and GPS location. That is useful for privacy when you post photos online. Files marked as already optimized are your untouched originals and keep their metadata. If you need that information, keep your original files.

What the quality setting does

The slider runs from 40 to 100 and is passed to the JPG or WebP encoder. A lower number lets the encoder throw away more fine detail, which makes the file smaller. The loss is not spread evenly: smooth areas such as skies, skin and gradients show it first as faint blocks or banding, while busy textures hide it well. The exact saving depends on the photo, so the result list shows the real before and after size of every file; move the slider and the numbers update.

SettingWhat you getGood for
40 to 59Smallest files. Fine details and smooth gradients may look blocky.Tiny previews, placeholders, strict upload limits
60 to 74Small files, with soft detail on close inspection.Thumbnails, gallery previews, chat
75 to 89Balanced. Hard to tell from the original at normal size.Website images, email, social posts
90 to 100Close to the original. Files stay larger.Portfolio images, print previews, photos you will edit again

Two things the slider cannot do. It does not change PNG files, because PNG has no quality setting; switch the output to WebP or JPG to shrink a PNG photo. And it does not change the pixel size: a 4,000 pixel wide photo stays 4,000 pixels wide. For a photo that will only ever be shown at 1,200 pixels, the max width option saves far more than any quality setting, because it drops the pixels that would never be seen.

JPG, WebP or PNG: which one to pick

JPGWebPPNG
CompressionLossy, quality settingLossy with a quality setting, or losslessLossless only
TransparencyNoYesYes
File size for photosSmallSmallest: Google measured lossy WebP 25 to 34 percent smaller than JPG at the same SSIM qualityLarge
File size for logos and screenshotsNot recommendedSmall: lossless WebP is 26 percent smaller than PNG in Google's figuresMedium
Opens inEverythingChrome, Safari, Firefox, Edge and Opera; some older apps and upload forms reject itEverything
Pick it forPhotos you send to people or upload to formsImages on your own websiteScreenshots, logos, icons and graphics with text

The sizes in the table come from Google's own WebP comparisons: the 25 to 34 percent figure is from a study that matched WebP and JPEG files at the same SSIM score on four image sets, and the 26 percent figure compares lossless WebP with PNG. Google also notes that a lossy WebP with a transparent background is typically three times smaller than the same image as PNG. Your own files will land somewhere near those numbers, not exactly on them. If you compress for a website, keep a JPG or PNG copy for places that cannot show WebP, or let the WebP converter go both ways in a batch.

Need a file under a fixed size?

Upload forms often set a limit in kilobytes rather than a quality. Instead of guessing with the slider, let Compress Image to Target Size search for the best quality that stays under your number. The most common limits have their own page with the size already filled in: 20 KB, 50 KB, 100 KB, 200 KB, 500 KB and 1 MB.

Sending photos by email? The guide email attachment size limits explains why a 20 MB batch can bounce off a 25 MB limit and what size to aim for. Not sure which images slow your website down? The website speed test lists every image on a page with its size and format, so you know which files to compress first.

How to compress an image

  1. 1Drop your JPG, PNG or WebP files on the upload area, or tap it to pick files from your device.
  2. 2Choose a quality, an output format and, if the images are very large, a max width. The results update right away.
  3. 3Check the new sizes, then download single images or all of them at once as a ZIP file.

Sources

Frequently asked questions

Are my images uploaded to a server?

No. Your browser reads, resizes and re-encodes every image on your own device. The files never leave your computer or phone.

Which quality setting should I use?

Start with 80. It keeps photos looking sharp while making the file much smaller. Try 60 or 70 for thumbnails, and go up to 90 if you see blocky patches in skies or smooth gradients.

Should I convert my images to WebP?

For websites, usually yes. Google measured lossy WebP files 25 to 34 percent smaller than comparable JPG files at equal quality, and all current major browsers display them. Keep JPG when you send images to people or apps that may not open WebP.

Why did my PNG not get smaller?

PNG is lossless and has no quality setting, so the slider leaves it alone. The compressor still re-encodes it, and if that is not smaller you get the original back. To shrink a PNG photo, switch the output format to WebP or JPG. Keep PNG only for screenshots, logos and graphics with sharp edges.

Does compressing reduce the pixel size of my photo?

Not unless you pick a max width. The quality setting changes how much detail is stored, not how many pixels there are. If a photo is wider than the max width you choose, it is scaled down to that width and the height follows in proportion; smaller images are left as they are.

Can I compress a photo to a fixed size like 100 KB?

Yes, with the Compress Image to Target Size tool linked in the guide below. You enter the limit, and it tries quality settings until the file fits just under it. There are ready-made pages for 20, 50, 100, 200 and 500 KB and 1 MB.

Is there a limit on file size or the number of images?

There is no fixed limit. Images are compressed one or two at a time, so a large batch takes a little longer. Very large photos can fail on phones with little memory. If that happens, pick a max width and try again. An animated WebP keeps only its first frame, so compress animations with another tool.