Eric Rounds Agency / PNG vs JPG
Answers
PNG vs JPG: What’s the Difference?

PNG vs JPG: What’s the Difference?

PNG vs JPG: a PNG can be transparent and keeps every pixel; a JPG makes photos small by discarding detail. When to use each, plus WebP, SVG and print formats.

February 2020 · 4 min read · Eric Rounds

Use a JPG for photos. Use a PNG for logos, icons, screenshots and anything that needs a transparent background. A PNG can be transparent and keeps every pixel exactly as you saved it. A JPG cannot be transparent, and it keeps photos small by discarding detail you usually will not notice.

The difference you can see

A dark circle with a gold ring saved as a JPG, sitting inside a white square

Saved as a JPG. The corners and the center fill with white, because a JPG has nowhere to store transparency.

The same circle saved as a PNG, with the page color showing through the corners and center

Saved as a PNG. The page shows through. Put it on any background and only the mark appears.

What a PNG offers that a JPG does not

Transparency. A PNG can store an alpha channel, so every pixel can be fully clear, fully solid, or anywhere in between. That is how a logo sits on a photo or a colored band without a box around it. JPEG does not support an alpha channel (MDN).

Lossless compression. A PNG shrinks the file without throwing anything away. Open it, edit it and save it again, and nothing degrades. Text, thin lines and flat color stay sharp.

A current standard. PNG is maintained by the W3C, and its third edition became a W3C Recommendation in June 2025, adding animated PNG and high dynamic range.

Where a JPG still wins

Photos. A photograph has millions of subtle color changes, and a JPG’s lossy compression handles them well, so the file comes out a fraction of the size of the same photo saved as a PNG. The trade-off is that every save discards a little more detail. Keep an original, and export a JPG from it each time instead of re-saving the JPG.

A JPG is the wrong choice for a logo, a screenshot or anything with text. Lossy compression leaves soft halos and stray colored pixels around sharp edges, and those are easy to see.

Formats at a glance

FormatBest forNotes
JPGPhotosLossy. No transparency.
PNGLogos, icons, screenshotsLossless. Transparency.
WebPWebsite photos and graphicsLossy or lossless. Transparency.
AVIFWebsite photosLossy or lossless. Transparency.
SVGLogos and icons at any sizeVector. Transparency.
GIFSimple animation256 colors. One transparent color.

Source: MDN’s image format guide, updated September 2026.

For websites, WebP and AVIF

Both newer formats generally compress better than PNG and JPG, and both support transparency. MDN lists WebP as supported in all versions of Chrome, Edge, Firefox, Opera and Safari, and AVIF from Chrome 85, Edge 121, Firefox 93 and Safari 16.1 onward. Keep a JPG or PNG master for print, email attachments and anyone who needs to edit the file.

For a logo on a website, an SVG is usually better than either. It is drawn from shapes instead of pixels, so it stays sharp at every size, from a browser tab icon to a billboard.

These come up when a printer, sign shop or apparel vendor asks for “the logo file.”

  • AI (Adobe Illustrator). The editable vector source of a logo. Keep it, even if you never open it yourself.
  • EPS. An older vector format that many printers, embroiderers and apparel vendors still request.
  • PDF. Holds a finished layout steady on every device. Send a PDF to present or print a finished piece, and ask for the source file when something needs editing.
  • SVG. Vector, like AI and EPS, but built for screens and code.

A brand handoff should include all of these, plus PNG versions with transparent backgrounds and JPG versions for quick use.

Getting images ready for a website

  • Size by pixels. A screen ignores the DPI setting. What matters is the pixel width. Export at about twice the width the image will display, so it stays sharp on high-density screens.
  • Use sRGB color. Screens expect it. Files exported in a print color space can look dull or shifted online.
  • Name the file before you upload it. A descriptive name helps search engines and helps you find it later. Image file names for SEO covers the naming rules.
  • Send the original files. When a client sends images for a new site, we ask for the originals in a shared folder. Images pasted into a Word document arrive too small to use. How to organize website content walks through the folder setup.

Free tools that still work

Request an Engagement

Common questions

Questions, answered.

What do PNG files offer that JPG files do not?

Transparency and lossless compression. A PNG can keep its background clear, so a logo sits cleanly on any color, and it saves without discarding detail, so text and sharp edges stay crisp. A JPG has no transparency and drops some detail every time it is compressed.

Is a JPG or a PNG transparent?

A PNG can be. A JPG cannot, because the format has no alpha channel. Any transparent area is filled with a solid color, usually white, when the file is saved as a JPG.

Is a PNG a picture?

Yes. A PNG is an image file, the same as a JPG. It can hold a photo, but the file will usually be much larger than the same photo saved as a JPG or WebP.

Should I use WebP or AVIF instead?

On a website, often yes. Both compress photos more efficiently than JPG, both support transparency, and every current major browser displays them. Keep a JPG or PNG master for print, email and anyone who needs to edit the file.

What resolution should images be for a website?

Pixel width is what matters, because screens ignore the DPI setting. Export at about twice the width the image will display, so it stays sharp on high-density screens, then compress it.