Skip to content
LineOtter

JPG vs PNG vs WebP: which image format to use

A practical comparison of the three most common web image formats, with a simple rule for picking one.

JPG (JPEG)

Lossy compression designed for photographs. Tiny files for natural scenes, universally supported, no transparency. Repeated editing and re-saving gradually degrades it.

PNG

Lossless: every pixel is stored exactly. Ideal for screenshots, diagrams, logos and anything with text or transparency. Photos saved as PNG are usually several times larger than the same photo as JPG.

WebP

A newer format supporting both lossy and lossless modes plus transparency. All current major browsers support it, but some desktop software, printers and older upload forms do not.

A simple rule

Photo going somewhere that might be old-fashioned: JPG. Graphic, screenshot or anything needing transparency: PNG. Web page you control: WebP. When a site rejects your file, convert rather than re-shoot.

JPG

Designed for photographs. It removes detail the eye is least likely to notice, which makes photos small, but sharp edges such as text and line art pick up faint smudges. It has no transparency, so transparent areas become a solid colour.

PNG

Lossless: every pixel is kept exactly. Ideal for screenshots, logos, diagrams and anything with transparency. For photos it produces large files, often five to ten times the size of a good JPG.

Converting without losing quality

Converting to PNG never adds damage, but it cannot remove the artefacts already in a JPG. Converting to JPG re-encodes once; at around 90% quality the change is very hard to see.

Avoid round trips such as JPG to PNG and back to JPG, which re-encode twice. Keep the original file and convert from it each time you need another format.

Transparent PNG or WebP images converted to JPG get a background colour. Pick one that matches where the image will be used, usually white.

Which format do upload forms want?

Most forms accept JPG, and many accept PNG. WebP support is growing but still patchy in older systems, government portals and print services, which is the most common reason people need to convert a WebP image.

Quick decision table

Photo for a form, email or print shop: JPG at 85–92% quality. Screenshot with text, a logo or a diagram: PNG. Image for your own website: WebP, with JPG as a fallback if you support very old browsers. Anything with a transparent background: PNG or WebP, never JPG.

Tools for this