Convert HEIF to PNG

Converting HEIF to PNG gives you a working copy that stops losing anything: every pixel the HEIF decoder produced is stored exactly, transparency included. The price is size — a photograph is routinely ten times larger as a PNG — and the whole conversion runs inside this page.

  • Where it runs In your browser. The file is never uploaded.
  • Lossless Nothing is discarded. The PNG holds exactly what the HEIF held.
  • File size limit Up to 100 MB per file, free, without an account.

Up to 100 files at once. Mixed formats are fine.

What "lossless" is actually promising here

PNG is lossless, and that word does real work in one direction and none at all in the other. Forward, it is a guarantee: the PNG holds the exact pixel values the HEIF decoder produced, and you can open it, save it, copy it and save it again without any of them changing. That is the property an editing workflow needs and the one JPEG cannot offer.

Backward, it promises nothing. The camera already discarded information when it compressed the photograph into HEIF, and no target format can put it back. A lossless copy of a lossy original is exactly that — a faithful copy of what survived. Anyone selling you the other reading is selling something.

The reader this page is for, and the one it is not

This is the page for somebody who is going to work on the picture. You are annotating it, masking part of it, pasting it into a layout, feeding it to a build step that hashes its input, or handing it to a tool whose documentation says it will not accept JPEG. In all of those, a format that changes the pixels every time it is written is a liability.

If instead you simply need the photograph to open on a machine that refuses HEIF — an upload form, a mail client, somebody else's laptop — JPG is the better answer and there is a separate page for it. Sending a 22 MB PNG where a 2 MB JPG would have done is a decision people regret at the other end of a mobile connection.

Why the PNG comes back so much larger

A compressor that is not allowed to discard anything can only find repetition, and a photograph has very little. Sensor noise, film-like grain, the fine texture of fabric or foliage: to a lossless coder these are close to random data, and random data does not compress. HEIF, allowed to throw the least important of it away, gets the same picture into a fraction of the space.

Ten times the bytes is a fair expectation for a phone photograph, and it is not a sign that something went wrong. Where PNG genuinely wins on size is the other kind of image — flat colour, sharp edges, screenshots, diagrams, line art — and a file with a .heif extension is very rarely one of those.

The PNG is optimised before you get it

The encoder alone leaves a great deal on the table, so every PNG written here is passed through oxipng at level 2 afterwards. Measured on a 960 by 640 photograph during development: 1,366 KB straight out of the encoder, 468 KB after the optimiser — two thirds of the file gone, for 464 milliseconds of work.

Level 3 was tried and rejected: it costs 1,133 milliseconds and saves essentially nothing further. Half a second is a real cost and it is the right trade, because the file is the thing you are waiting for and two thirds fewer bytes is worth more than the wait it saves.

There is no quality slider, and that is the point

Every lossy target on this site offers a quality figure. This pair does not, because PNG has no lossy mode to point it at — the format either stores the pixels or it is not PNG. A setting that appeared here would be decorative.

The one size control that exists is the maximum width. That is not compression, it is fewer pixels, and it is the honest lever: the height comes down with the width, so a 4,032-pixel photograph reduced to 1,600 pixels wide is a sixth of the data before the encoder starts, and the result is still larger than most things need. Leave it at zero to keep the original dimensions.

The alpha channel crosses intact

HEIF is specified with alpha, and so is PNG, so transparency makes the trip. If the file holds a subject on a cleared background — a product shot, an exported graphic, a sticker somebody sent you — the transparent areas stay transparent and nothing is filled in behind them.

This is the single practical reason to prefer PNG over JPG for a HEIF source. JPEG has no alpha channel at all, so the same file converted that way arrives with white behind the subject and no way to remove it afterwards without cutting it out again by hand.

Sixteen bits are available and eight are what you get

PNG is specified up to sixteen bits per channel, which is more than the ten HEIF can hold, so on paper this conversion has room to spare. In practice the pipeline moves the picture through an eight-bit buffer, so eight bits per channel is what the encoder receives and eight is what lands in the file.

The consequence is narrow but worth stating: a wide-gamut HEIF with a long, smooth gradient can pick up faint banding that was not in the original, and a PNG with sixteen-bit depth would have avoided it. For anything short of a graded studio backdrop, nobody will find the difference.

No profile, no EXIF, no coordinates

The PNG that comes out carries pixels and nothing else — no colour profile, no camera model, no capture time, and no GPS position. That is not a privacy feature bolted on afterwards; it falls out of how the conversion works, since decoding to raw pixels and re-encoding leaves no path for a metadata block to travel along.

It is worth knowing in both directions. A photograph you are about to publish is stripped of the coordinates of the place it was taken, which is usually a house. A photograph you are archiving loses its date, so if that mattered, read it off the HEIF before you convert and write it down somewhere that is not the file.

One image out of the container, and it is the right one

HEIF is a container specification and a single file may hold more than one picture — a burst, a set of alternates, a sequence. The decoder takes the primary image, which is the one any viewer shows you when you open the file, and converts that.

For an editing workflow this is what you want: one file in, one PNG out, no surprise batch of eight images with names you did not choose. Where a container genuinely holds several pictures you care about, that is a job for software built to browse it rather than for a converter.

It runs on your machine, which matters for a working file

