Guide
JPG vs PNG vs WebP: which image format should you actually use?
If you only have a few seconds, use JPG for photos, PNG for screenshots and transparency, and WebP for modern web delivery when you want smaller files at the same visual quality. This guide explains why those defaults work, when to break them, and which settings are safest for common workflows.
Quick decision rule
If the image is a photo, start with JPG or WebP. If it contains sharp text, interface elements, or needs transparency, start with PNG or WebP. If the destination is a modern website and you want the smallest file without obvious quality loss, WebP is usually the best first test.
That rule sounds simple, but it prevents a lot of wasted work. Many file-size problems begin before compression because the source format is a poor fit for the content. Choosing the right format first usually does more for quality than pushing a file through aggressive compression later.
The format choice also affects how much compression is practical. A JPG at quality 80 often looks excellent for a photo. That same setting applied to a PNG screenshot converted to JPG will produce artifacts around every letter and sharp edge. Starting with the right format is the first quality decision, not an afterthought.
- JPG: safest default for photos and maximum compatibility.
- PNG: best for screenshots, logos, diagrams, and transparency.
- WebP: best for modern websites when smaller files matter.
How JPG actually behaves
JPG is a lossy format built for photographs. It removes visual detail your eye is less likely to notice, which is why it works beautifully for camera images and much worse for screenshots and UI graphics. Smooth gradients hide JPG artifacts fairly well. Sharp text and thin lines do not.
Real numbers make the tradeoff easier to understand. A 4000 by 3000 phone photo that is around 4.5 MB at very high quality often lands around 1.4 MB at quality 85, around 700 KB at quality 75, and around 400 KB at quality 60. The big lesson is that the quality curve is not linear. The jump from 100 to 85 saves a lot with little visible cost. The jump from 85 to 60 starts to become obvious.
JPG also does not support transparency. Any transparent area in a source image will be filled in with a background color, usually white, when saved as JPG. This is one of the most common mistakes in ecommerce and web workflows, where product images with transparent backgrounds are saved as JPG and arrive with an unwanted white box around the subject.
- Use JPG for product photos, portraits, travel shots, and most camera images.
- Use quality 80 to 85 for a strong default when the destination is the web.
- Avoid JPG when the image needs transparency.
- Avoid JPG for logos, UI graphics, and text-heavy screenshots when crisp edges matter most.
How PNG actually behaves
PNG is lossless, which means it preserves every pixel exactly. That is why it is strong for screenshots, interface captures, diagrams, and logos with transparency. PNG keeps edges and text crisp in situations where JPG often introduces fuzzy halos around letters or icons.
The tradeoff is size. PNG is usually a bad choice for photos. A large phone photo that sits around 1.4 MB as a good JPG can easily become 12 MB to 20 MB as a PNG without looking meaningfully better on a normal screen. PNG earns its place when you need transparency or pixel-sharp detail, not when you simply want the highest number on a quality scale.
PNG does support compression, but it is lossless compression, which means it reorganizes the data more efficiently rather than discarding any detail. A heavily compressed PNG still looks identical to an uncompressed one. This is fundamentally different from JPG, where every quality setting is a quality tradeoff. For graphics and text, this makes PNG especially safe.
- Choose PNG for transparency, logos, diagrams, and text-heavy screenshots.
- Choose PNG when a file will be edited repeatedly and you want lossless preservation.
- Avoid PNG for large photographic assets unless transparency is truly required.
- If a PNG is too large but transparency still matters, test WebP as an alternative.
Why WebP is usually the best web-delivery format
WebP supports both lossy and lossless workflows, plus transparency. In practice, that makes it the most flexible format of the three when the destination is a modern website. In many real-world cases, lossy WebP is roughly 25 to 35 percent smaller than an equivalent JPG, and lossless WebP is often noticeably smaller than PNG for screenshots and transparent graphics.
That does not make WebP perfect. Its main weakness is workflow compatibility. Older upload forms, older office software, some email clients, and legacy marketplaces still behave more predictably with JPG or PNG. WebP is fantastic for delivery and sometimes inconvenient for handoff.
Browser support for WebP is now above 97 percent globally, which means for most websites the compatibility argument against WebP has mostly faded. The remaining cases where JPG or PNG are still the safer choice are specific: email attachments, print workflows, direct file sharing with clients using older software, and platforms that explicitly list accepted formats and exclude WebP.
- Use WebP for websites where modern browser support is acceptable.
- Use WebP when you want smaller files than PNG or JPG for the same visual target.
- Convert back to JPG or PNG if a marketplace, email client, or editing workflow does not accept WebP cleanly.
Copy-paste settings for common jobs
For Shopify or Etsy product photos, resize the longest edge to around 2048 pixels and save as JPG quality 82 or WebP quality 82. A realistic target for many stores is roughly 250 KB to 450 KB per image, depending on complexity.
For a website hero image, resize to the actual rendered width first, then save as WebP around quality 80. For email attachments, resize the image to about 1200 pixels on the longest edge and aim for JPG quality 75. For screenshots, PNG or WebP often preserves text much better than JPG.
For social media, the platform will re-compress your image anyway, so aim for the recommended dimensions exactly and save at high quality. That gives the platform the best possible source material to work with. Facebook, Instagram, and LinkedIn all have their own re-compression pipelines that will reduce quality further, so uploading an already-compressed file compounds the damage.
- Website hero: WebP q80 after resizing to destination width.
- Email attachment: JPG q75 at about 1200 px on the longest edge.
- Shopify product photo: JPG or WebP q82 with a 2048 px long edge.
- Screenshot with text: PNG or WebP, not JPG.
- Social media: upload at correct dimensions, high quality, let the platform compress.
Common mistakes that waste bytes or hurt quality
The most common mistake is saving screenshots as JPG just because the output is smaller. The text looks softer, color edges fray, and the file becomes harder to read. Another common mistake is saving photos as PNG in the name of quality even though the file becomes many times larger with no meaningful visual improvement.
The other big mistake is compressing before resizing. If a file is far larger in dimensions than the destination needs, resize first. That removes unnecessary pixels before compression starts and usually produces a cleaner result at the same target size.
A subtler mistake is applying the same quality setting to every image regardless of content type. A quality 75 JPG of a landscape photo may look fine. A quality 75 JPG of a product photo with a white background and fine product detail may look unacceptable. The right setting depends on the image, not just a general rule.
- Do not use PNG for photos unless transparency is genuinely required.
- Do not use JPG for screenshots with text unless compatibility is more important than sharpness.
- Resize first, then compress, when the image is oversized in dimensions and bytes.
- Do not apply the same quality setting to every image without checking the result visually.