How compress image works
Large images slow down pages, email attachments and everyday sharing. This compressor gives you a quality control for photographic images without sending the source to a server. JPEG and WebP inputs are re-encoded as JPEG; PNG inputs are saved as WebP so a quality setting can have a meaningful effect.
The browser decodes the selected image, paints its pixels to a canvas and exports a new file at your chosen quality. Compare the displayed output size with the original, and try several settings if the first result is not small enough. Lower quality generally produces fewer bytes and more visible artifacts around fine edges.
Steps
- Select a JPG, PNG or WebP image.
- Adjust the available controls for your task.
- Process and download the output. Keep the original as a backup.
Formats and limits
Quality changes are lossy. Browser encoding cannot promise an exact target size. Input decoding depends on your browser. Files are limited to 25 MB each and 40 megapixels to protect browser memory.
Privacy
The processing code runs locally in your browser. This tool does not upload the selected image to Do The IMG. Avoid sharing downloaded files if they contain sensitive content.
Common questions
Can I compress a PNG and keep it PNG?
This quality slider exports PNG inputs as WebP. Use Convert to PNG for a lossless PNG export; its file size may be larger.\nWill this reach an exact file size? | No. The encoder output depends on the image content and browser. Adjust quality and check the resulting size.