Image Tools
Image Compressor
Updated
Compression settings
Processing stays in this browser and makes no file-upload or conversion request.
One static JPEG, PNG, or WebP; 1 byte–8 MiB; at most 8192 px per side and 16000000 pixels.
Choose a validated image and compression settings.
Bounded browser re-encoding
The tool checks the declared MIME, JPEG/PNG/WebP signature, static-image structure, stored geometry, browser decode, and decoded geometry before drawing. Quality is divided by 100 only after strict validation. The requested output MIME must match the encoder Blob exactly.
JPEG output receives an opaque white canvas before drawing. WebP may retain alpha. Animation is rejected rather than silently flattened.
Worked example and limitations
A 1200 × 800 PNG can be re-encoded as WebP at quality 80 while remaining 1200 × 800. The resulting byte count cannot be predicted and may be larger or smaller.
Canvas output may omit metadata, normalize decoded orientation, or change color and profile behavior. Review the downloaded output. Processing is local, but this is not guaranteed privacy, deletion, malware scanning, archival fidelity, or regulatory compliance.
Check an upload limit using actual output bytes
A 200 KiB limit means 200 × 1024 = 204,800 bytes; a service using decimal 200 kB may mean 200,000 bytes instead. Follow the destination's stated limit and compare it with the downloaded file, not just the percentage reduction.
For illustration, reducing 300 KiB to 220 KiB saves 80 KiB, or 26.67%, but still leaves the file 20 KiB over a 200 KiB limit. This tool has no target-byte-size setting. Try a different quality or JPEG/WebP format manually, then check the new size and visible detail; a lower quality setting does not guarantee a particular byte count.
Compression here keeps the decoded width and height. If fewer pixels are acceptable, resize first in the already-linked Resizer and then compare the exports. Keep an original copy and restart from it when comparing settings rather than repeatedly re-encoding a lossy result. For a transparent PNG source, JPEG flattens transparency onto white; WebP can retain alpha. Inspect edges and text as well as file size before choosing.
Re-encode one static raster as JPEG or WebP without guaranteeing a smaller file.
Quick answers
What this calculator answers
- Purpose: Re-encodes one validated static raster as JPEG or WebP without resizing it.
- Limits: Accepts JPEG, PNG, or WebP up to 8 MiB, 8192 pixels per side, and 16000000 decoded pixels.
- Boundary: Output can be larger than the source; this tool does not guarantee reduction, metadata preservation, or lossless quality.
Transparency note
Accuracy and limitations
Calzivo tools are built for practical estimates, conversions, and checks. Some tools use standard formulas or simplified assumptions, and results can be affected by input accuracy, rounding, units, local rules, or changing official requirements.
File and image results can vary by file structure, browser support, size, fonts, compression, and format limits. Review downloaded files before using or sharing them, and avoid sensitive files unless you understand how the tool handles them.
Reference check
Sources and references
These references provide background context for the topic. They do not replace official advice or documents for personal decisions.
- File API
World Wide Web Consortium
- Canvas toBlob
WHATWG
- ImageBitmap and image decoding
WHATWG
How to Use This Tool
Use these steps to enter the right inputs and interpret the result correctly.
Choose one static JPEG, PNG, or WebP file.
Select JPEG or WebP output and a whole-number quality from 1 to 100.
Choose Compress Image, review the preview and signed size change, then download or Reset.
