Image Compressor

Shrink and resize images without uploading them anywhere.

Image Compressor tool

Your image is processed inside this page. It is never uploaded to a server.

About the Image Compressor

Large photos slow down websites, fill up phone storage and get rejected by upload forms with strict size limits. This image compressor shrinks JPG, PNG and WebP files in your browser using two controls: a quality slider that decides how much fine detail is simplified, and an optional maximum width or height that removes pixels the image does not need. A side-by-side preview and the size saved help you find the point where the file is small but still looks right. For a fixed target, such as a form that demands under 50 KB, use Compress Image to 50 KB, and for exact dimensions try the Image Resizer.

All of the work happens in your browser. Your picture is loaded onto a canvas, scaled and re-encoded on your own device, then offered back as a download, without ever being sent anywhere. That makes it safe for family photos, screenshots that show private details and images belonging to clients, and it also means the speed depends on your own device rather than on a busy server.

Before saving, you can study the two versions next to each other, read off their weights in kilobytes and see the reduction as a percentage, then judge whether any softening is acceptable. Three output formats are offered, and WebP generally wins on size while looking just as good, with support in all modern browsers. Trying two or three quality settings on the same picture is the quickest way to find the smallest file that still looks right.

How to use the Image Compressor

  1. Add a pictureBrowse for a photo or pull it into the marked area; the three common web formats are accepted.
  2. Pick a quality levelMove the slider; around 0.75 suits most photos, while text-heavy images need a higher value.
  3. Shrink the dimensions if usefulSet a largest permitted width or height; the other side adjusts itself so nothing looks stretched.
  4. Compare, then saveLook closely at faces, text and fine textures in the preview, check the saving, then download the smaller file.

Image Compressor features

  • Processing in your browser with no upload
  • Save as JPEG, WebP or PNG
  • Quality slider with an instant preview
  • Optional size cap that preserves the shape of the picture
  • Weight before and after, plus the reduction as a percentage
  • Side-by-side comparison before downloading
  • Drag-and-drop file selection

Common uses

  • Making website photos load faster
  • Meeting the kilobyte limit of a job portal or visa form
  • Lightening screenshots for an email or helpdesk message
  • Preparing product shots for an online shop
  • Reducing images that are too private to upload to an online service

Image compression explained: smaller files without visible quality loss

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Images are usually the heaviest part of a web page, an email or a document. A single unedited phone photo can weigh 3 to 6 MB, while the same picture looks identical on screen at 200 to 400 KB. Compression closes that gap. This guide explains how image compression works, how to choose a quality setting, and how to get small files that still look sharp.

Two kinds of compression

Lossless compression shrinks a file without changing a single pixel. PNG uses it, which is why screenshots and graphics stay perfectly crisp. Savings depend on the image: flat colours and large plain areas compress well, while photos barely shrink.

Lossy compression removes detail the eye is unlikely to notice: tiny variations in colour, fine texture in shadows, sharpness at the pixel level. JPG and lossy WebP work this way. Savings are dramatic, often 80 to 90 percent for photos, and at sensible settings the difference is invisible at normal viewing size.

What the quality slider really means

The quality setting, usually from 1 to 100, controls how aggressively detail is discarded. It is not a percentage of the original quality, and the relationship with file size is not linear.

QualityTypical result for a photoGood for
90 to 100nearly lossless, large filesarchiving, printing
75 to 85no visible loss at normal sizewebsites, email, sharing
60 to 70slight softness on close inspectionthumbnails, previews
below 50blocky artefacts around edgesonly when size is critical

For most photos, a setting around 75 to 80 is the sweet spot: the file shrinks dramatically and nobody can tell the difference without zooming in.

Resize first, then compress

Pixel dimensions matter more than quality settings. A 4000 x 3000 photo has 12 million pixels; a 1600 x 1200 version has under 2 million, about one sixth as many, and still fills a laptop screen. Reducing dimensions with Image Resizer before compressing often saves more than any quality setting, and it avoids the artefacts that come from squeezing a huge image into a tiny file.

