Compress image

Works on JPG, PNG and WebP. Keep the format you started with, or convert on the way out.

  • Free forever
  • No signup
  • Files never uploaded
  • No watermark
  • Unlimited files

Image compressor

JPG, PNG and WebP files are accepted, mixed together if you like. Paste from clipboard with Ctrl+V (Cmd+V on a Mac).

Compression mode

Set the encoder quality directly. Lower quality means a smaller file.

80

80 suits most web images. Above 90 the file grows quickly for very little visible gain.

Keep the original format, or convert on the way out to compare which one is smallest.

  • Removes camera model, timestamps and GPS coordinates from the output.

  • Compress without changing the pixel size of the image. Turn this off in target-size mode to let the tool shrink the image when quality alone cannot meet your limit.

Ready. Add a file to begin.

Results

Quality mode · same as input output · 0 files

No files yet. Results will appear in this table as soon as you add one.

Your files are processed by your own browser. Nothing is uploaded to a server, so nothing can be stored, read or shared.

More tools

Other tools on this site

Each one runs in the browser the same way, with no upload and no account.

  • Compress JPEG

    Shrink JPG and JPEG photos with a quality slider or an exact target size in kilobytes.

    Compress JPEG
  • Compress PNG

    Reduce PNG screenshots and graphics while keeping transparency and hard edges intact.

    Compress PNG
  • Compress WebP

    Re-encode WebP images at a lower quality, or convert JPEG and PNG into WebP.

    Compress WebP
  • Resize Image

    Change pixel dimensions by width, height or percentage, with the aspect ratio locked.

    Resize an image
  • JPG to PDF

    Combine several photos into one PDF, reorder the pages and choose paper size and margin.

    Build a PDF
  • Document Editor

    Write a formatted document in the browser and export it to PDF, DOCX or HTML.

    Open the editor

Specification

Technical specification

Every capability written out as text, including the ones where the answer is no. A specification that only listed the wins would not be worth reading.

Technical specification — what this tool supports, attribute by attribute.
AttributeThis tool
Supported input formatsJPG and JPEG
Output formatsJPEG, PNG, WebP
Compression typeLossyJPEG discards detail permanently by design. PNG output is lossless but far larger for photographs.
Quality controlAdjustable, 10 to 100Maps directly to the encoder's quality setting. Moving it genuinely changes the output.
Exact output file sizeYes — target in KBThe encoder searches for the highest quality that fits under your limit, then reports the size it actually reached.
Resize / image dimensionsYes — max width and heightAspect ratio preserved. The resizer page adds exact pixel and percentage modes.
Batch / bulk processingUnlimitedFiles are encoded in parallel across a Web Worker pool and can be downloaded as one ZIP.
Maximum file sizeNo limit set by this siteBounded in practice by your device's memory, since each image is held uncompressed while it is processed.
EXIF and metadataStripped by defaultCamera model, timestamps and GPS coordinates are removed. You can switch it off.
Transparency / alpha channelNot applicable to JPEGJPEG has no alpha channel. Choose PNG or WebP output if you need transparency.
Chroma subsampling controlNot availableThe browser's encoder chooses it and exposes no setting. We will not add a control that cannot affect the output.
Progressive JPEG controlNot availablecanvas.toBlob gives no control over progressive encoding. Use MozJPEG or ImageMagick if you need it.
Colour profile handlingConverted to sRGBA browser canvas works in sRGB, so wide-gamut images are converted. Correct for the web, wrong for print masters.
Bit depth8 bits per channelThe maximum a browser canvas provides. HDR and 10-bit output need AVIF, which browsers cannot write.
Animation supportNot supportedA canvas decodes only the first frame of an animated file, so animation is out of scope rather than half-supported.
Where processing happensIn your browserNo upload endpoint exists in the compression path. Disconnect from the network after the page loads and it still works.
File retentionNone — nothing is receivedThere is no copy to retain or delete, because no file is ever transmitted.
WatermarkNeverThe output contains your image and nothing else.
Account, quota or costNoneNo sign-up, no daily cap, no paid tier withholding a feature.
Browser supportChrome, Edge, Firefox, SafariDesktop and mobile. Requires Canvas and Web Workers, which every current browser provides.

