trsh

Format choices

JPEG vs PNG vs WebP: how to choose

There is no single best image format. The right choice depends on the image, transparency, file-size budget, and where the file must work. Start with what the image contains, then check compatibility.

At a glance

FormatGood starting pointTrade-off to know
JPEG / JPGPhotographs and broad compatibilityLossy encoding; no transparency. Transparent pixels become white when trsh exports JPEG.
PNGScreenshots, sharp-edged graphics, and transparencyLossless output can be much larger for photos. Lower quality settings in trsh quantize colors, so they are not visually lossless.
WebPWeb images and smaller photo exports, including transparent imagesCheck the destination’s accepted formats before uploading; some older portals and apps only accept JPEG or PNG.

For photographs

Photographs contain gradual color and texture, so lossy compression can often reduce their size substantially. WebP is a useful first option when the destination supports it. JPEG remains a practical choice when you need wide compatibility or the receiving form explicitly requests JPG.

Re-encoding an already compressed JPEG cannot restore detail that was lost earlier. If the image starts to look blocky or soft, raise the quality, reduce the resize amount, or return to the original source instead of repeatedly compressing exports.

For logos, screenshots, and diagrams

PNG is often a safer choice for text, line art, and graphics with sharp edges because it can encode without the same lossy artifacts as JPEG. It also supports transparency. The downside is size: a large photo saved as PNG may be bigger than the original or bigger than a WebP or JPEG version.

trsh can quantize PNG colors when you lower the quality setting to target a smaller file. That can make the export smaller, but the result is no longer pixel-identical to the source. Inspect gradients, small text, and thin edges before using it.

When transparency matters

PNG and WebP can preserve transparent pixels. JPEG cannot. When trsh exports a transparent image to JPEG, transparent regions are composited over white; choose PNG or WebP instead if the background must remain transparent.

For a web page

Use a format your site and audience support, then compare the actual output rather than assuming a format name guarantees a smaller file. Try WebP for a photo or transparent graphic, and retain PNG when crisp edges or lossless output matter. Check image appearance at its intended display size as well as the file size.

For a form, email, or older application

Follow the destination’s listed format requirements first. A smaller WebP file does not help if an upload form rejects WebP. If the form accepts JPEG, use JPEG for an opaque photo; use PNG when transparency or crisp graphic edges are necessary and the size is acceptable. For strict limits, see the under-200-KB workflow.

Format conversion is not a quality repair. Converting a JPEG to PNG does not bring back detail lost in the JPEG, and converting a small image to another format can make the file larger. Keep your original and judge the exported result.

Related: fix a file that got larger or looks blurry.