Compress Images to a Target Size Without Uploading

Compress JPG, PNG and WebP locally. Compare the original and result at 100%, check dimensions and file sizes, then download individual images or a ZIP.

Compression mode

82%

JPG and WebP use this setting. PNG export is lossless.

Optional resizing

Fit proportionally within these dimensions. Images are never upscaled.

Metadata behavior

Canvas re-encoding does not preserve source metadata. An original may be kept unchanged when it is already the smaller valid result, including its metadata.

Drop images here, or click to browse

JPG, PNG, WebP | up to 20 files | max 25 MB and 40 MP each

Your images are processed locally in your browser. ToolMint does not upload or store them.

No images yet. Drop some above to get started.
Steps

How to use

  1. Drop images onto the upload area, or click to browse.
  2. Choose Quality for direct encoder control or Target size for a maximum output size.
  3. Optionally set maximum dimensions or allow proportional resizing when a target needs fewer pixels.
  4. Click Compress, then select Compare on a completed image to inspect Fit and 100% detail previews.
  5. Download the result, or adjust settings and choose Recompress to try again from the original file. Use ZIP for a completed batch.
Examples and use cases
  • Compress a large JPG photo before uploading it to a website hero section.
  • Reduce a JPG or WebP toward a 100 KB maximum while retaining the best qualifying quality found.
  • Resize a transparent PNG proportionally when lossless re-encoding alone cannot meet the selected target.
  • A batch of 15 product photos exports as one ZIP after processing.
Privacy, limits and tool details

Key facts

Best for
Reducing image file size before web publishing, CMS uploads, email or handoff
Supported inputs
JPG, JPEG, PNG and WebP
Supported outputs
Same format as the original JPG, PNG or WebP file
Compression controls
Quality settings or a target maximum file size from 5 KB to 10 MB
Batch limit
Up to 20 images in Quality mode; 10 per Target-size run
File limit
25 MB per file
Pixel limit
40 megapixels and 16,384 pixels per edge
Comparison
Original and result previews at Fit or 100%; linked scrolling, pixel dimensions and exact byte counts
Privacy model
Local browser processing; no image upload
Privacy

Privacy and processing

Processing method: Images are decoded with browser image APIs, drawn to canvas, optionally resized, re-encoded with canvas export and downloaded as Blob files.

Privacy model: Files are processed locally in the browser. ToolMint does not upload or store image contents, filenames or embedded metadata.

Limitations

Limitations

  • Compression savings depend on the source image, format, dimensions and selected quality; some already-optimized images may not get smaller.
  • JPG and WebP compression can introduce artifacts at lower quality settings.
  • PNG encoding is lossless, but resizing changes pixels. At unchanged dimensions, PNG re-encoding may save little or increase file size.
  • A target is a maximum, not an exact byte size. Very small targets may not be reachable with the selected format and dimensions.
  • Target-size mode uses bounded browser encoding attempts, so the smallest possible encoder output is not guaranteed.
  • GIF, HEIC, AVIF, SVG and TIFF are not supported by this compressor.
  • Canvas-based export generally does not preserve embedded metadata from the source file.
Features

Benefits

Client-side processing

Images are compressed locally in your browser with Canvas APIs and Blob downloads.

Format-preserving

JPGs stay JPG, PNGs stay PNG and WebPs stay WebP. PNG and WebP alpha is retained where browser canvas export supports it.

Quality or target size

Choose encoder quality or aim for a maximum file size with bounded browser processing.

Before-and-after inspection

Compare the actual result with the original at Fit or 100% detail. Inspect dimensions and exact byte counts before downloading.

Batch + ZIP download

Process up to 20 images in Quality mode or 10 per Target-size run, then download completed results as a ZIP.

Tips

Pro tips

  • Start with Auto for JPG or WebP, then compare fine detail and the actual file size before adjusting quality.
  • PNG is lossless in this workflow; reduce dimensions when a smaller target requires fewer pixels.
  • WebP can often produce smaller website images than JPG at a similar visual quality, depending on the source.
  • A target is a maximum. Review the Target met status and actual output size before uploading the file elsewhere.
Watch out

Common mistakes to avoid

  • Compressing an image twice — stacked JPEG artifacts start to show.
  • Using PNG for photographs when JPG or WebP would be more appropriate.
  • Serving 4000-px hero images in a 400-px slot — resize to what you actually display.

Sources

Detailed Image Compressor guide

Worked example: a JPG upload with a 100 KB limit

Imagine a form accepts JPG images up to 100 KB. Your photo is larger than that limit, and the form also requires a minimum image width. This is an illustrative workflow, not a measured compression result or a guarantee that a particular photo will fit.

Start in Target size mode with the 100 KB preset. Leave Allow proportional resizing to meet target off for the first attempt if you need to retain the photo's dimensions. ToolMint tries a bounded set of JPG quality settings; inspect both the resulting file size and fine details such as text, hair and edges.

Result Next check or action
Target met Check the output dimensions and visual quality before submitting the downloaded file.
Target not reached If the form permits smaller dimensions, enable proportional resizing and retry. Otherwise use another image or ask whether the upload limit can change.
Original kept unchanged Check the original size and possible embedded metadata; retaining a file does not remove its metadata.

The presets are 20, 50, 100, 200 and 500 KB, with a custom maximum from 5 KB to 10 MB. The tool uses 1,024 bytes per displayed KB. Check the receiving service's own byte limit if it uses a different definition. A result can be below the selected maximum; it is not padded to an exact size. Target met describes this tool's size check, not acceptance by another service.

Choose quality control or a target maximum

Use Quality when you can review the image and choose an acceptable trade-off yourself. Start with Auto, compare the download with the source, and adjust as needed. An 82% encoder setting does not mean that 82% of the original detail survives or that file size falls by 18%.

