HEIF to PNG Converter

Attempts to decode an uploaded HEIF/HEIC file via the browser's native image decoding (createImageBitmap), then re-encodes the decoded pixels as a lossless PNG; decode success depends entirely on whether your browser and operating system provide a native HEIF codec, since no universal browser HEIF support exists the way it does for JPEG or PNG. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

HEIF/HEIC is the default photo format on many iPhones and some other devices, but it isn't as universally supported across browsers and tools as PNG or JPEG.

This converter attempts a real, native decode in your browser and produces a standard PNG when it succeeds.

What Is HEIF to PNG Converter?

A format converter that relies entirely on the browser's own native image decoding for HEIF/HEIC — there's no practical way to hand-roll a HEVC-based decoder client-side, so this tool honestly depends on platform support rather than pretending otherwise.

The pure lib function only validates already-decoded pixels; all real HEIF parsing, where it works at all, happens inside the browser/OS.

How HEIF to PNG Converter Works

The uploaded file is handed to the browser's createImageBitmap API, exactly like any other supported image format; whether that succeeds depends on whether the browser and operating system provide a HEIF/HEIC codec.

If decoding succeeds, the resulting pixels are validated, cloned, and handed to the standard PNG preview/download panel for lossless re-encoding; if it fails, the upload step surfaces a clear error.

When To Use HEIF to PNG Converter

Use it on a browser/OS combination with native HEIF support (commonly Safari on Apple platforms) to convert an iPhone photo to a more broadly compatible PNG.

It's also a quick way to check whether your current browser can read a specific HEIF file at all, before trying a more heavyweight conversion workflow.

Features

Advantages

  • When supported, produces a genuine, accurate PNG using the platform's own real HEIF decoder rather than an approximation.
  • Runs entirely client-side; the uploaded photo never leaves your browser.
  • Fails honestly and clearly on unsupported browsers instead of producing broken output.

Limitations

  • HEIF decode support is inconsistent across browsers — many common browser/OS combinations (Chrome or Firefox on Windows or Linux, for example) don't support it natively at all.
  • There's no fallback decoder bundled with this tool; on an unsupported platform, conversion simply isn't possible client-side.

Examples

iPhone photo on Safari (macOS/iOS)

Input

A HEIC photo exported from an iPhone

Output

A pixel-accurate PNG, since Apple platforms typically decode HEIC natively

Safari's native HEIC support lets createImageBitmap succeed where other browsers often can't.

Same photo on an unsupported browser

Input

The same HEIC file, opened in a browser without HEIF support

Output

Error: "Couldn't read this file as an image."

No fabricated output is produced when the browser genuinely can't decode the format.

Best Practices & Notes

Best Practices

  • If conversion fails, try opening the file in Safari on a Mac or iPhone, which has the best native HEIF support among mainstream browsers.
  • For a guaranteed conversion regardless of browser, use your OS's built-in photo export/conversion feature instead (most phones and photo apps can export HEIC as JPEG or PNG directly).

Developer Notes

convertHeifPixelsToPng is a thin validate-and-clone pure function identical in shape to the WebP and AVIF converters in this tool set; all the real (and platform-dependent) decode work happens via the browser's native createImageBitmap, with no bundled fallback decoder since none is practical to ship.

HEIF to PNG Converter Use Cases

  • Converting an iPhone HEIC photo to PNG for use on a platform that doesn't support HEIF
  • Checking whether a specific browser can read a given HEIF file
  • Extracting pixel data from a HEIF photo for further editing in a PNG-only tool

Common Mistakes

  • Assuming HEIF conversion will work in any browser — support is genuinely limited to specific platforms.
  • Not checking whether your OS's native photo app can already export the file as PNG or JPEG directly, which is often more reliable than browser-based conversion.

Tips

  • Try Safari on a Mac or iOS device first if conversion fails elsewhere.
  • If you regularly need to convert HEIC photos, your phone's own photo-sharing or export settings can often output JPEG/PNG directly at the source, avoiding browser compatibility issues entirely.

References

Frequently Asked Questions