XEVMS

How to choose between PNG, JPEG and WebP

Pick a format for screenshots, photos or transparent artwork and compare exports before sending.

Start with what the image contains

For a screenshot with small text or a diagram with sharp edges, start with PNG and check the text at its final display size. For a photograph with many colours, compare a JPEG and a WebP export. If you need a transparent background, compare PNG and WebP and check the exported edges against a dark and a light background.

The XEVMS converter fills transparent areas with white for JPEG. It produces a still image, so use another workflow if you need to preserve animation. Keep your original in case you need to make a larger version or export again.

Choose the dimensions before comparing file sizes

Suppose a 2400 × 1600 product photo will be shown at 1200 × 800. Resize the image to those dimensions first. Halving each edge gives you one quarter of the original pixel count. That does not predict the compressed file size because image detail and the format also matter.

Export the resized version in each format you are considering. Compare the downloaded file sizes and view each export at 100% zoom. Look at product edges, small lettering and areas of flat colour before deciding which file to use.

Check where the file will be opened

For a website, test the actual page on the browsers you intend to support. For an upload form or a document, check which formats it accepts and any size limit. Keep a JPEG fallback when the receiving application accepts JPEG and rejects WebP.

Tools