HEIC, JPG, PNG, WebP, AVIF: Which Image Format to Use
Every image format is a different tradeoff between file size, quality, and compatibility — there's no single "best" one. Here's what each of the five formats you'll actually encounter is good at.
Convert between formats in your browser (free, instant)
The Convert Image tool on keptlocal converts between HEIC, JPG, PNG, WebP, and AVIF, entirely on your device — including batch conversion for multiple files at once.
The five formats, compared
- HEIC — Apple's default photo format since iOS 11 (2017). Genuinely efficient (roughly half the file size of an equivalent-quality JPG), but compatibility outside Apple's ecosystem is inconsistent — many Windows programs, older Android phones, and web forms reject or mishandle it. The most common reason to convert away from it is simply getting a photo to open somewhere that doesn't support it.
- JPG (JPEG) — the oldest and most universally compatible lossy format. Every device, browser, and image tool built in the last three decades handles JPG. No transparency support. The safe default when compatibility matters more than squeezing out the smallest possible file size.
- PNG — lossless compression, meaning no quality is lost from encoding, plus full transparency (alpha channel) support. Excellent for screenshots, logos, diagrams, and anything with sharp edges or flat color areas, where JPG's compression artifacts show up as visible fuzziness around edges. Poor choice for complex photos, where lossless compression produces much larger files than a visually similar JPG.
- WebP — Google's modern successor to both JPG and PNG, supporting both lossy and lossless compression plus transparency in one format. At equivalent visual quality, WebP files are typically 25–35% smaller than JPG. Browser support is now near-universal across modern browsers, making it a solid default for web images today.
- AVIF — the newest of the five, based on the AV1 video codec's compression technology. Generally the smallest files of any format here at equivalent quality — often beating even WebP by a meaningful margin. The tradeoff is newer, slightly less universal support and slower encoding time, which matters for very large batch-processing workflows but rarely for a single image.
Quick recommendations by use case
- Sharing an iPhone photo with someone who can't open it → convert HEIC to JPG.
- A website's primary photography → WebP (or AVIF if your platform and audience's browsers support it well).
- A screenshot, logo, or diagram → PNG, for the lossless edges and optional transparency.
- Email attachment or maximum compatibility with old software → JPG.
- Smallest possible file size, modern audience → AVIF.
Lossy vs. lossless, briefly
JPG, and most typical WebP/AVIF settings, are lossy — they discard some image detail permanently in exchange for smaller files, calibrated so the loss is minimally visible at reasonable quality settings. PNG, and WebP/AVIF used in their lossless modes, preserve every original pixel exactly, at the cost of larger files for anything but simple, flat-color images. Converting from a lossy format to another lossy format compounds quality loss slightly with each conversion — for the best result, always convert from the original or highest-quality source available, not from an already-compressed copy.
Privacy: what happens to your images
Every conversion runs locally using the Canvas API (and heic2any specifically for HEIC input) — images are never uploaded.
Convert an image now with keptlocal's free Convert Image tool — no upload, no signup. Need to shrink the file size too? Try Compress Image.
Frequently asked questions
Why can't I open HEIC photos on some devices?
Should I use WebP or JPG for my website?
Does PNG always look better than JPG?
Is AVIF worth switching to?
Can converting between formats reduce image quality?
Convert between HEIC, JPG, PNG, and WebP — free, in your browser.
No upload. No signup. Runs in your browser.