PixShed
🗜️

Compress Image

Reduce JPG, PNG, WebP file size up to 90% without quality loss. Instant, in your browser.

This tool shrinks JPG, PNG, and WebP files toward a target file size right inside your browser — the image is decoded to a canvas, re-encoded at a calculated quality, and never sent to a server. Nothing uploads, so even large RAW exports or multi-megapixel phone photos stay on your device the whole time.

Set a size goal (say 500 KB or 1 MB) and the compressor iterates the quality setting until the result lands at or below it. That makes it ideal when a form, email, or upload field enforces a hard size cap and you don't want to guess at quality percentages.

🖼️

Drop image here or click to browse

JPG, PNG, WebP, GIF, BMP — up to ~100 MB

🔒 100% Browser-Based

Your image is processed entirely in your browser. Nothing is uploaded. Verify in DevTools → Network tab — zero outbound traffic with file content.

About Compress Image

Compress JPG, PNG, and WebP images to a fraction of their original size with barely any visible quality loss. The compressor iterates toward your target file size right in the browser — no upload, no queue, no daily limit. Ideal for shrinking photos for email, websites, and faster page loads.

How to use the Compress Image

  1. 1

    Drop in your image

    Drag a JPG, PNG, or WebP onto the drop zone, or click to browse. The file is read locally — it never leaves your device.

  2. 2

    Set your target size

    Enter the maximum file size you need, such as 1 MB for email or 200 KB for a fast-loading web page. The tool works backward from this number.

  3. 3

    Let it iterate

    The compressor re-encodes at descending quality until it hits your target, then shows the new size and a before/after preview so you can judge the trade-off.

  4. 4

    Download the result

    If the preview looks good, click download. If it's too soft, raise the target size slightly and re-run — every pass happens instantly in the browser.

How target-size compression actually works

Unlike a fixed quality slider, target-size mode treats your file-size limit as the goal and searches for the quality that meets it. For a photographic JPG, that usually means landing somewhere between 60% and 85% quality. The tool re-encodes, measures the byte count, and adjusts — a few passes get within a few kilobytes of your cap. Because PNG is lossless, hitting a small target on a photo-heavy PNG often requires converting to JPG or WebP instead; the tool will favor formats that can actually reach your number rather than producing a file that stays stubbornly large.

Picking a target for email, web, and uploads

  • Email attachments: 1–2 MB per image keeps you well under Gmail's 25 MB and Outlook's 20 MB total limits, even with several photos.
  • Web pages and blogs: aim for 100–300 KB for in-article images so they load fast and help Core Web Vitals.
  • Profile pictures and avatars: 50–150 KB is plenty at typical display sizes.
  • Forms with hard caps: match the stated limit minus ~10% as a safety margin, since some servers count base64 overhead.

Quick tips

Frequently asked questions

How much can I compress an image?

Photos typically shrink 60–90% at 80% quality with no visible difference. Exact savings depend on the image — detailed photos compress more than flat graphics.

Will compression reduce quality?

At 80% quality the loss is invisible to the eye. Below about 60% you may start to see JPEG artifacts around sharp edges.

Is there a file-size or count limit?

No. There are no daily limits, no per-file caps, and no signup. Process as many images as you like.

Why did my PNG barely shrink even at a small target?

PNG is lossless, so a detailed photo saved as PNG has a high floor it can't drop below. To reach a small target on a photographic image, convert it to JPG or WebP — those formats discard imperceptible detail to get dramatically smaller files.

Does compressing change the image dimensions?

No. Target-size compression only changes how the pixels are encoded, not the width and height. The photo stays the same resolution; only the file weight drops. Use a resize tool first if you also need smaller dimensions.

Will I lose EXIF data like camera model or GPS?

Re-encoding typically drops most EXIF metadata as a side effect, which is often desirable if you don't want to share location data. If you specifically need to keep camera info, compress more gently or keep an untouched original.

Related guides

Related tools