Image Compressor

Compress JPG, PNG, or WebP images. Adjust quality and optional max dimension. Browser-only.

Drag & drop your PDF here

or browse files

Single file · PDF supported

Why compress images?

Uncompressed photos from a modern smartphone can easily be 4–8 MB. At that size, a page with ten product images loads 40–80 MB — slow on mobile, expensive on metered connections, and penalized by Google's Core Web Vitals scoring. Compressing to 200–500 KB per image typically has no perceptible quality difference for web display while cutting load time by 80–90%.

JPEG vs PNG compression

JPEG uses lossy compression: some image data is discarded during encoding. The quality slider (30–95%) controls how aggressively the encoder discards data. A quality of 80% is usually the sweet spot for photos — good enough to look sharp at normal viewing distance, small enough to load fast. PNG uses lossless compression: no data is discarded, so quality is always perfect but file sizes are larger. This tool re-encodes PNG files as PNG and JPEG/WebP files as JPEG.

Max dimension resize

If you upload a 4032×3024 photo but only need a 1200px wide web image, scaling it down before compression cuts the pixel count by 83%, making the output dramatically smaller regardless of quality setting. The resize slider scales the longest edge to your target pixel count, preserving the aspect ratio.

Before/after comparison

After compression, the tool shows you the before and after file sizes in KB and the percentage reduction. If the output is unexpectedly larger than the input, the image was already well-compressed — try reducing quality or enabling a max dimension.

Privacy

Everything happens in your browser. No image data is sent to any server. The tool uses the HTML Canvas API to re-encode images locally.