Image Compressor
Re-encode an image at a chosen quality to reduce its byte size, and compare before and after.
- Runs locally in your browser
- No upload required
Capabilities
- Drag and drop
- Local file intake
- Download result
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Re-encode the image as image/webp at quality 60 to reduce its size.
How it works
- Decode the local file with the browser's image decoder.
- Draw it at its original dimensions onto a canvas.
- Encode the canvas as image/webp at quality 60.
- Report the source and output byte sizes so the reduction is explicit.
- Higher quality means a larger file; the mapping is the browser encoder's own.
Methodology
- Decode the selected file locally; refuse an undecodable or oversized file with a named finding.
- Re-encode the decoded pixels as JPEG, WebP or AVIF at the requested quality (PNG is refused because it has no quality control).
- Report the source and output byte sizes; a negative reduction is shown honestly rather than hidden.
Usage
- Choose or drop an image.
- Pick a lossy output format and a quality value (lower is smaller).
- Run the compression to see the source and output sizes, then download the smaller file.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
WebP at quality 60
{
"sourceMime": "image/jpeg",
"sourceWidth": 1600,
"sourceHeight": 900,
"outputType": "image/webp",
"quality": 60
}JPEG at quality 40
{
"sourceMime": "image/jpeg",
"sourceWidth": 800,
"sourceHeight": 600,
"outputType": "image/jpeg",
"quality": 40
}Limitations
Quality is the encoder's own
The quality value is passed straight to the browser's canvas encoder. The tool does not invent a compression ratio or a target byte size; it reports the real output size so you can choose a value that meets your budget.
A smaller quality usually means a smaller file and lower fidelity; the page documents the mapping rather than claiming a guaranteed saving.
Frequently asked questions
- Can compression make my image bigger?
- Yes, if the source was already heavily optimised or the requested quality is high. The tool shows both sizes so the result is never misleading.
- Is the file uploaded?
- No. The image is decoded and re-encoded entirely in your browser.
Sources
- RFC 9649 — WebP Image Format — IETF
- ISO/IEC 10918-1 — JPEG image coding — ISO/IEC
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.