Image Compressor

Shrink photos for the web and email while watching the exact before/after file size — quality slider plus an optional max-width, all in your browser.

Private by design — your photo is processed locally and never uploaded.

Drop a photo here, or click to browse

Supported formats: JPG, PNG, WebP, GIF, BMP

Before After

Drag to compare

Original
—
Compressed
—

Tip: PNG output stays lossless (the quality slider won't shrink it); choose JPG or WebP to actually reduce size.

How It Works

The Image Compressor draws your photo onto a canvas, optionally scales it down to a max width, then re-encodes it as JPG or WebP at the quality you choose. It measures the result from the encoded data and shows the real file size and the percentage you saved — all on your device.

Quality slider

Lower quality = smaller file. Around 75–85 keeps photos looking crisp on the web while cutting size dramatically.

Max width

Set a long-edge cap (e.g. 1600px) to shrink oversized scans. 0 keeps the original dimensions.

Honest size readout

You see the original bytes, the compressed bytes and the savings percent before you download.

Fully local

Compression runs in your browser with the Canvas API. Photos are never uploaded or stored.

An honest note: compression is lossy (except PNG). Pushing quality very low or shrinking a small image too far will introduce visible blockiness or softness. Keep the quality at 70–85 for most web use, and always keep an uncompressed master copy of your original.

How to Use

  1. Upload the photoDrop it in or click to browse. The tool reads its exact original file size.
  2. Lower the qualityDrag the slider toward 75–85 and watch the compressed size drop. Add a max width for very large scans.
  3. Check the savingsRead the original vs compressed size and the savings percentage; drag to compare visual quality.
  4. DownloadSave the smaller JPG or WebP. Keep your original master untouched.

Who this is for — and what it will not do

For getting under a size limit without visibly damaging the photo: email attachments, upload forms, website images and messaging apps. The useful question is not "smallest possible" but "small enough for this portal while still looking like the original".

  • Email attachment limits. Shrinking a 12 MB scan to something that will actually send.
  • Upload portals with caps. Visa, insurance and job forms that reject files over a fixed size.
  • Faster web pages. Images are usually the heaviest asset; a modest quality drop is invisible at display size.

Mistakes that ruin the result, and the fix for each

  • Compressing before retouching. JPEG artefacts get baked in and are then amplified by contrast and sharpening. Repair first, compress last.
  • Recompressing the same JPEG repeatedly. Each save adds new artefacts. Keep one high-quality master and compress copies from it.
  • Judging quality at thumbnail size. Compression damage shows in faces and fine texture. Check at 100%, then decide the quality level.

Field Notes: Settings That Actually Work

Concrete starting values taken from the tool's own parameters, plus what to change when the first result is not right.

Compression numbers are easy to misread, and this page has two behaviours that explain most of the confusion. First, the size readout is computed by encoding your canvas as JPEG at the quality you picked — always JPEG, whatever format you then download. Second, the before/after slider draws raw canvas pixels on both sides, so it never shows the blocking a lossy encoder introduces. In practice that means the number is a close estimate for JPG, an overestimate for WebP, and an underestimate for PNG, while the picture you are judging is untouched.

The slider runs 0–100 and is converted to the encoder's own 0–1 scale; the default is 80, and the Web-Ready preset moves to quality 80 with a 1600 px max width, while Reset returns to quality 80 and no width limit. Max width only ever shrinks: it is applied only when the photo's own width exceeds the value, and the height follows the same ratio, so there is no separate height field and no way to enlarge. On the standard JPEG scale, each ten-point step halves or doubles the quantisation step above 50, and encoded size tracks it closely — quality 90 typically lands near twice the bytes of 80 on the same photo, while 70 sits near two thirds. Shrinking works on area, not length: a 4000 px photo capped at 1600 px keeps 0.4 × 0.4 = 16% of its pixels, so at unchanged quality the file drops to roughly a sixth.

What you seeStart hereWhy it worksIf it is still wrong
The readout says 2 MB but the WebP file you downloaded is far smallerRead the number as a JPEG estimate and download WebP when size matters mostThe readout comes from a JPEG encode at the chosen quality, so it never reflects WebP's better compressionDownload JPG if you want the number and the file to match; verify the real size in your file manager
The comparison slider shows no difference even at quality 55Judge quality by downloading and viewing the file, not by the previewBoth canvases are painted from the same uncompressed pixels; the encoder's artefacts never enter the previewKeep a web copy around 75–85 and open it at 100% zoom on the page where it will actually appear
Saving is only about 8% on a photo that is already a small JPEGDrop to quality 70, and add a max width of 1600 if the photo is larger than a web layout needsThe original is already lossy and well compressed, so there is little left for a second encoder pass to removeIf 70 still is not enough, cut the width instead — area scales with the square, so 1200 px keeps under 10% of a 4000 px photo's pixels
A 4000 px scan has to fit a 1600 px web layoutMax width 1600 with quality 80The long edge scales by 0.4, the pixel count by 0.16, so the bytes fall to roughly a sixth at the same quality settingStill too heavy: quality 70 with the same width lands near a ninth of the original; keep the full-size file as your master

Switch tools when compression is not the actual job. If the file is too big because it is also too large in pixels, Photo Resizer gives you an exact width and height instead of a width ceiling, which matters for print sizes. If you have a folder to shrink rather than one file, Batch Converter applies one quality and format across every row and can bundle the results as a zip. If the photo needs restoring before it is worth compressing, start in Photo Restorer, because compressing a faded scan only makes the fading harder to recover.

What this tool cannot do: it cannot show you the real compressed pixels, cannot compress PNG with the slider, cannot enlarge an image, cannot set width and height independently, and cannot store metadata — the re-encoded file carries no EXIF, so camera details and location are dropped. The readout can also be wrong in the opposite direction: re-encoding a small, already-optimised image at quality 90 or above can produce a file larger than the original, and the tool will label that result as larger rather than pretend it saved you anything.

Sources & further reading

FAQ

Does compressing my photo upload it?
No. Compression and resizing happen entirely in your browser with the Canvas API. The photo never leaves your device and the tool works offline after loading.
How much can I shrink a photo?
On typical photos, JPG/WebP at quality 75–85 cuts file size by 50–80% with little visible difference. Adding a max width (e.g. 1600px) saves even more for oversized scans.
Why is PNG not getting smaller?
PNG is lossless, so the quality slider has no effect on it. To shrink a PNG, either choose JPG/WebP, or reduce the max width.
Will compression hurt my photo?
Lossy compression costs a little quality. Stay at quality 70–85, avoid extreme downscaling, and keep an uncompressed original master for archiving.
Which format should I download?
WebP gives the smallest size at good quality; JPG is universally compatible; PNG only when you need lossless output or transparency.