Both halves — the HEIF decoder and the PNG encoder — execute in the browser tab. Nothing is uploaded, nothing is queued, and there is no server-side copy with a retention policy to read. The free tier accepts files up to 100 MB each, and PNG output is where that ceiling is worth remembering, since the output is much larger than the input.

A folder converts in one pass with a progress row per file, and an "all as ZIP" button appears once two have finished. That is a practical difference for this pair in particular: PNG downloads are large, and thirty of them individually is a slower afternoon than one archive.

The pictures PNG is genuinely the right format for

Everything above is about a photograph, because that is what a .heif file usually holds. PNG's real strengths lie elsewhere: flat colour, hard edges, text, diagrams, line art and screenshots. On those it is both smaller than a lossy format at equivalent legibility and free of the soft halos that lossy compression leaves around type.

It comes up more often than you would think with this source. Phones save screenshots and scanned documents into the same container as photographs, so a .heif can easily hold a receipt, a chart or a page of text. If that is what you have, PNG is not the expensive lossless option — it is the correct one, and the JPG would have looked worse at a similar size.

Plan for the disk space a batch of PNGs needs

Because every output is many times its input, a folder conversion has a footprint worth thinking about in advance. Fifty phone photographs occupying 120 MB as HEIF can land as well over a gigabyte of PNG, all of it written by the browser to your downloads folder in one go.

The free tier's 100 MB ceiling applies per input file, so it will never stop you here — no HEIF approaches it. The limits you will actually meet are your own disk and, on a machine with little memory, the browser holding several decoded images at once. Converting in batches of ten rather than a hundred is the practical answer, and taking each batch as a ZIP keeps the downloads folder navigable.

How to get an editable PNG out of a HEIF file

  1. Drop the HEIF files onto this page, or click to choose them.
  2. Set a maximum width if the full-size PNG would be unwieldy.
  3. Download the PNG, or take the batch as a single ZIP.

HEIF against PNG: a lossy container against a lossless one

HEIF compared with PNG
HEIFPNG
Full nameHigh Efficiency Image File FormatPortable Network Graphics
File extension.heif.png
Media typeimage/heifimage/png
CompressionLossy — file size is bought with qualityLossless — nothing is discarded
First published20151996
Published byMPEGPNG Development Group
SpecificationISO/IEC 23008-12ISO/IEC 15948
LicensingPublished, not standardisedOpen standard
Standing todayCurrentCurrent
Bit depth1016
Colour it can describeYCbCr, wide gamutRGB, greyscale, indexed palette
Largest image2,147,483,647 px per side
Opens in a browserSome browsersEvery browser
Considered insteadJPG, AVIFWebP, SVG, JXL

What is lost

PNG holds a single still image. An animated HEIF keeps its first frame and loses the rest, so a conversion is a way to take a still out of one, not a way to move it.

PNG holds one page. A multi-page HEIF converts a page at a time rather than in one file.

PNG has nowhere to put the GPS coordinates, so that goes no further than the HEIF. Worth checking before the original is deleted, and worth knowing if the point was to strip it.

What survives

Transparency survives. Both HEIF and PNG store an alpha channel, so a cut-out stays cut out and nothing is filled in behind it.

Opening the result

PNG opens in every current browser. HEIF has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

File size and quality

The result is larger than the original and no better. HEIF has already discarded detail, and PNG stores what is left without discarding more — it prevents further loss rather than undoing the first one.

What each format is for

The two are aimed at different work: HEIF at phones and photography, PNG at screenshots, line art and logos and the web. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

HEIF is MPEG's format, published in 2015. It records 10 bits per channel.

PNG comes from PNG Development Group and dates from 1996, specified as ISO/IEC 15948. Adobe Photoshop, GIMP and Paint.NET all read it.

PNG was published in 1996 and HEIF in 2015. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.

HEIF to PNG: file size, transparency and editing

Are my HEIF files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is libheif, the reference decoder for Apple's HEIC; your browser fetches it once and caches it.

Is HEIF to PNG really lossless?

From here on, yes. The PNG stores every pixel the decoder produced, exactly, and re-saving it a hundred times changes nothing. What it cannot do is undo the compression the camera already applied when it wrote the HEIF — those details are gone before this page sees the file.

Why is the PNG so much larger than the HEIF?

Because PNG compresses without discarding anything, and photographic detail is close to random from a compressor's point of view. A phone photograph that is 2 MB as HEIF is routinely 15 to 25 MB as PNG. That is the format working as designed, not a fault in the conversion.

Is there a quality setting?

No, and there cannot be. PNG has no lossy mode, so there is nothing to trade. The only size control on this pair is the maximum-width field, which reduces the pixel count itself.

Does transparency survive?

Yes. HEIF can carry an alpha channel and so can PNG, so a cut-out arrives with its transparency intact. This is the main reason to choose PNG over JPG here, since JPEG has no alpha at all and fills the transparent areas with white.

Will the PNG carry the camera information?

No. The picture is decoded to pixels and re-encoded, which no metadata block survives, so the PNG has no EXIF, no timestamp and no GPS position in it. If you need the capture date, read it from the HEIF first.

Should I use PNG or JPG for a photograph?

JPG unless you have a reason. PNG is the right answer when you will edit the file, when transparency matters, or when something downstream refuses lossy input. For sending a holiday photograph to somebody, PNG is ten times the bytes for no visible gain.

More about these formats

Where these figures come from

The claims this page makes about HEIF and PNG are checkable, and these are the documents that settle them.