JPG vs PNG vs WebP: Which Image Format Should You Use?

A clear comparison of JPG, PNG, WebP, HEIC and SVG: what each is good at, typical file sizes, and which to choose for photos, logos, forms and websites.

By · · 3 min read

The same picture can be 4 MB or 200 KB depending on the format it is saved in, with no difference you can see. Pick the wrong one and photos load slowly, logos get fuzzy edges, or an upload form refuses the file. The rules for choosing are simple once you know what each format was designed for.

The short answer

You haveUse
A photographJPG, or WebP for websites
A logo, icon or screenshot with textPNG, or SVG for logos
An image with a transparent backgroundPNG or WebP
Images for your own websiteWebP
A file for a government or job formJPG, unless the form says otherwise
Something to printHigh-quality JPG or PNG

JPG: the format for photos

JPG (also written JPEG) shrinks photos by discarding detail the eye barely notices. A quality setting controls how much. At 80% a photo is typically a fifth of its original size and looks the same. Push the quality too low and you see blocky patches and smudged edges.

Good for: photos, scans of documents, anything with smooth colour changes. It opens on every device and every form accepts it.

Not good for: text, line drawings and logos, where it leaves a faint haze around sharp edges. It has no transparency, and every time you edit and save a JPG again it loses a little more quality.

PNG: sharp edges and transparency

PNG is lossless. It stores every pixel exactly, so text and lines stay crisp however many times you save. It also supports transparent backgrounds, which is why logos are usually shared as PNG.

Good for: logos, icons, screenshots, diagrams, signatures and images you will keep editing.

Not good for: photographs. A photo saved as PNG can be five to ten times larger than the same photo as JPG, with no visible benefit.

WebP: smaller files for the web

WebP is a newer format from Google that does both jobs. It can compress photos like JPG and keep sharp graphics with transparency like PNG, and the files are usually 25 to 35% smaller at the same quality. All current browsers show it.

Good for: every image on a website. Smaller images mean faster pages, which visitors and search engines both prefer.

Not good for: sending to people or uploading to forms. Older software, some printers and many upload portals still do not accept it.

HEIC, SVG and GIF in one line each

  • HEIC is what iPhones save by default. The files are small and sharp, but Windows computers and most websites cannot open them. Convert with HEIC to JPG before sharing or uploading.
  • SVG is not made of pixels. It describes shapes, so a logo stays perfectly sharp at any size. Use it on websites, and convert with SVG to PNG when an app needs a normal image.
  • GIF is for short, simple animations. For still images PNG is better in every way.

How big are the files?

For a typical 12-megapixel phone photo:

FormatApproximate size
PNG15–25 MB
JPG, maximum quality4–6 MB
JPG, 80% quality1.5–2.5 MB
HEIC1.5–2.5 MB
WebP, similar quality1–1.8 MB

The numbers vary with the picture. A plain wall compresses far better than a crowd or a tree full of leaves.

Common situations

“The form only accepts JPG under 50 KB”

Format alone will not get you there. You also have to reduce the dimensions. Resize the photo to the size the form asks for with the Image Resizer, then use the Image Compressor to bring it under the limit.

“My logo has a white box around it”

It was saved as JPG, which cannot be transparent. Use Remove Background and save the result as PNG.

“The screenshot looks blurry after I shared it”

Screenshots contain text, so keep them as PNG. Messaging apps often convert images to low-quality JPG. Send it as a document or file to avoid that.

“My website is slow”

Images are usually the heaviest part of a page. Resize them to the largest size they are actually displayed at, convert them to WebP and compress them. A 4000-pixel photo shown in a 800-pixel column wastes most of its bytes.

Two rules to remember

Keep the original file, and always convert from it. Converting a JPG to PNG does not bring back lost detail. It only makes the file bigger. And avoid saving the same JPG over and over. Each save removes a little more, so do your edits on the original and export once at the end.

Tools used in this guide

Keep reading