Toolivaro

Free Image Compressor

Compress JPG and WebP images with a quality slider, live size savings and dimensions, processed fully on your device.

The image compressor reduces file size by re-encoding your image at a quality level you control. Drop in a JPG, PNG, or WebP, move the quality slider, and the compressor returns the exact output size and the percentage saved before you download — no guessing, no surprise attachments. Lower quality means smaller files at the cost of visible artifacts; the sweet spot for photos is usually 60–80%, and the slider makes it easy to find. PNG inputs are compressed most effectively by converting to WebP or JPG, which the compressor supports alongside keeping the format. Everything happens on your device: the image is decoded and re-encoded in a background Web Worker, nothing is uploaded, logged, or stored, and the 25 MB input limit keeps the browser responsive. Because files are re-encoded, embedded metadata (EXIF, GPS, copyright) is removed — disclosed on every result, with a reminder to keep the original when the metadata matters. Use this tool before attaching photos to email, uploading to a form with a size limit, or embedding images in a page that must load fast.

Processed locally in your browser

How to use this calculator

How compression actually shrinks a photo

A JPEG is already compressed; what the compressor does is re-encode it at a quality level you choose. The trade-off is the fundamental one of lossy formats: lower quality throws away more of the detail the encoder judged unimportant — and in return the file gets smaller. The slider makes the trade visible: at 90% quality a photo may be barely smaller than the original, at 60–80% it is often a fraction of the size with no visible difference on a normal screen, and below 50% artifacts start showing up, especially along edges and in gradients. The page reports the exact output size at the current setting before you download, so finding the smallest acceptable file is a matter of moving the slider, not guessing.

The sweet spot depends on the image, not on a magic number: a landscape with smooth gradients compresses far better than a photo of fine texture like foliage, and a screenshot with flat colors compresses better still. That is why the tool shows the real output size at every quality setting instead of applying a fixed preset.

The PNG problem, and what actually works

PNG is a lossless format: re-encoding it at a lower quality changes almost nothing, because lossless compression has no quality knob to turn — the data must survive intact. If a PNG is large, the effective move is to change the format: converting to WebP or JPEG typically cuts the file by 60–80% because those formats are allowed to discard information. The compressor supports converting PNG input to WebP or JPG output alongside keeping the format, and the sibling converter covers the general case. If the image is a diagram, logo, or anything with sharp edges and flat colors, WebP usually beats both: the same visual at a fraction of the size.

The exception that keeps PNG alive: transparency. If the image needs an alpha channel and it must survive as-is, PNG is the format that keeps it losslessly, and the compressor says so honestly instead of pretending quality reduction will fix it.

Reading the savings numbers

The result panel shows the output size and the percentage saved — the two numbers that decide whether the file will pass an email limit, an upload cap, or a page-weight budget. A 6.2 MB JPEG re-encoded at 70% quality typically lands around 800 KB, an 87% saving, and the panel makes it visible in one glance. The percentage is relative to the original, so it is honest about what the re-encode achieved: an already-compressed image will show a small saving, and the tool reports the real number rather than a target.

Before downloading, glance at the result. The size number can look perfect while a detail — a product label, a face, a line of text — has visibly degraded; the visual check is the final gate, and it is the one the tool cannot do for you.

Metadata, privacy, and the local promise

Re-encoding produces a clean file: EXIF, GPS, and copyright metadata are not carried over, and the page discloses this on every result. For photos you are about to publish that is usually what you want; for files where provenance matters, keep the original as the archive copy.

Everything runs on your device — the image is decoded and re-encoded in a background Web Worker, and the file never leaves the browser. That is the meaningful difference from a "compress image online" service that asks for a 6 MB upload: the compressor has no upload, so the photo, its location data, and its contents stay local by construction, and the 25 MB input limit exists only to keep the page responsive.

How is the result calculated?

Shrinking a photo for email

A 6.2 MB JPEG photo re-encoded at 70% quality typically lands around 800 KB — an 87% saving — with no visible difference on a phone screen. At 40% quality the same photo may drop below 400 KB, but starts to show artifacts when zoomed.

Example input and output
Input Value
image 6.2 MB JPEG
quality 70
Result ≈ 800 KB (−87%) at 70% quality

What is the formula and its assumptions?

Compression method

output = re-encode(input, quality)

Formula terms
Symbol Meaning
quality 0–100; lower quality → smaller file, more artifacts

Re-encoding also normalizes the image — metadata is not carried over, which is disclosed on the page.

Size saving

saving % = (original − output) / original × 100

Formula terms
Symbol Meaning
original input file size in bytes
output compressed file size in bytes

What are the most common mistakes?

  • Compressing a PNG and expecting big savings — lossless formats need conversion, not quality reduction.
  • Choosing the smallest size without checking the output visually — a blurry hero image hurts more than a few hundred KB.
  • Using an online compressor that uploads the image — this tool keeps the file on your device.

What are the assumptions and limitations?

  • JPEG and WebP support quality re-encoding; PNG output keeps lossless compression and shows limited savings.
  • Animated GIFs are converted to a single frame.
  • Input is limited to 25 MB to keep processing responsive.

Where do the numbers come from?

Last reviewed August 4, 2026 · Version 1.0.0 · Toolivaro does not guarantee external content.

Frequently asked questions

What quality should I use?

For photos, 60–80% balances size and quality for most screens; below 50% artifacts become visible. Screenshots and graphics with flat colors compress well at lower qualities. The slider shows the exact output size at each setting, so you can find the smallest acceptable file.

Why is my PNG not getting smaller?

PNG is lossless, so re-encoding at a lower quality changes little. Converting to WebP or JPEG (available in the compressor’s sibling converter) is what actually shrinks PNG files — often by 60–80%.

Does compression remove metadata?

Yes — re-encoding produces a clean file without EXIF, GPS, or copyright metadata, and the page says so on every result. Keep the original file when the metadata is important to you.

Why does the same quality setting produce different sizes for different images?

The quality slider sets how much detail the encoder may discard, but the resulting size depends on the image: smooth, low-detail photos compress far more than busy ones. That is why the panel shows the exact output size at every setting instead of promising a fixed reduction.

Is the compressed image good enough to print?

Probably not — printing needs the full resolution and quality of the original. Compression is for screens, email, and the web; keep an uncompressed master for anything that will be printed or edited later.

Part of Format and conversion tools

Found a mistake or have a correction? Report it — we review every correction.

Was this helpful?

Reviewed by the Toolivaro editorial team per our methodology Methodology · Editorial policy