CyberCodeLab logo — neon green lab flask with terminal symbolCyberCodeLab

Image Compressor

Free online image compressor. Upload a JPG or PNG and compress it to reduce file size using a quality slider. Preview before and after file sizes. Runs entirely in your browser.

image-compressor.run

Click to upload JPG or PNG

Output is always JPEG

How does image compression work?

Lossy compression (JPEG) discards visual detail the human eye barely notices — subtle color gradients, high-frequency texture — in exchange for dramatically smaller files. The quality slider controls this trade-off: 80% quality typically looks identical to the original at half the size or less.

For web pages, compressed images are one of the highest-impact performance wins: images are usually 50%+ of a page's weight. Compression here runs in your browser via the Canvas API — private by design.

How to use

  1. 01Upload a JPG or PNG image using the upload area.
  2. 02Drag the Quality slider to control compression — lower quality means smaller file size.
  3. 03Compare the original and compressed previews side by side.
  4. 04When satisfied, click Download Compressed Image to save the result as JPEG.

Frequently asked questions

What quality level should I use?
For web use, 75-85% quality gives a good balance between file size and visual quality. Below 60% you may start to see compression artefacts, especially on photos.
Why is the output always JPEG?
JPEG is the most widely supported lossy image format and gives the best compression ratios for photographs. For images with transparency or sharp edges, use the Image Format Converter to convert to WebP instead.
Is my image sent to a server?
No. Compression is done entirely in your browser using the HTML5 Canvas API. Your images are 100% private.

Related tools