Image format · 15 November 2026
JPG vs PNG vs WebP: which format when
Every "save as" dialog asks you to pick a format. The right answer depends on what the image is, where it is going, and whether you care more about quality, transparency, or file size.
What the names actually mean
- JPG (JPEG) is a lossy format for photographs. It compresses smooth color gradients extremely well by discarding fine detail you usually cannot see. It has no transparency support, and every re-save loses a little more quality.
- PNG is lossless and supports transparency. It is ideal for graphics with sharp edges — logos, text, screenshots, diagrams — but photographs stored as PNG are much larger than the same image as JPG.
- WebP is a modern format that offers both lossy and lossless modes, plus transparency. For web use it typically produces smaller files than JPG at similar quality and smaller than PNG for graphics, and it is supported by every current browser.
A simple decision guide
- Photos from a camera or phone → JPG (or lossy WebP for the web).
- Logos, icons, text, diagrams, screenshots → PNG (or lossless WebP).
- Images that need transparency → PNG or WebP. (JPG cannot do it.)
- Web publishing where file size matters → WebP, almost always.
- Print work → JPG at high quality, or TIFF/PNG for maximum fidelity.
- Legacy systems and email attachments → JPG or PNG, because they are universally accepted.
Why WebP usually wins on the web
WebP uses better compression math than the decades-old JPG and PNG formats. A photo that is 400 KB as JPG might be 280 KB as WebP with the same visible quality; a logo that is 60 KB as PNG might be 25 KB. When you multiply that across the images on a page, the difference in load time is real — especially on mobile connections. Every current browser displays WebP without a plug-in, so for anything that lives on a website, it is the safe modern default.
The catch: when to avoid WebP
- Older software. Some desktop apps, legacy CMS attachments, and systems built years ago still expect JPG or PNG. If you are not sure the downstream system accepts WebP, stick with the universal formats.
- Shared documents. An accounting package, a government portal, or a client's database may reject WebP. When in doubt for business uploads, use JPG for photos and PNG for graphics.
- Editing workflows. Keep a master copy in a lossless format (PNG or the original RAW) and export WebP only for final delivery.
How to convert (and stay sane)
You do not need a design suite to switch formats. KeepFile's Convert Image Format and Universal Image Converter transcode between JPG, PNG, and WebP entirely in your browser, with a quality slider for the lossy formats and batch support in the universal converter. A practical workflow for a website: take your source graphics, convert the photos to lossy WebP at quality 0.7–0.8, convert the logos and screenshots to lossless WebP, and compare the resulting sizes before you publish.
Two honest notes about converting. First, converting to JPG flattens transparency onto a white background, because JPEG has no alpha channel — if your logo has a transparent background, keep it PNG or WebP. Second, converting a JPG to PNG does not make it sharper; it only stops further quality loss. You cannot recover detail that JPG already threw away.
Compression quality: a quick rule
In the quality slider world, 0.6–0.8 is the sweet spot for photos: visibly identical on screen, much smaller files. If the image contains text, sharp edges, or fine lines — a screenshot, a scan of a document — use quality 0.8 or higher, because compression artifacts are most visible on high-contrast edges. And remember: every lossy re-save compounds quality loss, so compress once at the end of your workflow, not repeatedly.
What about other formats?
GIF survives for simple animations and is otherwise an outdated choice — WebP and PNG are better for everything static. BMP is uncompressed and huge; avoid it unless legacy software demands it. AVIF is even newer than WebP and can compress further, but its support is still growing, so treat it as an advanced option. TIFF is a print and archival workhorse, not a web format.
Worked example: a photo vs a logo
Take a typical holiday photo, 4000×3000 px, saved as JPG at 6 MB, and a company logo saved as PNG at 800 KB. Converting the photo to WebP at quality 0.75 typically cuts it to around 2 MB; converting the logo to lossless WebP often halves it to about 400 KB. Same pictures, visibly identical on screen, much lighter files. That is why WebP is the default recommendation for anything meant for a browser.
Now send the same two files to a client's procurement portal that accepts only JPG and PNG: the WebP versions are useless there. So keep both — a WebP copy for the website and JPG/PNG copies for anything an older system might receive.
Transparency, the decisive test
The single most common format mistake is sending a logo with a transparent background as JPG. Because JPEG cannot store alpha, the transparent areas turn white — fine if the site background is white, disastrous if it is dark or patterned. Before choosing JPG, ask: does this image need an invisible background? If yes, PNG or WebP is required, and if a recipient insists on JPG, you must first place the artwork on a background color deliberately.
Screenshots and text-heavy images
Screenshots deserve special care because they are full of sharp edges and small text, where compression artifacts are most visible. Save screenshots as PNG or lossless WebP at high quality; do not run them through photo-style JPEG compression, which makes text look fuzzy and introduces color noise around letters. If a screenshot must be a JPG (for a system that demands it), keep the quality high — 0.85 or above — and avoid shrinking it too much, because small text becomes illegible faster than anything else.
For logos and diagrams, the same rule applies: lossless formats preserve crisp edges and flat colors. The moment you see banding or halos around text, you have pushed the compression too far.
Finally, do not overthink it. When a destination does not specify a format, WebP is a safe default for the web, JPG is the reliable choice for photos you send to people, and PNG is the dependable option for graphics, text, and transparency. When you are unsure what a system accepts, choose the older universal format — a file that opens everywhere beats a slightly smaller one that some recipient cannot read. And because you can always re-export from a lossless master, you never have to guess perfectly the first time.
The short version
Photos → JPG. Graphics and screenshots → PNG. Anything for the web → WebP. If a system might not accept modern formats, fall back to JPG/PNG. Convert locally, compare sizes, and keep a lossless master of anything you might want to edit again.
Related: Choose JPG, PNG, or WebP · Open Convert Image Format · Universal Image Converter