compress

Image Compressor

Shrink JPG, PNG and WebP to a target file size or pixel dimension — fully in your browser. Same format in, same format out, just lighter.

FreeClient-sideBatchTarget MB

How target-size compression works

Most online compressors guess a quality level and hope. We use a binary search on the encoder: it tries a quality, measures the output size, and adjusts until the file lands at or below the target you set. This converges in two or three passes for almost any photo.

The dimension slider is the second lever. Mobile cameras emit 4032×3024 JPGs that you then drop into a CMS template that displays them at 1200 pixels wide — the full resolution is dead weight. Cap the longest edge at the size you actually need and the file shrinks linearly before the quality compressor even runs.

PNG compression is bounded by the format: PNG is lossless, so the savings come from re-encoding with optimised tables. Expect 10-30% on screenshots, much less on already-optimised UI assets. For photos always prefer WebP or JPG.

How to use

  1. 1

    Drop in your files.

    Mix formats freely — each file is compressed in its own format.

  2. 2

    Set a target size.

    0.5 MB is a sensible blog default; 1.5 MB is safe for hero images.

  3. 3

    Set a max dimension.

    1920 px covers full-screen on most laptops. Mobile-only assets can drop to 1080.

  4. 4

    Sign in and compress.

    Each file runs through a worker so the page stays responsive.

  5. 5

    Download.

    Original files in the picker are untouched — you can re-compress with different settings.

Read next

Related tools

code
Open source credit. Built on top of browser-image-compression (MIT) with UX inspired by Squoosh.