What it does
An image compressor re-encodes a picture at a lower quality or smaller dimensions to reduce its file size. This one runs entirely in the browser with the Canvas API, so the original never leaves your device. The useful part is the comparison: quality versus bytes, not just a smaller file.
How it works
The image is decoded, optionally resized, and re-encoded with a quality setting. For JPEG and WebP, quality controls the quantisation of detail. For PNG, the encoder is mostly lossless, so savings come from resizing or converting to a lossy format.
Re-encoding a JPEG is generation loss. Every pass discards a little more detail, and repeated compression produces visible artefacts. Compress once from the original, and keep that original.
Metadata is dropped in most Canvas pipelines, including EXIF, GPS and colour profiles. That is good for privacy and bad for colour accuracy: a wide-gamut photo without its profile may look different in other applications.
Dimensions matter more than quality for page weight. Halving the width cuts pixels by roughly 75%. Serve the size the layout needs, then choose a quality that looks acceptable at that size.
The preview is the point. Slide quality down until artefacts appear, then step back up. Numbers alone do not tell you whether text, gradients or skin tones still look right.
When to use it
- Shrink a photo before uploading it to a form with a size limit.
- Compare quality settings for a hero image.
- Remove camera metadata as a side effect of compression.
- Resize a screenshot to the dimensions a page actually displays.
Glossary
- Lossy compression
- Discards detail to reduce size; JPEG and lossy WebP use it.
- Lossless
- Preserves every pixel; PNG and lossless WebP use it.
- Generation loss
- Quality degradation from repeated lossy re-encoding.
- Colour profile
- Metadata that defines how pixel values map to colours.
- Canvas API
- The browser drawing surface used to decode, resize and encode images.
Frequently asked questions
Is my image uploaded?+
No. Decoding, resizing and encoding happen in the browser. The file stays on your device.
Why did the file get larger?+
The original may already be optimised, or a PNG may be re-encoded inefficiently. Try quality reduction, resizing or a different format.
Does compression remove EXIF?+
Usually, because the Canvas pipeline writes a new file without metadata. That improves privacy but also drops orientation and colour profile data.
What quality should I use?+
Start around 75–80 for photos at display size, then inspect the preview. Screenshots and graphics with sharp text often need higher values.
Can I compress a PNG losslessly?+
Canvas re-encoding does not guarantee a smaller PNG. Lossless PNG optimisation needs specialised tools; converting to WebP often saves more.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/image-compressor?v=Drop%20an%20image

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


