Skip to content
Encoding2026-09-216 min read

Image Formats Explained: JPG, PNG, WebP, HEIC, and SVG — Which One, When, and How to Convert

Five Formats, Five Jobs

Every image format embodies a bet about what matters most. JPG bet on photographs. PNG bet on precision. WebP bet on bandwidth. HEIC bet on the future (Apple's version of it). SVG bet on scalability. None of them won completely, which is why you routinely hold an image in the wrong format and need it in another one.

The shortcut to fluency is matching format to job, not memorizing specs:

| Format | Best at | Worst at | |---|---|---| | JPG | Photos, opaque, final delivery | Transparency, text edges, re-editing | | PNG | Screenshots, text, transparency, editing masters | File size on photos | | WebP | Web delivery of everything | Legacy software support | | HEIC | iPhone capture efficiency | Everything outside Apple's world | | SVG | Icons, logos, diagrams | Photographs |

The rest of this guide walks through the decisions that fall out of that table — and the conversion moves when reality hands you the wrong format. All conversions mentioned run in your browser at ToolVault.

JPG: The Compressed Classic

JPG has survived thirty years because its bet was right: human eyes tolerate small errors in photographs in exchange for 10x smaller files. Two properties follow from its design that people still get burned by.

It is lossy and generational. Every save recompresses. Open a JPG, edit, save, repeat — and artifacts stack: blocky halos around sharp edges, posterized skies. The working rule is simple: edit from a lossless master (PNG or your editor's native format), export JPG once, and never re-edit the export. Check whether your workflow has a silent generation step — some chat apps and CMS platforms recompress on upload.

It has no transparency. JPG pixels are always opaque. Any WebP or PNG with an alpha channel that goes through JPG loses its transparency — composited onto white if you are lucky, onto black if you are not. Stickers, logos, and cutouts have no business being JPG, ever.

PNG: Precision at a Price

PNG is lossless: the pixels you save are the pixels you get back. That makes it the master format for anything that will be edited again, and the natural home of screenshots — flat colors, sharp text edges, and transparency all compress beautifully in its deflate model.

The flip side: PNG is the wrong answer for photographs. A photo saved as PNG routinely weighs 3-5x its JPG twin because lossless compression cannot exploit the eye's tolerance for approximation. The practical pattern most teams land on: PNG masters on disk, JPG or WebP exports for delivery.

PNG's transparency is also the quiet source of a classic bug: dark-mode UIs that assume a background color. An icon exported with transparent background looks perfect on light and vanishes on dark. The fix belongs in the asset (test on both), not in CSS heroics.

WebP: The Bandwidth Play

WebP does what JPG and PNG do at 25-35% smaller, and it does transparency at 50-70% smaller than PNG. Every modern browser renders it. The question is never whether WebP is technically better — it is — but whether everything downstream of the file accepts it.

Where it still breaks in practice: some CMS upload pipelines, older Windows photo viewers, a surprising number of enterprise tools. The robust pattern for websites is <picture> with a PNG/JPG fallback rather than betting the whole audience on one format. For personal workflows, the question is just "does the destination open it" — and if not, convert WebP to JPG for compatibility or WebP to PNG when you need a lossless editing master.

One WebP subtlety worth knowing: animated WebP exists. Converting it to a static format captures the first frame only — moving content belongs in GIF or video formats.

HEIC: Excellent Format, Walled Garden

iPhones shoot HEIC because it is genuinely efficient — better quality per byte than JPG. The problem is everything outside Apple's ecosystem: Windows without extensions, older Office versions, half the web's upload dialogs. So HEIC owners convert, constantly, and the conversion direction depends on the destination:

  • Web or modern tools: HEIC to WebP keeps the efficiency advantage with real compatibility
  • Universal compatibility: HEIC to JPG — the format every system since 1995 opens
  • Editing masters: HEIC to PNG — lossless from the decode onward

A detail that surprises people: iPhone photos carry the Display P3 wide color gamut. Converting to sRGB-based formats shifts the most saturated colors by a few percent — invisible in most photos, worth knowing for vivid product shots.

SVG: The One That Scales Forever

SVG is not pixels; it is geometry. That changes every rule: it scales infinitely (a logo renders crisp at 16px and 16 feet), the file is often smaller than a raster icon, and it can be restyled with CSS.

The catches: SVG carries text as font references, so a missing font changes rendering — the fix is converting text to outlines in your editor. And photographs make terrible SVGs (the format approximates them with shapes and loses badly). SVG-to-raster conversion exists for the destinations that demand pixels — render SVG to PNG at 2x-4x for retina sharpness — but that is a one-way door: rasterize too small and the resolution is gone forever, while the SVG could always have re-rendered bigger.

Conversion Rules That Preserve Quality

Most conversion damage is self-inflicted. Four rules cover nearly all of it:

  1. Convert lossless-to-lossy at most once. PNG to JPG at quality 90: fine. That JPG to another JPG at 85: stacking artifacts.
  2. Keep a master. Whatever you convert to for delivery, keep the highest-fidelity source. Storage is cheaper than re-shooting.
  3. Quality 75-90 is the usable band. Below 70 gradients band and skin tones posterize; above 90 you pay bytes for differences nobody sees.
  4. Match the format to the destination, not to fashion. The upload form that accepts only JPG does not care that WebP is technically superior.

And when photos must travel as documents rather than images — receipts, ID copies — wrap them in a PDF instead of sending loose files: JPG to PDF embeds originals without re-encoding, so the quality survives the trip.

Format conversion is a privacy-relevant operation more often than it looks: the photos being converted are frequently personal. Every tool linked above processes images in your browser — the file never uploads, verifiable in DevTools while you work.

More format converters and 160+ other browser-local tools at ToolVault.