Media & Files · Free Tool
Image Compressor
Compress and resize JPEG, PNG, and WebP images entirely in your browser — no upload, adjustable quality.
PNG output is lossless — the quality slider has no effect when the format is PNG.
About this tool
Select an image, adjust the quality slider, optionally cap the maximum width, and choose an output format (keep original, or force JPEG, WebP, or PNG). The image is redrawn to a canvas and re-encoded using your browser's native image codecs — nothing is uploaded anywhere.
Smaller images mean faster page loads, lower bandwidth costs, and better Core Web Vitals scores. The before/after size comparison and instant preview make it easy to find the quality level that keeps images looking good while cutting file size significantly, often by 60-90% for photographic JPEGs.
Common uses
- Shrink photos before uploading them to a website, CMS, or email
- Convert a PNG screenshot to a smaller JPEG or WebP file
- Resize an oversized image down to a sensible max width for the web
Frequently asked questions
Why does the quality slider do nothing for PNG output?
PNG is a lossless format — it never discards image data to save space, so there is no quality parameter to tune. To shrink a PNG meaningfully, reduce its dimensions or convert it to JPEG/WebP instead.
Is my image uploaded to compress it?
No. The image never leaves your device — it is decoded, resized, and re-encoded entirely in your browser using the Canvas API.
Which format gives the smallest file size?
WebP generally produces the smallest files at a given visual quality for photos, followed by JPEG; PNG is best reserved for images that need transparency or sharp-edged graphics like logos and icons.
Is my data uploaded to a server?
No. This tool runs entirely in your browser using JavaScript — nothing you type is transmitted, logged, or stored anywhere. You can even use it offline once the page has loaded.