Use Target size when a form, CMS or delivery workflow imposes a maximum. JPG and WebP use bounded quality attempts. The tool keeps the highest-quality qualifying candidate it finds within those attempts, rather than claiming an exhaustive search of every encoder setting.

If an unresized Quality-mode encode would be larger, ToolMint can keep the original. Target-size mode can also keep an original that already fits, or an original smaller than an unsuccessful generated candidate. Review the result row rather than assuming every download is a newly encoded image.

Why a PNG may need fewer pixels

PNG output does not use the JPG/WebP lossy quality control. Moving the quality slider is therefore not a way to shrink a PNG in this tool. Re-encoding at the same dimensions may save little or produce a larger candidate.

For a transparent logo or screenshot, decide whether smaller dimensions still preserve readable text and useful detail. Proportional resizing keeps the aspect ratio, but changes the pixel content; lossless PNG encoding does not make that resizing lossless.

For a photographic PNG that does not need transparency, use Image Format Converter to create a JPG or WebP copy, then compress that copy. Conversion is an explicit separate step; the compressor does not intentionally switch a PNG to JPG to satisfy a target. Keep the original when transparency, color fidelity or archival information matters.

Fit dimensions before reducing quality further

A 4000 × 3000 image fitted within a maximum width of 1200 pixels becomes 1200 × 900 when no tighter height limit applies. That is a dimension calculation, not a prediction of the output file size. The optional maximum width and height fields fit an image proportionally without upscaling.

Before enabling automatic resizing to meet a target, check any minimum width, height or print-resolution requirement at the destination. A smaller download can still be unsuitable if its dimensions are too small. Use Image Resizer when you need exact dimensions or crop-and-fit controls, and the 4K compression guide when keeping 4K dimensions is part of the requirement.

Inspect a 4K image before downloading

After compression, select Compare on a completed image. The panel shows the original and the actual output, with their pixel dimensions, formatted sizes and exact byte counts. Use Fit images for the whole picture and 100% detail to inspect faces, text, fine edges and gradients. At 100%, one image pixel occupies one CSS pixel; physical screen pixels also depend on the device's display scaling. See MDN’s devicePixelRatio explanation.

Scroll or swipe inside either preview to move through both images. Scrolling follows the same relative area. Center detail returns both previews to the middle. A checkerboard makes transparent areas visible. If dimensions differ, the two previews show their own native pixel sizes at 100%; linked scrolling is not a pixel-difference measurement or a quality score.

To keep a 3840 × 2160 source at 3840 × 2160, leave both maximum-dimension fields blank and keep automatic target resizing off. The result panel reports Original dimensions preserved only when the actual source and output dimensions match. Preserving dimensions does not make lossy compression lossless.

Try another setting from the original

Close the comparison, change the quality, target or resize controls, then choose Recompress beside the image. Every attempt reads the original file, which avoids repeatedly compressing an already compressed result. The new completed output replaces the previous result and is the file used by Compare, Download and ZIP. Changing controls alone does not alter an existing result.

If the original is already the smaller valid file, ToolMint may keep it unchanged. The comparison says so; identical previews and zero savings are expected in that case. Check any target warning before downloading. Recompressing with the same settings is not a promise of a smaller file.

Inspect the delivery copy

Compare the source and downloaded copy at the size where people will view it. Check text, gradients, edges and transparency as well as byte size. Work from the untouched source when retrying, rather than repeatedly recompressing the previous JPG download.

Canvas re-encoding generally does not preserve source metadata, but an unchanged original can retain it. Use Image Metadata Viewer to inspect a file and Image Metadata Remover when removing supported metadata is a separate requirement. Verify the actual final file; compression is not proof that all sensitive metadata is gone.

Frequently asked questions

Yes. After compression, choose Compare for original and result previews. Fit shows the full images; 100% detail shows one image pixel per CSS pixel, with linked scrolling. The panel reports actual dimensions and byte counts. Close it, adjust settings and choose Recompress to start a fresh attempt from the original file. Supported formats and the 25 MB, 40 megapixel and 16,384 pixel edge limits still apply.

JPG, JPEG, PNG and WebP. Other formats like GIF, HEIC and TIFF are not supported here.

Yes. The Image Compressor is free to use with no account, signup or watermark.

No. Compression runs entirely in your browser using the Canvas API. Images never leave your device.

Lossy JPG and WebP compression discards some data by design. Many photos can look similar at moderate quality, but results depend on the image and should be reviewed. PNG export is lossless in this workflow.

Yes. Quality mode supports up to 20 files per batch and Target-size mode supports up to 10 files per run, with a 25 MB and 40 megapixel limit per file. Use Download all (ZIP) for completed results.

Yes. The tool works on iOS Safari and Android Chrome. Tap the upload area to open your camera roll.

There is no universal percentage. Start with Auto for JPG or WebP, compare the output with the source at its intended viewing size, then adjust. PNG does not use this lossy quality control, and resizing changes its pixels.

PNG is lossless so it can only shrink so far. Photos saved as PNG typically drop dramatically if converted to JPG or WebP instead.

PNG and WebP can retain transparency where browser canvas export supports it. Check the downloaded file, especially around partially transparent edges. JPG does not support transparency.

Yes — the Download all (ZIP) button bundles every successfully-compressed file into a single archive.

Yes. Choose Target size and select a preset or enter a custom maximum. JPG and WebP use bounded quality search. PNG may need proportional resizing, and some targets cannot be reached without changing dimensions or format.

ToolMint returns the smallest safe result produced by the bounded attempts and labels it Target not reached. It does not claim that an oversized result met the target.
6 min read Works in browser Privacy notes