Reduce image file size and check the tradeoffs
Compare dimensions, quality settings, and downloaded sizes, with a reproducible PNG-to-JPG example measured in this converter.
Change one variable at a time
Start with the receiving service's format and dimension requirements. Reducing width and height removes pixels; changing compression quality can remove detail while retaining the same dimensions. Keep the original and first compare outputs at unchanged dimensions.
A measured example from this application
Measured on 2026-11-08 using Chromium 156.0.8078.4. Input: 512 × 384 pixels. Opaque synthetic RGB gradient with seeded fine noise and one solid rectangle; no photograph or transparency. ImageMagick WASM 0.0.43; original dimensions, quality setting changed, other settings left at defaults.
These byte sizes describe one generated fixture, not a typical savings claim for photographs or screenshots. Both JPEG outputs were independently decoded and checked to retain the original dimensions. Lower byte size alone does not establish acceptable visual quality.
| Output | Setting | Downloaded bytes |
|---|---|---|
| PNG source | Lossless canvas export | 337,076 |
| JPG | 82% | 33,025 |
| JPG | 60% | 13,950 |
Reproduce the comparison
On the PNG to JPG page, add the same source to separate runs and set Quality (%) to 82 and then 60, leaving dimensions unchanged. Download both files and compare their sizes and visible details. The repository's measure-image-example script generates the exact seeded fixture and repeats these conversions through the real interface.
Choose the result by its purpose
- Inspect text and straight edges for screenshots and diagrams.
- Inspect smooth gradients and fine texture for photographs.
- Check transparency before using a format with no alpha channel.
- Test the receiving application: its own recompression or size limits may change the outcome.
When a file gets larger
Lossless PNG can be larger than a previously compressed photograph. A simple flat-color graphic may already compress efficiently as PNG. Compare the original as a legitimate option; repeated lossy exports should not become a substitute for choosing an appropriate source and output.
Related guides and tools
Technical references
Content updated