Skip to content
WGX

Image Compressor

Make a photo smaller without uploading it anywhere.

Choose a picture

JPEG, PNG or WebP. The file is read by your browser and never uploaded.

Save as

SavedExample

68%

what a picture might save; choose one to see yours

Choose a picture to get started.

Nothing is uploaded

This matters more than the compression does. Every free image compressor that asks you to upload a file receives that file — a photo of a passport, a payslip, a medical form, a child. This page never sends it: your browser decodes the image, redraws it at the size you asked for and encodes it again, all on your own machine.

That claim is worth nothing unless it is checked, so it is: the test suite for this page records the requests this tool makes while an image is processed and fails if one of them could carry the file. The page around the tool loads Cloudflare's analytics script, which counts the visit and never sees the picture; the privacy page lists what it reports.

How to use it

  1. Choose a JPEG, PNG or WebP.
  2. Set the quality. 75 is a good starting point and rarely looks different.
  3. Cap the longest side if the dimensions are the real problem — a 4,000-pixel photo in a form that displays it at 800 is mostly wasted bytes.
  4. Press Compress, check the result, and download it.

The three formats behave differently

This is one tool rather than three, because the file you happen to have does not change the work. What changes is what compression means:

  • JPEG is lossy. The quality setting decides how much detail is discarded, and the loss is permanent. Best for photographs.
  • PNG is lossless. It never discards detail, so a quality setting would be meaningless and the slider is switched off. A PNG shrinks mainly by reducing its color palette or by a stronger lossless compressor, and a browser canvas offers neither — so re-encoding a PNG as PNG often makes it bigger. Save it as WebP instead.
  • WebP is lossy like JPEG but roughly a quarter to a third smaller at the same visual quality, and it keeps transparency. It is the right answer for most files today.

When the result is bigger

It happens, most often with an already-optimized PNG, and it is the point at which this kind of tool usually lies: it shows a new file size, calls it a result and lets you download something worse than what you started with. This page says the file grew, by how much, and suggests what to do instead.

What this does not do

It does not crop, rotate or edit, and it does not process several files at once. It also does not keep metadata: your browser writes the new file from the pixels alone, so location, camera and date details in the original are not carried into the copy you download — the test suite checks that a location written into a file does not come out the other side. Keep the original if you need them.

Questions

Is my photo uploaded anywhere?

No. Your browser reads the file, redraws it and encodes the result on your own machine. Nothing is sent to a server, and there is nothing for us to store or see. The test suite for this page fails if any request the tool makes while a file is processed could carry it.

How much smaller will my image get?

A photo from a phone usually drops by 60–90% at quality 75 with no visible difference. A screenshot or a graphic with flat color behaves differently — see the note on PNG below.

Why did my PNG get bigger?

Because PNG is lossless and your original was probably already well optimized by a better encoder than a browser canvas. Re-encoding it rarely saves anything and often adds bytes. This page tells you when that happens rather than handing back a larger file as a saving. To make a PNG genuinely smaller, save it as WebP.

What does the quality setting actually do?

For JPEG and WebP it decides how much detail the encoder is allowed to throw away — lower means smaller and blurrier. For PNG it does nothing at all, because PNG never throws detail away, which is why the slider is switched off when you choose it.

Should I use JPEG or WebP?

WebP for almost everything: it is typically 25–35% smaller than JPEG at the same visual quality and every current browser reads it. Choose JPEG if the file has to go somewhere old — some printers, some official upload forms and some desktop software still refuse WebP.

Why did my transparent image turn white?

JPEG has no transparency. Anything see-through has to become a solid color, and white is the sensible choice. Save as WebP or PNG to keep it.

Will it fix a photo that came out sideways?

It will not rotate it for you, but it will not make it worse: the orientation your camera recorded is applied when the file is read, so a portrait photo stays portrait.

  • Image Editor

    Crop, resize, turn, fix the light and add text to a picture in one place, with every step undoable — without uploading it.

  • Image Resizer

    Change an image to the exact dimensions you need.

  • Image Converter

    Turn a JPG, PNG, WebP, AVIF or GIF into a JPG, PNG or WebP.