Skip to tool content
Toolioz logoToolioz

Image Compressor

A JPEG, PNG, or WebP is reduced by a quality setting or a target file size. The image is not uploaded.

Local compression

Compression runs in the browser. The image is not uploaded.

Quality or target size

The result follows the quality slider, or a target file size when one is entered.

JPEG, PNG, and WebP

JPEG, PNG, and WebP can be read. The downloaded file is a JPEG.

About JPEG image compressor

Reads a JPEG, PNG, or WebP and saves a JPEG. A quality slider is used at full size. A target size in KB searches scale and quality, and can still miss the target.

How to Use

  • 1Choose a JPEG, PNG, or WebP file.
  • 2Set the quality slider, or enter a target size in KB.
  • 3Click Compress Image Now.
  • 4Compare the preview with the original.
  • 5Download the JPEG. The filename starts with compressed_.

Key Benefits

  • The image is drawn to a canvas in the browser and is not uploaded.
  • Without a target, scale stays at 1 and the slider sets JPEG quality.
  • A target can shrink the image to 10% scale and quality 0.05.
  • That fallback can still be larger than the target.
  • The saved type is image/jpeg.

Frequently Asked Questions

No. Compression uses the canvas in the browser. The image is not uploaded.

JPEG, PNG, and WebP can be compressed. The saved file is a JPEG.

A target in KB starts a search over scale and JPEG quality. The search can begin at 50% or 30% scale when the target is far below the original file. If nothing fits, the saved JPEG uses quality 0.05 and 10% scale, which can still be larger than the target.

No. The output is a JPEG from canvas.toDataURL. A preview is shown before the file is downloaded.