A Field Guide to Image Formats in 2026
Compare PNG, JPG, WebP, AVIF, HEIC, and SVG by file size, transparency, and browser support—plus how to optimize SVGs and convert formats locally.
Use PNG for lossless screenshots and sharp UI edges, JPG for broad photo compatibility, WebP as the all-around web default, AVIF when modern browser support lets you cut sizes further, HEIC conversion before sharing iPhone photos, and optimized SVG for resolution-independent icons and logos. Convert, resize, and strip SVG bloat locally.
An image format is a contract between you and every browser, app, and device that will ever look at your file. The contract says: here is how the pixels are stored, here is how they are compressed, here is how a program reads them back. The right contract saves you 3-10x in file size, in quality, or in compatibility. The wrong one does the opposite.
There are six formats that matter for the web, for product work, and for everyday photos in 2026. There are dozens of others (TIFF, BMP, GIF, JXL, etc.) but they are either obsolete, niche, or use-case-specific. This guide covers the six.
1. PNG — the lossless one (1996)
PNG (Portable Network Graphics) is the format to use when you cannot afford to lose a single pixel. Screenshots, logos, icons with sharp edges, diagrams, line art, anything with text. PNG uses lossless compression, so the file is bigger but the pixels are exact. A screenshot of a UI is almost always a PNG because the text and edges need to stay sharp.
PNG supports transparency (an alpha channel), which makes it the right format for logos that need to sit on any background. JPG does not support transparency, so a logo on a transparent background is always a PNG. Need to move back and forth? Use JPG to PNG when you need lossless editing or transparency, and PNG to JPG when a photograph was accidentally saved as a huge PNG.
PNG comes in three flavors: PNG-8 (256 colors, smallest), PNG-24 (16 million colors, no transparency), and PNG-32 (16 million colors, with transparency). For the web, PNG-32 is the default. For a tiny icon, PNG-8 is sometimes smaller. You can also inspect exact pixel values from any raster image with the Image Color Picker before building your design tokens.
2. JPG — the photo one (1992)
JPG (Joint Photographic Experts Group) is the format to use for photos on the web. It uses lossy compression, which means the file is small but the pixels are not exact. For a photo, this is fine — the human eye cannot tell the difference between a JPG at 80% quality and the original. For a screenshot or a logo, the lossy compression creates visible "ringing" artifacts around sharp edges and text, so JPG is the wrong tool.
JPG does not support transparency. If you need a transparent background, use PNG or WebP. If you need a photo with a specific color background, use JPG and composite the background in HTML/CSS.
JPG is supported everywhere, every browser, every app, every device. It is the lowest common denominator. The downside is that for the same quality, JPG files are 2-3x larger than WebP or AVIF. For modern web work, JPG is the fallback when WebP and AVIF are not available.
3. WebP, the web default (2010)
WebP is the format Google introduced in 2010 to be the universal web image format. It supports both lossy and lossless compression, transparency, and animation. For the same visual quality, WebP is 25-35% smaller than JPG (for photos) and 25-50% smaller than PNG (for graphics). It is supported in every modern browser (95%+ in 2026).
For almost every image on a website in 2026, WebP is the right format. It handles photos (lossy), graphics (lossless), transparency, and animation. Use the WebP Converter to convert JPG or PNG assets into WebP (or back to JPG/PNG for legacy pipelines), and pair it with the Image Compressor and Image Resizer.
4. AVIF, the new best (2019)
AVIF is the format released by the Alliance for Open Media based on the AV1 video codec. For the same quality, AVIF is roughly 20% smaller than WebP, which is itself ~30% smaller than JPG, and it supports 10-bit and 12-bit wide color gamuts for HDR photography.
The catch: encoding AVIF is 5–20× slower than encoding WebP, so pre-compute AVIF files in a build step rather than on demand. Browser support in 2026 covers Chrome (since v85), Edge, Firefox (since v93), and Safari (since v16), roughly 90–95% of web users.
The strategy in 2026 is: serve AVIF if the browser supports it, fall back to WebP, fall back to JPG. If you are hand-rolling the HTML, use the <picture> element with multiple <source> tags. If you want a single image, WebP is the safer bet.
5. HEIC, the iPhone one
HEIC is the format Apple introduced in iOS 11 (2017) for iPhone photos. It uses HEVC (H.265) compression, which is roughly 2x more efficient than JPG, an iPhone photo in HEIC is half the file size of the same photo in JPG at the same quality. This is why a 128 GB iPhone stores roughly 2x as many photos as a 128 GB Android phone did in 2017.
HEIC is well-supported on Apple devices (Mac, iPhone, iPad) and increasingly on Windows and Android. But it is not universally supported, many older apps, websites, and email clients will not read it. The common problem: you take a photo on your iPhone, you email it or text it, the recipient sees a blank or a broken image. The fix is to convert HEIC to JPG or WebP before sharing.
The HEIC to JPG tool on this site runs entirely in your browser, your photos never leave your device. Drag in a HEIC file, get a JPG back.
6. SVG, the vector one (1999)
SVG (Scalable Vector Graphics) is the only vector format in the common list. Instead of storing pixels, SVG stores shapes: lines, curves, rectangles, text. When the browser renders an SVG, it draws the shapes at whatever size the CSS asks for. The result is sharp at any size, no pixelation, no blur. For logos, icons, illustrations, and diagrams, SVG is the right format. For quick wireframes and mockups, the Placeholder Image Generator outputs clean inline SVGs at any dimension.
SVG files exported from design tools often contain editor metadata, XML comments, empty groups, and over-precise coordinates. Run them through the SVG Optimizer to strip comments, metadata, default attributes, and empty groups while tuning numeric precision, often cutting file size significantly with zero visual change.
SVG has two important caveats. First, it is not suitable for photographs or overly complex illustrations with thousands of paths. Second, because SVG is XML that can contain <script> tags and event handlers, untrusted user-uploaded SVGs can carry XSS payloads and should always be sanitized before serving.
The decision tree and irreversible conversion traps
When you are about to save or export an image, walk this tree:
- Is the image a photo? Use WebP (modern) or JPG (fallback). If you can assume modern browser support, use AVIF.
- Is the image a logo, icon, or illustration with sharp edges? Use SVG (if vector) or PNG (if raster). Use WebP/AVIF for the raster version if you need a smaller file.
- Is the image a screenshot? Use PNG for lossless text and edges. WebP lossless if you need a smaller file.
- Is the image a phone photo from an iPhone? Convert HEIC to JPG or WebP before sharing.
- Does the image need transparency? Use PNG, WebP, or AVIF. Not JPG — converting a transparent PNG to JPG permanently destroys the alpha channel.
- Does the image need to be animated? Use WebP, AVIF, or a video format (MP4, WebM). Not GIF (obsolete).
Keep destination defaults practical too: email attachments still break WebP in some legacy Outlook clients (send JPG or PNG), while converting a lossy JPG to PNG bloats file size without restoring already-discarded detail.
What about GIF?
GIF is obsolete. It supports 256 colors, has terrible compression, and exists today only because of inertia. For an animated image, use WebP (smaller, better quality) or a short looping video (MP4 or WebM, smallest, best quality). For a static image, never use GIF, use PNG or WebP.
What about the obscure ones?
TIFF, BMP, JXL, JPEG XL, JPEG 2000, EXR, RAW, etc. all have their uses (TIFF for print, RAW for photography, EXR for VFX) but they are not relevant to the web or to most product work. If you encounter one, you will know.
By the numbers: real file size across formats
These are the file sizes for the same source image (a 1920×1080 photograph, with no metadata) across the five formats that matter for the web. Same source pixel data, same dimensions, same content. The only variable is the format and its encoder settings.
| Format | File size | vs JPG (baseline) | vs PNG | Quality at this size |
|---|---|---|---|---|
| JPG (quality 85) | ~410 KB | 1.0x | 0.21x | Visually indistinguishable from original |
| WebP (quality 80) | ~225 KB | 0.55x | 0.12x | Visually indistinguishable from JPG 85 |
| WebP (quality 60) | ~140 KB | 0.34x | 0.07x | Good, slight loss in gradients |
| AVIF (quality 60) | ~95 KB | 0.23x | 0.05x | Good, better detail retention than WebP at same size |
| AVIF (quality 40) | ~58 KB | 0.14x | 0.03x | Acceptable for thumbnails |
| PNG (24-bit, no compression) | ~1.95 MB | 4.76x | 1.0x | Lossless (exact pixel match) |
| PNG (24-bit, max compression) | ~880 KB | 2.15x | 0.45x | Lossless (exact pixel match) |
| SVG (this image, vectorized) | ~12 KB | 0.03x | 0.006x | Lossless (resolution-independent) |
For a single photograph, the format choice is a 20-30x lever on file size with no visible quality difference (between JPG 85 and AVIF 40). For a 10-image gallery, that's the difference between a 4 MB page and a 200 KB page. Both render identically. Google's Core Web Vitals specifically penalize the 4 MB version on LCP and CLS, the format choice is not just a tooling preference, it's a search ranking factor.
The PNG row is important. PNG is lossless, which sounds great, but the size penalty is 4-9x the equivalent JPG. For a UI screenshot or a logo, PNG is correct (the lossless guarantee matters when sharp edges are part of the design). For a photograph, PNG is a 4-9x cost for no visible benefit, the JPG's lossy compression is invisible at quality 80+ on a photograph, where the human eye can't distinguish it from the original.
Browser support, honestly
Real compatibility numbers as of mid-2026 (from caniuse, Chromium market share ~70%, Safari ~17%, Firefox ~3%, Edge ~5%, all evergreen):
| Format | Chrome | Firefox | Safari | Edge | Effective global |
|---|---|---|---|---|---|
| PNG | all | all | all | all | ~100% |
| JPG | all | all | all | all | ~100% |
| WebP | since v23 (2012) | since v65 (2019) | since v14 (2020) | all | ~98% |
| AVIF | since v85 (2020) | since v93 (2021) | since v16 (2022) | all | ~95% |
| HEIC (as image) | only on macOS Safari | no | macOS only | no | ~20% |
| SVG | all | all | all | all | ~100% |
The right strategy for the web in 2026 is WebP as the default, with AVIF as a progressive enhancement (serve AVIF first if the browser supports it, fall back to WebP, fall back to JPG). That gives you AVIF's 30% size win for ~95% of users and the same experience as WebP for the rest. The <picture> element handles this cleanly:
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="..." width="1920" height="1080">
</picture>
That's the full optimal format delivery in 10 lines of HTML. The browser picks the first source it supports and falls back gracefully. Combined with the size numbers above, this is the single highest-ROI performance change for a content-heavy site.
Related guides
Further reading
Primary source: MDN — Image file types and formats.
Frequently asked questions
- Should I use WebP or AVIF as my default web image format?
- Use AVIF inside a
<picture>element with WebP and JPG fallbacks when you pre-build assets and want maximum byte savings (~20% smaller than WebP). If you want one single format with near-universal support and fast encoding, use WebP via the WebP Converter. - Why are screenshots usually larger as JPG or distorted compared to PNG?
- JPG uses lossy block compression tuned for continuous photographic gradients, which creates ringing artifacts around crisp UI text and lines. PNG compresses lossless edges cleanly without blurring text.
- How can I shrink exported SVG icons safely?
- Paste or drop the SVG into the SVG Optimizer to strip editor metadata, XML comments, default attributes, and empty groups while lowering decimal precision in your browser.