Free Image Compressor Online

Compress JPG, PNG and WebP images online for free — right in your browser, with nothing uploaded anywhere. Pick a quality level, or set an exact target size like 100 KB and the compressor finds the best quality that fits under it. Batch up to 20 images, compare before and after side by side, resize by max width, and download everything individually or as one ZIP. Large images slow down websites, bloat emails and get rejected by forms with strict size caps — this image compressor fixes all three in seconds, while keeping your photos private on your own device.

100% Client-Side PrivacyZero Installation

Compression settings

80%
Smaller fileBetter quality

80–85% is the sweet spot for photos. PNG is lossless, so the slider does not shrink PNGs — use Auto or WebP for those.

Auto tries JPG, WebP and keeps the smallest. Note: Auto may drop transparency — choose PNG to preserve it.

px

Resize oversized photos for the web (aspect ratio is always preserved).

📦

Drop images here, click to browse, or paste (Ctrl/Cmd+V)

JPG, PNG, WebP, GIF (first frame), AVIF, BMP · Up to 20 images · 40 MB each · 100% private — nothing is uploaded

Your images never leave this device — compression runs entirely in your browser.

How to Use

  1. 1Add images — drag and drop, browse, or paste from your clipboard (Ctrl/Cmd+V). Up to 20 files, 40 MB each.
  2. 2Choose a mode: a quality slider for the size/quality balance, or an exact target size (20 KB, 50 KB, 100 KB, 200 KB, 500 KB, or your own value).
  3. 3Pick an output format: Auto (smallest) tries JPG, WebP and AVIF and keeps the smallest, or force JPG, PNG, WebP, or the original format. Optionally set a max width.
  4. 4Press Compress All. Compare original vs compressed with the slider, and fine-tune any single file with its own quality or target.
  5. 5Download files individually or grab the whole batch as one ZIP. EXIF and GPS metadata is stripped automatically.

Key Features

  • ✓

    Quality slider or exact target size

    Slide quality from 10–100% for the classic size/quality balance, or set an exact target like 20 KB, 100 KB or 200 KB and the tool binary-searches the highest quality that fits under it.

  • ✓

    Batch up to 20 images + ZIP download

    Drop a whole folder's worth of photos at once, watch total savings add up, and download everything as one ZIP — or grab files individually.

  • ✓

    Before/after compare slider

    Drag the compare slider on any result to see the original and compressed image side by side, so you approve quality with your own eyes before downloading.

  • ✓

    Auto (smallest) format + per-file control

    Auto mode encodes JPG, WebP and AVIF and keeps the smallest file for each image. Every file can also carry its own format, quality or target — plus a max-width resize.

  • ✓

    Clipboard paste + form-ready presets

    Paste screenshots straight from your clipboard (Ctrl/Cmd+V). One-click presets for passport forms (20 KB), email (100 KB), web uploads (200 KB) and social posts (500 KB).

  • ✓

    100% private, EXIF stripped

    Compression runs on your device with the Canvas API — images are never uploaded, nothing is stored, and EXIF/GPS metadata is stripped from every result automatically.

Got Questions?

Frequently Asked Questions

Does compressing an image reduce its quality?
It depends on the format. JPG and WebP are lossy: lowering quality removes fine detail, but at 80–85% most photos look identical while shrinking 50–80%. PNG is lossless: re-encoding it keeps every pixel, so it barely shrinks — for photos, converting PNG to JPG or WebP is what actually cuts the size. The Auto (smallest) mode picks the best option for each image automatically.
Why didn't my PNG get smaller?
PNG compression is lossless, so there is no quality slider that can shrink it — the format keeps every pixel exactly. If your PNG is a photo or screenshot with many colors, convert it to JPG or WebP (or use Auto mode) and it will usually drop by 60–90%. PNG stays the right choice for logos and graphics that need transparency or pixel-perfect edges.
How does 'compress to an exact size' work?
The tool binary-searches the quality setting: it encodes the image at different quality levels until it finds the highest quality that lands just under your target (20 KB, 100 KB, 200 KB, and so on). If even the lowest quality is still too big at full size, it gently reduces the dimensions until the file fits. The result is always at or under your target — never over.
Are my images uploaded to a server?
No. Everything runs in your browser using the Canvas API — your images never leave your device, nothing is stored, and there is no account or sign-up. Re-encoding also strips EXIF metadata automatically, including GPS location and camera details, so the downloaded files are safer to share.
What does 'Auto (smallest)' output do?
For each image it encodes JPG, WebP and AVIF (where your browser supports it) and keeps whichever file is smallest. WebP is usually 25–35% smaller than JPG at the same quality, and AVIF can be smaller still — Auto mode means you never have to guess which format wins for a particular photo.
Can I compress an image to exactly 20 KB for a form?
Yes — pick the 20 KB preset (or type any custom size). Most photos reach 20 KB at reduced dimensions; if a photo cannot reach the target even at low quality, the tool shrinks its dimensions step by step until it fits, and tells you the final dimensions. Extremely detailed photos may need a smaller width to hit very small targets.
Do animated GIFs stay animated?
No. GIF input is decoded to its first frame, so the compressed result is a still image — use the output format you need (WebP keeps the best quality for a single frame). For animated images, keep the original GIF or convert the animation to animated WebP with a dedicated converter.