How it works

How to compress image

  1. Step 1: Add your images

    Drag files onto the drop zone, click it to browse, or paste an image straight from the clipboard. Batches of any size are fine.

  2. Step 2: Choose your settings

    Pick a quality level, an exact target size in kilobytes, or a maximum width and height. Defaults are tuned for the web if you would rather not change anything.

  3. Step 3: Download the compressed files

    Every file is listed with its old size, new size and percentage saved. Save them one at a time or grab the whole batch as a ZIP archive.

Features

What this tool does

  • Batch processing

    Queue as many image files as you like. A Web Worker pool handles them in parallel so a large batch does not freeze the page.

  • Real quality control

    The quality slider maps directly to the encoder setting. Move it and the output genuinely changes — there are no cosmetic controls here.

  • Exact target size

    Ask for 200 KB and the encoder searches for the highest quality that fits under your limit, then reports what it actually achieved.

  • EXIF and metadata stripping

    Camera model, lens, timestamps and GPS coordinates can be removed on the way out. Useful before publishing a photo taken on a phone.

  • Format conversion

    Write the result as JPEG, PNG or WebP regardless of what you put in, so you can test which format is smallest for a given image.

  • Nothing is uploaded

    The whole pipeline runs in your browser through the Canvas API. Turn off your network connection after the page loads and it still works.

  • No watermark, no sign-up

    The output is your image and nothing else. There is no account, no daily quota and no paid tier holding back a feature.

  • Works on mobile

    The layout, the drop zone and the results table are all usable on a phone, and mobile browsers run the same encoder as the desktop ones.

In depth

Compressing any format

One tool, three formats, different behaviour for each

This page accepts a mixed batch and treats each file according to what it is. Leave the output on "same as input" and a PNG stays a lossless PNG while a JPEG is re-encoded at your chosen quality — because applying one lossy setting to both would quietly ruin the screenshots.

If you would rather force everything into one format, set the output explicitly. Converting a mixed batch to WebP is usually the single best thing you can do for a website's image weight.

Which format should the output be?

Photographs
JPEG, or WebP if the images are going on a web page.
Screenshots, logos, diagrams, text
PNG, or lossless WebP. Never JPEG — lossy encoding puts haloes around every hard edge.
Anything with transparency
PNG or WebP. JPEG has no alpha channel and will fill transparent pixels.
Mixed batch for the web
WebP handles all of the above and is smaller than whatever it replaces.

Lossy and lossless compression are not the same thing

Lossless compression rewrites the file so it takes up less space while every pixel value survives exactly. Decode the result and you get the original back, byte for byte. PNG, GIF and lossless WebP work this way, and so does a ZIP archive.

Lossy compression throws information away on purpose. JPEG converts the image to a frequency representation, then discards the high-frequency detail your eye is least likely to miss. The result cannot be reversed: the discarded detail is gone. That is also why lossy formats reach file sizes lossless ones cannot approach — a photo saved as PNG is routinely five to ten times larger than the same photo saved as JPEG at a sensible quality.

Neither one is better. Photographs, with their smooth gradients and noise, suit lossy encoding. Screenshots, logos, line art, charts and anything with large flat areas and hard edges suit lossless encoding, because lossy encoders produce visible haloes around sharp boundaries.

How quality maps to file size

The quality number in a JPEG or WebP encoder is not a percentage of anything. It is an index into a set of quantisation tables that control how aggressively detail is discarded. The relationship to file size is steep and non-linear.

