Image Compressor

Compress JPG and WebP images right in your browser. Files never leave your device.

Shrink JPG, PNG and WebP images in the browser with Canvas, so a photo of a client's product never has to be uploaded to a stranger's server just to get smaller.

What actually happens when you compress

For JPEG and WebP, compression is lossy: the encoder discards detail the eye is less likely to notice, and the quality slider controls how much. Moving from quality 95 to 80 typically halves the file size with no visible difference on a photo. Below about 60, blocking artifacts appear in smooth gradients such as skies.

PNG is lossless, so re-encoding at lower quality is not an option. The practical approach for screenshots and graphics is to convert to WebP, which handles flat colour well and is supported by every current browser.

Resize before you compress

The single biggest saving is usually dimensions, not encoder settings. A 4000-pixel-wide photo displayed in a 800-pixel container wastes five times the bytes it needs. Resizing first and compressing second beats any quality slider.

For retina displays, target twice the CSS pixel width. Beyond that you are shipping bytes no screen will show.

Why local compression is safer

Product photos, identity documents, screenshots of internal dashboards and anything under NDA should not be pasted into a random website. The upload is invisible to you and permanent on their side.

This tool reads the file with the File API, draws it to a canvas, and exports with toBlob. The bytes never leave the tab, and it works offline.

Frequently asked questions

How much smaller will my image get?
Photos at quality 80 typically lose 50 to 70 percent. Screenshots converted to WebP often lose more. A PNG of a photo can shrink dramatically because PNG was the wrong format to begin with.
Is EXIF data removed?
Yes. Re-encoding through Canvas drops metadata, which also removes GPS coordinates — usually desirable before posting a photo publicly.
Is there a file size limit?
Only your browser's memory. Very large images, above roughly 100 megapixels, may fail to decode on a low-memory device.