Image Compressor

Compress JPG, PNG, WEBP without losing quality

Free
Drop image here or click to upload
JPG, PNG, WEBP, GIF — max 10MB

Re-encoding, not shrinking: what compression actually does

An image compressor re-encodes a picture with a codec setting that discards information the eye is least likely to notice, producing a smaller file at the same pixel dimensions.

Images are almost always the heaviest thing on a web page. A single unoptimised photograph straight from a phone can outweigh every script, stylesheet and font on the page combined — and it is usually the element that decides your Largest Contentful Paint score.

Compression is one of two levers, and it is the second one. This page explains what the quality setting does to each format, why resizing should normally come first, and how to judge when you have gone too far.

How this compressor works

Unlike most of the tools on this site, this one uses a server. Being clear about that matters more than sounding privacy-first.

Processing location
Your file is uploaded over HTTPS, processed in memory by a server-side image library, and returned. It is not written to disk or retained after the response — see the privacy policy for the full statement.
Upload limit
10 MB per image. Larger files should be resized first, since a photo that big is almost certainly far larger than it needs to be.
JPEG
Re-encoded with an mozjpeg-style encoder at the quality you choose. This is lossy: information is permanently discarded, and re-compressing an already-compressed JPEG degrades it further.
PNG
PNG is lossless, so the quality slider does not reduce visual fidelity. It maps to the compression effort level instead — a lower number on the slider means the encoder works harder for a smaller file, with identical pixels.
WebP
Re-encoded at the quality you choose. WebP typically produces 25–35% smaller files than JPEG at comparable perceived quality.
Reported saving
The percentage shown compares the returned file size against the original upload, so it is a real measurement of that file rather than a marketing average.

Choosing a quality setting

Direct answer: for photographs on the web, quality 75–85 is the range where almost nobody can see the difference and the file is a fraction of the original. Below 60, artefacts become visible in skies, skin tones and gradients.

SettingTypical result on a photoUse it for
90–100Very large file, no visible gain over 85Archival masters and images that will be edited again
80–90Excellent quality, moderate sizeHero images, product photography, portfolio work
70–80The sweet spot for most web imagesBlog images, thumbnails, listing photos
50–70Visible softness and blocking in flat areasBackground images and anything shown small
Below 50Obvious artefactsRarely worth it — resizing saves more with less damage

These bands describe photographs. Flat graphics, screenshots and text-heavy images behave differently: JPEG compression makes text edges fuzzy at any quality, so use PNG or WebP for them.

Mistakes that waste most of the available saving

Compressing before resizing

A 4000-pixel-wide photo displayed in an 800-pixel column is carrying twenty-five times the pixels it needs. Compression cannot recover that; only resizing can. Resize first, then compress — in that order the saving compounds.

Re-compressing an already-compressed JPEG

Every lossy round trip discards more detail permanently. Keep the original file, and compress from it each time rather than compressing the compressed version.

Using JPEG for screenshots and logos

JPEG was designed for continuous-tone photographs. Sharp edges, flat colour and text produce visible ringing. PNG or WebP handles these far better and often smaller.

Expecting PNG to shrink like JPEG

PNG is lossless. A photograph saved as PNG will stay large no matter how the slider is set — the fix is converting it to JPEG or WebP with the image converter, not compressing harder.

Judging quality on a phone screen

Compression artefacts are most visible on a large, colour-accurate display. Check the result at 100% zoom on the biggest screen you have before committing.

Forgetting transparency

Converting a transparent PNG to JPEG fills the transparent area with solid colour. If the image sits on a coloured background, that shows up as a white box.

The order of operations that gets the smallest file

Following these five steps on a typical phone photograph will usually take a 4 MB file below 150 KB with no visible loss at display size.

  1. 1

    Start from the original

    Work from the highest-quality copy you have. Every intermediate save costs quality you cannot get back.

  2. 2

    Crop to the composition you want

    Cropping removes pixels outright. It is the cheapest byte saving available and it happens before anything else.

  3. 3

    Resize to display dimensions

    Match the width the image is shown at, doubled if you are serving a 2× asset for high-density screens.

  4. 4

    Convert to the right format

    WebP for photographs, PNG for graphics with flat colour or transparency. Convert before the final compression pass.

  5. 5

    Compress and verify

    Compress at 75–85, then view the result at full size. Re-run the website speed test afterwards to confirm the page-level improvement.

How this page is maintained

The 10 MB upload limit, the per-format encoder behaviour and the fact that the PNG slider maps to compression effort rather than visual quality were read from this tool’s server implementation. Quality bands are stated as practical guidance for photographic content, not as universal thresholds.

Written and reviewed by the ToolsRacks editorial team. Last reviewed: .

Works great with these tools

For the best compression results, resize your image to its exact display dimensions first using our free image resizer, then compress.

Converting to WebP before compressing gives you even smaller files. Use our image converter to switch formats, then compress here.

After optimising your images, test how much faster your page loads with our free website speed test tool.

Image Compressor: frequently asked questions

Answers to the questions people ask most often about this specific tool.

Where is my image processed?

On our server. The file is uploaded over HTTPS, re-encoded in memory and returned to you. It is not written to disk or retained after the response completes.

What quality setting should I use?

For photographs on the web, 75 to 85 is the range where the file shrinks dramatically and almost nobody sees a difference. Below 60, artefacts become visible in skies, skin tones and gradients.

Does the quality slider work the same way for PNG?

No. PNG is lossless, so the slider maps to compression effort rather than visual fidelity — the pixels are identical either way. If a PNG is too large, the answer is usually converting it to WebP or JPEG.

Should I resize before or after compressing?

Resize first. A 4000-pixel photo displayed in an 800-pixel column carries twenty-five times the pixels it needs, and compression cannot recover that. Resizing then compressing compounds the saving.

What is the maximum file size?

Ten megabytes per image. A file that large is almost certainly far bigger in dimensions than it needs to be, so resize it first.

Will compressing twice make the file smaller again?

It will make it worse. Every lossy round trip discards more detail permanently. Always compress from the original file rather than from a compressed copy.

Picked from Image Tools and adjacent categories. Each one has its own page explaining how it works and where it falls short.

Looking for something else? Browse all 27 free tools →