GIF to PNG: How to Keep Transparency (and What Happens to Animated GIFs)
To convert a GIF to PNG and keep its transparency, open GIF to PNG, choose your GIF and download the PNG. We tested it with a GIF that had a transparent background: the PNG came out transparent too. An animated GIF becomes a single PNG of its first frame, not an animation.
What we tested
Before writing this we ran the converter on test files rather than assume:
- A GIF with a transparent background came out as a PNG with a transparent background. The pixel in the corner was still fully transparent in the PNG.
- An animated GIF with three frames came out as one PNG, and that picture was the first frame of the animation.
- The size stayed the same: a 60 × 40 pixel GIF gave a 60 × 40 pixel PNG.
For comparison, the same GIF converted to JPG shows a white background where it was transparent, because JPG can't hold transparency. If you need to keep transparency, pick PNG, not JPG.
GIF and PNG: what's different
- Colors. A GIF holds at most 256 colors. A PNG can hold millions. Converting a GIF doesn't add colors, so the PNG looks exactly like the GIF, but it can now be edited and saved without that limit.
- Transparency. A GIF pixel is either fully transparent or fully solid. A PNG can also be partly transparent, which allows soft, smooth edges.
- Animation. A GIF can move. A standard PNG is a single still picture.
The consequence is that converting a GIF doesn't smooth its edges. If the transparent area of your GIF has jagged, stair-stepped edges, the PNG keeps them, because the partly transparent pixels were never in the GIF to begin with. To get soft edges you need the original artwork, or you have to retouch the PNG in an image editor.
How to convert GIF to PNG
- Open GIF to PNG.
- Click to choose your GIF, or drop it on the page. Free accounts take files up to 25 MB.
- Start the conversion.
- Download the PNG and open it on a colored background or in an editor to check that the transparent area is still transparent. Many image viewers show transparency as white or a checkerboard.
Pro accounts can convert up to 20 GIFs at once and download them as a ZIP.
If your GIF is animated
The converter takes the first frame only. If you need a different frame, the tool can't pick it. Your options:
- Keep the movement in another format. GIF to WebP keeps the frames: in our test a three-frame GIF came out as a three-frame WebP. WebP can also hold smooth, partly transparent edges, which GIF can't.
- Make a video. For sharing on social sites and messaging apps, GIF to MP4 turns it into a video, which plays almost everywhere but has no transparency.
- Get a still from another frame. Open the GIF in an editor that shows its frames, export the frame you want, and convert that.
When to choose WebP instead of PNG
PNG is lossless, so files of photos and gradients can be large. For a still picture on a website, PNG to WebP can make a smaller file, and WebP supports transparency. If the file just needs to be smaller, run the PNG through Compress Image. For the full comparison, see JPG vs PNG vs WebP.
Troubleshooting
The background is white, not transparent. You may be looking at a viewer that shows transparency as white. Place the PNG on a colored background to check. If it really is white, the GIF had a white background rather than a transparent one.
I got only one frame. That is how the converter handles animated GIFs. Use GIF to WebP to keep the animation.
The edges look jagged. GIF transparency has no soft edges, and the PNG keeps what the GIF had. Use the original artwork if you have it.
The PNG is bigger than the GIF. That is normal for some pictures. Compress it, or use WebP.
"The file can't be read." The GIF may be damaged. Try opening it in a browser.
FAQ
Does GIF to PNG keep the transparent background?
Yes, in our test the PNG kept the transparent background of the GIF.
What happens to an animated GIF?
You get a single PNG of the first frame. The animation is not kept.
Can I convert a PNG back to GIF?
Yes, with PNG to GIF. A GIF can't hold more than 256 colors, so a photo-like PNG will lose color detail.
Is it free?
Yes. You can run 2 jobs a day without an account and 10 a day with a free account. Pro removes the daily limit and ads for $4 a month or $38.40 a year.
Are my files kept?
The uploaded file is deleted when the job is done. The result is kept for 7 days so you can download it.
Ready? Open GIF to PNG and drop your file in.
Related articles
- JPG, PNG or WebP: Which Image Format Should You Use?
- The Best Free Online Image Tools, Compared Honestly
- How to Make a Favicon from a PNG (ICO Sizes and HTML Tag)