Convert GIF to PNG

Converting GIF to PNG keeps the transparent background intact, which is the reason to choose PNG over JPG for a logo or an icon. An animated GIF becomes its first frame, because a PNG holds exactly one picture. Drop the file above and it converts inside your browser, losslessly and without an upload.

  • Where it runs In your browser. The file is never uploaded.
  • Lossless Nothing is discarded. The PNG holds exactly what the GIF held.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Only the first frame is converted; an animated GIF becomes a still image.

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

What GIF to PNG actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as GIF.

GIF36 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as PNG.

PNG139 KB3.8× larger

A photographic scene — smooth gradients, soft edges, grain. This is the case PNG is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as GIF.

GIF8 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as PNG.

PNG7 KB7% smaller

A transparent background and a gradient across the shape. PNG either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as GIF.

GIF6 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as PNG.

PNG3 KB2.4× smaller

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

Why PNG rather than JPG for this

The decision comes down to transparency. GIF can mark pixels as see-through and PNG stores that faithfully; JPG has no alpha channel at all and fills transparent areas with a solid colour. A logo with a transparent background converted to JPG arrives on a white rectangle — sometimes invisibly, if the logo itself is pale.

PNG is also lossless, so the picture is preserved exactly rather than compressed with detail thrown away. For anything with hard edges — an icon, a diagram, text, a sticker — that matters twice over: JPG smears those edges, and PNG does not touch them.

PNG does more with transparency than GIF can

The two formats disagree about what transparency means. GIF stores one bit per pixel: transparent or not, nothing between. PNG stores a full opacity value, so an edge can fade gradually from solid to invisible, which is what makes a PNG logo sit cleanly on any background colour.

Converting GIF to PNG therefore loses nothing and does not magically improve the edges either. A GIF’s hard, slightly jagged outline stays hard and slightly jagged, because that is what is in the file. The advantage arrives afterwards: if you edit the PNG — resize it, add a shadow, feather an edge — the format can hold the result, where re-saving as GIF would flatten it back.

An animation becomes one moment

A PNG is a single picture. There is no mechanism for a second, so an animated GIF has to be reduced to one frame, and the first is the only choice that does not involve guessing which moment was meant.

That is frequently not the frame anybody wants, because animations often open on a blank or near-blank lead-in. If a specific moment matters, convert the GIF to MP4 or WebM first and take a still from that — the video route lets you name a timestamp, which is exactly the control this conversion cannot offer from a single-image target.

The colour reduction already happened

A GIF holds at most 256 colours, and whatever was lost when it was made is gone before this conversion begins. PNG stores what it is given, losslessly and exactly — which means a banded GIF produces a banded PNG.

That is worth stating because "lossless" gets read as "restores quality", and it does not. What it guarantees is that nothing further is lost: the PNG will not degrade when you edit and re-save it, which a JPG would. If the original image before it became a GIF still exists somewhere, converting that instead will always look better.

How to reach a frame other than the first

The practical answer is to move the frame you want to the front. Any GIF editor trims the lead-in, and after that this conversion returns the moment you meant.

For a specific frame deep inside a long animation, convert the GIF to MP4 first and take a still from the video, where a timestamp can be named. Two steps, but it is the only route that reaches frame 147 of 300.

Why the PNG usually outweighs the GIF

A GIF is compressed, and a PNG usually ends up larger for the same picture. That surprises people who think of PNG as the modern format and GIF as the old small one.

The reason is that the GIF only ever had 256 colours to store, while the PNG is holding the same picture in a format prepared for sixteen million. On a very flat image PNG sometimes wins anyway; more often it does not. What PNG buys here is not size — it is that the next edit costs nothing.

Where this conversion is clearly worth it

Two cases. The first is a sticker, an emoji or a mark with transparency that has to go somewhere GIF is not accepted: a design tool, a document, a slide deck.

The second is anything about to be edited. A GIF re-saved after every change goes through the palette again each time and degrades a little more; a PNG does not. If the file is going to be worked on, the conversion has paid for itself by the second save.

The dimensions come from the GIF

The PNG is exactly the size of the GIF. Animations are often small, because every extra pixel was multiplied across every frame when the format took hold, and 480 pixels wide remains common.

Enlarging the PNG afterwards adds no detail, because there was none there to add. If the image needs to be large, the GIF is the wrong source to start from.

Converting several at once, and nothing uploaded

Drop a folder and each GIF gives up its first frame as a PNG; the results come back as a ZIP, in the order you provided them.

The decoding and the PNG encoding both run in your browser with code the page downloaded. Nothing is sent, so there is no queue behind anybody else and no daily allowance to spend; the batch itself stops at 100 files at once.

How to convert a GIF to a PNG

  1. Drop your GIF onto this page, or click to choose one.
  2. The first frame is decoded and written as a PNG, in your browser.
  3. Download the PNG. The transparency came with it.

GIF vs PNG: two lossless formats, one of them modern

GIF compared with PNG
GIFPNG
Full nameGraphics Interchange FormatPortable Network Graphics
File extension.gif.png
Media typeimage/gifimage/png
CompressionLossless — nothing is discardedLossless — nothing is discarded
First published19871996
Published byCompuServePNG Development Group
SpecificationGIF89aISO/IEC 15948
LicensingOpen standardOpen standard
Standing todayLegacy, still read everywhereCurrent
Bit depth816
Colour it can describeindexed paletteRGB, greyscale, indexed palette
Largest image65,535 px per side2,147,483,647 px per side
Opens in a browserEvery browserEvery browser
Considered insteadWebP, MP4WebP, SVG, JXL

What is lost

PNG holds a single still image. An animated GIF 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.

What survives

Nothing is discarded. GIF and PNG both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.

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

Opening the result

GIF dates from 1987 and is largely superseded. PNG is what current software writes, so the conversion is as much about staying readable as about the file itself.

GIMP and Adobe Photoshop read both GIF and PNG, so there is a way to check the result against the original without a second tool.

What each format is for

GIF is CompuServe's format, published in 1987. It records 8 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.

GIF to PNG: common questions

Does the transparent background survive?

Yes, and that is the main reason to choose PNG over JPG here. GIF marks pixels as fully transparent or fully solid, and PNG stores all of that faithfully. It can do more besides — PNG supports partial transparency, which GIF cannot — so nothing is lost, though nothing soft is gained either: an edge that was hard in the GIF stays hard.

Which frame do I get from an animation?

The first. A PNG holds one picture, so an animation has to become a single moment and the first frame is the only one that can be chosen without guessing. If the frame you want is later, this is the wrong tool — convert the GIF to a video and take a still from that, where you can pick the moment by time.

Will the image look better as a PNG?

It will not look worse, which is the useful guarantee. PNG is lossless, so the picture is stored exactly as it was, and any editing you do afterwards will not soften it further. What it cannot do is undo the colour reduction the GIF already applied — if the GIF is banded, the PNG is banded identically, just permanently and cleanly.

Why is the PNG larger than the GIF?

Usually it is smaller, because PNG compresses flat colour better than GIF does. When it is larger, the cause is almost always that the GIF was an animation and you are comparing one frame against many — or that the image is photographic, where neither format is the right home. For a logo or an icon, expect the PNG to win.

Is the file uploaded?

No. The GIF is decoded and the PNG written inside your browser, so nothing is sent. There is no account and no daily allowance; a batch runs to 100 files at once.

Not sure which you need?

This page converts one into the other. If you are choosing rather than converting, GIF vs PNG answers which to use, for what, and what each is bad at.

More about these formats

Where these figures come from

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