How it works
- Select a JPG, PNG or WebP.
- Set the maximum width and height, output format and quality.
- Optimize locally and compare dimensions, format and exact file size.
- Download the result if it fits your quality and size target.
Practical example
A 4000 × 3000, 4.8 MB JPG can be limited to 1920 × 1440 and encoded as WebP. The result reports its actual size and whether the size target was met.
Formula and explanation
The image is scaled proportionally to fit inside both maximum dimensions and is never enlarged. Output quality affects JPEG and WebP; PNG uses lossless browser encoding and can remain larger for photographic content.
Changing to WebP often helps web photographs, while PNG is appropriate for transparency and sharp graphics. JPEG has broad compatibility but replaces transparency with your chosen background colour.
Canvas encoding removes embedded metadata. Results vary and may be larger. An unmet size target is labelled. Batch results can be downloaded as ZIP. Processing stays local.