Image Compressor
Shrink JPEG and WebP images with an adjustable quality slider and watch the file size drop in real time. Everything runs in your browser — your image is never uploaded anywhere and nothing is stored.
How to compress an image
- Click Choose an image (or drag one onto the box) to load a JPEG, PNG, WebP or GIF.
- Pick an output format — JPEG for wide support, WebP for the smallest file — and drag the quality slider.
- Watch the compressed size and % saved update live, then click Download to save the result.
Lower quality means a smaller file with more compression; the default of 0.8 keeps photos looking sharp while cutting
most of the weight. The width and height stay the same — only the encoding quality changes — and the image never leaves your browser.
More PAYATE tools
Frequently asked questions
How does the image compressor work?
It loads your image into the page, draws it onto an HTML <canvas> and re-encodes it with canvas.toBlob() at the quality you choose. Lowering the quality discards fine detail that the eye barely notices, producing a much smaller file — all without a round trip to any server.
Is my image uploaded to a server?
No. Compression runs entirely in your browser — the image never leaves your device and nothing is uploaded or stored. It is safe for private photos, screenshots and documents you would not want to transmit.
Which output format should I pick?
JPEG is the most widely supported and great for photographs. WebP usually produces a noticeably smaller file at the same visual quality and is supported by all modern browsers — choose it when the file will be used on the web and size matters most.
What does the quality slider do?
The slider sets the encoder quality from 0.1 (smallest file, most compression) to 1.0 (largest file, best quality). The default of 0.8 is a good balance. The preview and sizes update live, so you can find the point where the file is small but still looks good.
Why can the compressed file sometimes be larger?
If the source is already a highly optimised JPEG and you pick a very high quality, re-encoding can add back overhead and grow the file. Transparent PNGs also gain size when forced to a quality setting. Lower the quality or try WebP, and keep the result only when the "saved" figure is positive.
Does compression reduce the image dimensions?
No. This tool keeps the original width and height and only lowers the encoding quality to shrink the file. The pixel dimensions of the compressed image are identical to the original.