Image formats explained: JPG, PNG, WebP, HEIC and SVG
By Uthman Choudhury. Published , last updated .
JPG is for photos, PNG for screenshots and anything needing transparency, WebP for the web where it is 25 to 35 percent smaller than JPG, HEIC for iPhone storage, and SVG for logos and icons that must scale. Pick the format by what the image is and where it will be shown, then convert with Kilnfile's browser-based image tools.
Step by step
- Identify what the image is. A photograph, a screenshot or flat graphic, a logo or icon, or an animation. The content decides the format more than anything else.
- Identify where it is going. A website, an email, a print shop, a document, or long-term storage. Each has different constraints on size and support.
- Pick the format from the table below. Photos to JPG or WebP, screenshots to PNG or WebP, logos to SVG, iPhone storage to HEIC, animations to a short MP4 or, if images only, GIF.
- Convert in the browser. Drop the files on the matching Kilnfile tool: HEIC to JPG, PNG to JPG, JPG to PNG, WebP to JPG, JPG to WebP or SVG to PNG. Set the quality or width, click the convert button and download.
- Resize and compress if it is for the web. Run the result through Resize Image to the display width and Compress JPG or Compress PNG, which together typically save 60 to 80 percent.
What is the difference between lossy and lossless?
A lossless format stores every pixel exactly, so you can open, edit and save a file a hundred times with no change. PNG and SVG are lossless. A lossy format throws away detail the eye is unlikely to notice in exchange for a much smaller file, and each save loses a little more. JPG, WebP (by default), HEIC and AVIF are lossy. Lossy formats suit photographs, where noise and fine gradients hide the loss; lossless formats suit screenshots, text and graphics, where lossy compression smears sharp edges and produces visible halos.
How do the formats compare?
The table summarises the seven formats you will meet in practice. Size figures are relative to JPG at equal visual quality for photographs; for graphics, PNG is the reference and WebP lossless is typically 20 to 30 percent smaller.
| Format | Type | Transparency | Animation | Size vs JPG (photos) | Best for | Support |
|---|---|---|---|---|---|---|
| JPG | Lossy | No | No | Reference | Photographs | Universal |
| PNG | Lossless | Yes | No | 3 to 10x larger | Screenshots, graphics, logos as raster | Universal |
| WebP | Lossy or lossless | Yes | Yes | 25 to 35% smaller | Web images of any kind | All major browsers since Safari 14 (2020) |
| HEIC | Lossy | Yes | Sequences | About 50% smaller | iPhone camera storage | Apple; Windows needs 79p extension |
| AVIF | Lossy or lossless | Yes | Yes | About 50% smaller | Web images where supported | Chrome, Firefox, Safari 16+ |
| SVG | Vector | Yes | Yes (CSS/SMIL) | Not comparable | Logos, icons, diagrams | Universal in browsers |
| GIF | Lossless, 256 colours | Yes (1-bit) | Yes | Much larger | Short loops where video is not allowed | Universal |
Source: Google WebP and AVIF developer documentation, Apple HEIF documentation, Can I Use browser support tables, checked September 2026
What do the same photo and screenshot weigh in each format?
Numbers make the trade-offs concrete. The same 1,200 px photo and the same 1,200 px screenshot were saved in each format at a matched visual quality. The photo rewards lossy formats; the screenshot punishes JPG, which cannot keep text edges crisp without a large file.
| Format and setting | Photo | Screenshot of a web page |
|---|---|---|
| JPG, quality 75 | 165 KB | 310 KB |
| PNG, lossless | 1,450 KB | 190 KB |
| PNG, lossy 256 colours | 620 KB | 68 KB |
| WebP, quality 80 | 112 KB | 95 KB |
| AVIF, quality 60 | 84 KB | 80 KB |
| HEIC, quality 80 | 88 KB | 110 KB |
Source: Kilnfile testing, September 2026, one iPhone 15 photo and one Safari screenshot converted with Kilnfile tools and macOS Preview, sizes from Finder
When should I use each format?
Photographs for the web or email: JPG at quality 75, or WebP at quality 80 if the destination serves it. Photographs for print: JPG at quality 90 or higher at the full resolution. Screenshots and interface graphics: PNG, compressed with Compress PNG in Lossy mode, or WebP. Logos and icons: SVG wherever the platform accepts it, because one file looks sharp at every size and is usually under 10 KB; where it does not, export a PNG at double the display size with SVG to PNG. Transparent images: PNG or WebP, never JPG, which fills transparent areas with a flat colour.
iPhone photos stay as HEIC on the phone, where the 50 percent saving is worth having, and become JPG when they leave for a Windows PC, a web form or anyone who is not on Apple hardware. Animations should be short MP4s wherever video is allowed, and GIFs only where it is not.
Is WebP safe to use everywhere yet?
For websites, yes. Every major browser has displayed WebP since Safari 14 in 2020, and WordPress, Shopify and Squarespace generate it automatically. Outside the browser it is patchier: older versions of Office, some email clients and many print shops still do not accept it, and Windows Photos needed an extension until recently. The practical rule is WebP for anything a browser will show and JPG or PNG for files that people will download, email or print. AVIF is a further 20 to 30 percent smaller than WebP but Safari only gained support in version 16, so serve it with a WebP or JPG fallback.
Frequently asked questions
Which is better quality, JPG or PNG?
PNG is lossless, so it is technically perfect, but for a photograph the difference from a quality 90 JPG is invisible and the PNG is five to ten times bigger. For screenshots and graphics PNG is both smaller and sharper.
Why is my PNG so large?
Probably because it is a photograph or contains a gradient. PNG stores every pixel exactly, and photographs have millions of distinct colours. Convert it with PNG to JPG, or if it has transparency, to WebP.
What format should I use for a logo?
SVG if you have it, because it scales to any size without blur and is tiny. If a platform insists on a raster, use PNG with transparency, exported at least twice the display size with SVG to PNG.
Does converting JPG to PNG improve quality?
No. The detail lost when the JPG was saved is gone for good; converting to PNG simply stores the already-damaged pixels losslessly in a much larger file. Convert the other way, PNG to JPG, when you need a smaller photo.
What is the smallest image format?
For photographs, AVIF and HEIC at about half the size of JPG, then WebP at 25 to 35 percent smaller. For logos, SVG is usually smallest of all. GIF is the largest for any photographic content.
Data source: Google WebP and AVIF developer documentation, Apple HEIF documentation, the W3C PNG and SVG specifications, Can I Use support tables, and Kilnfile testing in September 2026.
Cite this page: “Image Formats Explained: JPG, PNG, WebP, HEIC, SVG”, Kilnfile, https://kilnfile.com/guides/image-formats-explained-jpg-png-webp-heic-svg/
Tools mentioned in this guide
Related guides
- How to compress images for a websiteResize, then compress: the two-step routine that cuts web images by 60 to 80 percent with no visible loss. JPG, PNG and WebP settings that actually work.
- How to convert iPhone HEIC photos to JPGTurn iPhone HEIC photos into JPGs that open anywhere, in your browser with no upload. Plus the iPhone setting that stops HEIC in the first place.
- Audio formats and bitrates explainedMP3, AAC, WAV and FLAC compared with real file sizes per minute. Which bitrate you can actually hear, and when converting loses nothing at all.