For a typical 12-megapixel phone photograph the curve looks roughly like this:

  • Quality 95–100 — near-original appearance, but the file is often only 20–35% smaller. Rarely worth it for the web.
  • Quality 80–90 — the sweet spot for photography you care about. Typically 50–70% smaller with no artefact you would notice at normal viewing distance.
  • Quality 70–80 — the sweet spot for ordinary web images. Usually 70–85% smaller. Artefacts appear only if you zoom in on flat sky or skin.
  • Quality 50–70 — visible softening and blocking in smooth areas, though thumbnails and background images survive it well.
  • Below 50 — obvious blocking, ringing and colour banding. Useful only for placeholders.

Diminishing returns set in fast at the top of the range. Going from quality 100 to quality 90 usually halves the file for no perceptible change; going from 90 to 80 saves far less and costs slightly more. If you only remember one number, use 80.

Why re-compressing a JPEG keeps degrading it

Every time a JPEG is decoded, edited and saved again, the encoder re-runs its quantisation step on data that has already been quantised once. Errors from the previous pass are treated as real detail and get their own new errors layered on top. This is called generation loss, and it accumulates in one direction only.

Saving an already-compressed JPEG at quality 90 does not restore anything — it just spends more bytes preserving the artefacts of the earlier pass. Saving repeatedly at a low quality is what produces the smeared, blotchy look of an image that has been through a dozen chat apps.

Two habits avoid it. First, always compress from the highest-quality original you have, not from a copy that has already been through a compressor. Second, decide on your output size once and do a single pass, rather than nudging the quality down repeatedly and re-saving each time. If you need to try several settings, run each of them against the original file.

Questions

Frequently asked questions

Every answer below is present in the page source, expanded, so it can be read without opening anything.

What is the difference between this page and the JPEG compressor?

This one accepts JPG, PNG and WebP together and adapts to each. The JPEG page is tuned specifically for photographs — JPEG-only input, JPEG-focused defaults and JPEG-specific guidance. Use this page for a mixed folder, and that one when everything you have is a photograph.

Can I mix formats in one batch?

Yes. Each file is handled according to its own type, and each row in the results table shows what it started as and what it became.

Do I have to pick a quality?

No. If you know the size you need, switch to target-size mode and give it a number in kilobytes — the encoder works backwards to reach it. There are also purpose-built pages for the common limits, from 20KB up to 1MB.

Will my PNGs lose quality?

Not if the output stays PNG — that path is lossless and the quality slider has no effect on it. It only becomes lossy if you convert the output to JPEG or WebP, and the tool labels that honestly rather than implying otherwise.

Is there a limit on how many files I can add?

None imposed by this site. The practical ceiling is your device's memory, since each image is held uncompressed while it is processed. For very large sets, the bulk compressor page is the same engine with copy written for that job.

Are my images uploaded?

No. Decoding and encoding both happen in this browser tab through the Canvas API. Load the page, disconnect from the network, and it still works.

From the blog

Related reading

Longer explanations from the blog.

  • Practical Guides

    How to Compress Images for a Website Without Wrecking Them

    Resize before you compress. Measured on one photograph: half the width at quality 80 produced a 16.4 KB file, while full width at quality 40 produced 20.6 KB and looked far worse. The order of operations matters more than the settings.

    8 min read

  • Image Compression

    JPEG Quality Settings Explained: What the Number Actually Means

    Quality 80 is not 80% of anything. It is an index into a quantisation table. Measured on one photograph: dropping from 100 to 90 removes 77% of the file and 4.2 dB of fidelity; dropping from 40 to 30 removes 17% and costs almost as much.

    8 min read

  • Image Formats

    PNG vs JPEG: When to Use Each, With the File Sizes to Prove It

    PNG stored the same photograph in 1274.1 KB where JPEG needed 67.5 KB — nineteen times larger. On a flat graphic PNG won. On a smooth gradient PNG lost to JPEG by a factor of two, which surprises most people.

    9 min read