Typical target widths:

  • Website content images: 1200 to 2000 pixels wide.
  • Email attachments: 1600 to 2000 pixels on the long side.
  • Thumbnails: 300 to 600 pixels.
  • Social media: the platform's recommended size, such as 1080 pixels wide for Instagram.

Choosing the right format

The format can matter as much as the setting. Photos belong in JPG or WebP. Screenshots, logos and graphics with text belong in PNG or lossless WebP, because lossy compression smears sharp edges. WebP generally produces files around a quarter to a third smaller than JPG at similar visual quality, and every modern browser supports it. To switch formats, use Image Format Converter.

How to judge quality honestly

The before-and-after comparison is your friend, but compare fairly:

  1. View both versions at the size people will actually see them, not zoomed to 400 percent.
  2. Look at areas with fine detail, such as hair, foliage and text, where artefacts appear first.
  3. Check smooth gradients, such as skies, for visible bands of colour.
  4. Look at sharp edges against plain backgrounds for halos or blocky fringes.

If you cannot see a difference at normal size, the compressed version is good enough.

Why compressing twice makes things worse

Every time a JPG is opened and saved again with lossy compression, a little more detail is lost. Repeated saving can build up visible blockiness. Always compress from the best original you have, keep that original safe, and if the result is too large, compress the original again with a lower setting rather than compressing the compressed copy.

Compressing for strict size limits

Application forms often set hard limits, such as 50 KB or 100 KB per photo. In those cases quality is a means to an end: you need the best picture that fits. Dedicated tools such as Compress Image to 100KB and Compress Image to 50KB search for the highest quality that stays under the limit, adjusting size when needed, which is much faster than guessing settings by hand.

Compression and website speed

Large images slow pages down, and page speed affects both visitors and search rankings. Google's Core Web Vitals measure how quickly the main content of a page appears, and an oversized hero image is one of the most common reasons for a poor score. Serving images at the size they are displayed, compressed sensibly, and in a modern format such as WebP is one of the easiest speed wins on any site.

Metadata takes space too

Photos from cameras and phones carry EXIF metadata: camera settings, dates and sometimes GPS coordinates. It is usually only a few kilobytes, but it can reveal where a photo was taken. If privacy matters, strip it with Remove EXIF Data before sharing.

Privacy

This compressor works inside your browser. Your photos are never uploaded; they are compressed on your own device and saved straight back to it, which also makes the process fast for large batches.

Further reading: How to Compress a PDF Without Losing Quality and JPG vs PNG vs WebP: Which Image Format Should You Use?.

Frequently asked questions

Do my pictures get uploaded to your server?

No. Your browser reads the file, processes it on a canvas and saves the result locally. Nothing crosses the network, which is why the compressor keeps working even if you go offline after the page has loaded.

Which quality setting is best?

Photographs generally look unchanged anywhere from 0.7 to 0.8 while shrinking dramatically. Screenshots, logos and graphics with flat colours and crisp edges need a higher value or PNG output to avoid smudged details.

Why is my PNG bigger after compressing?

PNG is already lossless, so saving it again seldom helps and can even add bytes. For photos and screenshots, choose JPEG or WebP instead; keep PNG for images that need transparency or perfectly sharp flat colour.

Is the camera information removed?

Yes. Re-encoding through a canvas drops all metadata, including camera details and any GPS location. That usually protects your privacy, although it also removes orientation and copyright fields.

Should I save as WebP or JPEG?

WebP normally gives a smaller file at the same visual quality and works in every modern browser. JPEG remains the safer pick for ageing desktop software or for recipients whose systems you do not know.

Is there a maximum file size?

There is no fixed cap; what matters is how much memory your phone or computer can give the tab. Very large files from professional cameras may be slow to handle on an older phone.