What is image compression?

Image compression shrinks a photo's file size by removing data the eye barely notices — or, for lossless formats, by encoding the same pixels more efficiently. A 4 MB phone photo can usually become a 300–600 KB web image with no visible difference, which means pages load faster, emails send instantly, and uploads stop hitting size limits. This free image compressor online does the whole job in your browser: no uploads, no accounts, no watermarks.

Two kinds of compression matter here. Lossy compression (JPG, WebP, AVIF) discards fine detail in exchange for much smaller files — the quality slider controls how much. Lossless compression (PNG) keeps every pixel exactly but can only squeeze so far, which is why PNG photos barely shrink and should usually be converted to JPG or WebP for the web.

Which format should you choose?

FormatBest forWatch out for
JPGPhotos and screenshots — universal support everywhere.No transparency; quality below ~70% shows artifacts.
PNGLogos, icons and graphics needing transparency or crisp edges.Photos stay large — it is lossless, so it cannot shrink like JPG.
WebPWeb images in general — typically 25–35% smaller than JPG at the same quality, with transparency support.Very old software may not open it; JPG is still the safest fallback.
AVIFMaximum compression for modern browsers — often smaller than WebP still.Encoding support varies by browser; Auto mode only uses it when available.

If you only need to change a file's format without compressing, the WebP to JPG converter handles that one job directly.

What quality setting should you use?

Use caseSuggested settingWhy
Website hero / product photos80–85% WebPVisually identical to the original, roughly half the bytes of JPG.
Blog and social images75–80%Small files that still look crisp on phones and feeds.
Email attachmentsTarget 100 KBGuaranteed to send without bouncing on mailbox limits.
Government / job formsTarget 20–200 KBForms reject oversized uploads — target mode lands just under the cap.
Archival / print95–100% or PNGKeep maximum detail; accept the larger file.

Why do some images barely shrink — or get bigger?

An already-optimized image (a photo exported from Lightroom at 80% quality, a screenshot saved by an app that already compressed it) has little redundancy left to remove — the compressor may only shave a few percent. And a re-encode can occasionally come out larger, for example when a small PNG is converted at high quality. This tool is honest about both cases: if the same-format result would be larger than the original, it keeps the original file and tells you, instead of handing you a worse file and calling it “compressed”.

Resizing is the other lever that always works: a 4000px-wide phone photo displayed at 1200px on a page carries four times the pixels it needs. Set a max width and the file size drops with the dimensions — combine it with WebP output and the savings compound. For precise crops before compressing, use the AI smart image cropper, and for stripping location data from photos you plan to share, the image metadata cleaner removes EXIF without touching pixels.

Compressing images for your website

Page speed is a ranking factor and a conversion factor: every extra megabyte of images delays first paint, hurts Core Web Vitals (especially Largest Contentful Paint), and costs mobile visitors data. The practical workflow is: resize to the display width, encode as WebP at 80–85%, and confirm with the compare slider that nothing visible was lost. For a full-page check afterwards, run the website health checker, and when a compressed image needs to go into a document, the image to PDF converter finishes the job. Browse the full image tools collection for the rest of the workflow.

Common mistakes to avoid

  • Compressing PNG photos and expecting miracles. PNG is lossless — convert to JPG or WebP (or use Auto mode) for photos.
  • Uploading 4000px images to a 1200px slot. Resize first; quality settings alone cannot fix oversized dimensions.
  • Judging quality on a thumbnail. Use the compare slider at full size — artifacts hide in small previews and appear in print or zoom.
  • Forgetting transparency. Auto mode may convert a transparent PNG to JPG (which has no transparency and fills it white). Choose PNG output when transparency matters.
  • Sharing originals with EXIF intact. Phone photos carry GPS locations — this tool strips metadata on every encode, but check other tools you use do the same.

Related Tools You Might Like

Handy utilities in Image Tools

View all Image Tools