Convert GIF images to lossless PNG right in your browser, keeping transparency exactly as it is in the source. Choose the first frame only, or one PNG per frame.
Files never leave your browser. Everything is decoded and converted locally on your device.
Drag and drop GIF files here, or
You can add several files at once. Each file up to 25 MB.
PNG is a still image, so animation is not preserved. First frame only gives one still; every frame gives one still per frame. PNG is lossless, so there is no quality slider, and outputs are often larger than the source GIF.
PNG keeps the alpha channel, so no white background is added and transparent pixels stay transparent. That is the difference from GIF to JPG, where transparency becomes white because JPG cannot store it. An animated GIF becomes one still, or one still per frame, depending on the mode above. It does not stay animated.
Added files will appear here. Press “Convert to PNG” to start.
Convert GIF to PNG online free
If you need to turn a gif to png file, this free online converter does the job entirely in your browser. Upload one or more GIF files, choose whether to convert the first frame only or every frame, and download each result as a lossless PNG with transparency preserved. No sign-up, no watermark, no queue, and no upload: files process one after another on your device, so you can convert as many GIFs as you like without sending anything to a server.
One honest statement defines the whole tool: PNG is a still image, so animation is not preserved. An animated GIF becomes one still, or one still per frame, depending on the mode you pick. That is a property of the PNG format itself, not a limitation this tool invented. PNG can hold exactly one image per file, so there is no way to keep motion inside a PNG. If you need the animation to keep playing, keep the GIF itself, or use a tool that outputs an animated GIF.
The second honest statement is about transparency. PNG keeps the alpha channel, so see-through pixels stay see-through. That is the sharp difference from converting to JPG, where transparency must become white because JPG has no alpha channel at all. If your GIF has a transparent background for use on a website, in a design, or over a photo, PNG is the format that keeps it usable. The tool never draws a white background behind your image, at any step, for any frame.
The third honest statement is about file size. PNG is lossless, which means every pixel is kept exactly, with no compression damage. The price of that perfection is size: PNG files are often larger than the GIF they came from, especially for small GIFs. The tool shows the before and after size for every file and every frame, with a signed percentage, so growth is shown plainly instead of being hidden behind a vague claim about saving space.
How to convert GIF to PNG in 5 steps
- Add your GIF files. Click “Choose GIF files” or drag and drop GIF files onto the upload area. You can add several at once for batch conversion, and each file may be up to 25 MB. Files are not uploaded anywhere: they are read locally by your browser.
- Wait for the type check. The tool reads the first 6 bytes of each file and requires the GIF87a or GIF89a signature before doing anything else. A file merely renamed to .gif is rejected here with a clear message, and the GIF decoder library is loaded lazily only after a real GIF is confirmed, so corrupt or mislabeled files fail fast instead of producing broken output.
- Choose the frame mode. “First frame only” is the default and gives one PNG per GIF, named after the original file. “Every frame (one PNG per frame)” gives one PNG for each animation frame, named with a frame number, for example anim-frame-1.png, anim-frame-2.png, and anim-frame-3.png. There is no quality slider, because PNG is lossless: there is no quality to trade against size, and adding a slider would imply a choice that does not exist.
- Press “Convert to PNG”. Each ready file is decoded and encoded in turn. A status line under each file shows its dimensions, frame count or frame number, and before and after sizes with the signed percentage change, so you can see at a glance whether the PNG grew or shrank.
- Download your PNGs. Every converted file or frame gets its own download link. In first-frame mode, anim.gif becomes anim.png. In every-frame mode, the same file becomes anim-frame-1.png, anim-frame-2.png, and so on, one file per frame. The “Download all” button downloads every finished file one after another with a short gap between them.
How GIF decoding and transparency work in this tool
GIF decoding means respecting its quirks. The tool starts with the signature check: the first 6 bytes must read GIF87a or GIF89a, the two magic values defined by the GIF specification. Only then is the gifuct-js decoding library loaded, lazily from this same site rather than on page load. If the decoder cannot load, the affected file shows a clear error instead of failing silently.
The parser reads the GIF’s logical screen descriptor for the full canvas size, then decompresses every frame with its position, size, and disposal type. The disposal type tells the renderer what to do with a frame after it is shown: 1 keeps the pixels, 2 clears the frame area, and 3 restores the area to its previous state. To render each frame correctly, the tool composites the frame’s pixel patch onto a full-size canvas honoring these disposal values, mirroring the compositing logic of Pixel File’s Compress GIF tool, so the pixels match the GIF89a specification. Each output snapshot is taken after its frame is drawn and before that frame’s disposal is applied to the next frame, which is how the frame actually appears on screen.
Transparency is handled at the pixel level, not as an afterthought. When a frame patch contains a transparent pixel, that pixel is skipped, so it never erases a pixel drawn by an earlier frame, and untouched canvas areas stay transparent. No white fill is drawn at any point, which is the critical difference from GIF to JPG conversion, where a white background is mandatory because JPG cannot store an alpha channel. The composited frame is then exported with the browser’s PNG encoder, which writes the alpha channel into the file exactly.
Worked example with real test numbers
The tool was tested in a real headless Chromium browser with the same code and decoder that visitors use. The first fixture was static.gif, a 32 by 32 pixel single-frame GIF in the older GIF87a flavor, weighing 92 bytes. In first-frame mode it produced a 134 byte PNG, verified to start with the PNG signature bytes 89 50 4E 47 and to decode in Python PIL as a valid 32 by 32 pixel PNG. The PNG is 46 percent larger than the GIF, and the status line shows that growth honestly as +46 percent. That growth is expected for a tiny GIF: the GIF holds very little data and compresses extremely well, while every PNG carries fixed encoder overhead.
The second fixture was anim.gif, a 64 by 48 pixel GIF89a file with 3 animation frames, weighing 402 bytes. In first-frame mode it produced a single 227 byte PNG of the first frame only, verified by its PNG signature and a PIL decode to exactly 64 by 48 pixels. The status line reported “First frame of 3 frames”, and the output was named anim.png after the original. Here the PNG is smaller than the GIF, about 44 percent smaller, which shows the honest range: sometimes PNG grows, sometimes it shrinks, and the tool reports whichever happened.
The same animated fixture was then run in every-frame mode. It produced exactly 3 PNGs, one per frame, named anim-frame-1.png at 227 bytes, anim-frame-2.png at 225 bytes, and anim-frame-3.png at 233 bytes, each decoding to 64 by 48 pixels. That mode is the right choice when you need a specific later frame, a sprite sheet source, or a set of stills from a short animation, and you do not want to guess which frame the tool picked.
Transparency was tested with a dedicated fixture, not assumed. A 16 by 16 pixel GIF was built with one fully transparent pixel at position (0, 0) and opaque red pixels everywhere else. The converted PNG was decoded in PIL and checked pixel by pixel: the pixel at (0, 0) had an alpha value of 0, meaning fully transparent, while the pixel at (5, 5) had an alpha value of 255, meaning fully opaque. That is direct proof that transparency survives the conversion, rather than a claim based on the format name alone.
PNG vs JPG: when to pick which format
Choosing between PNG and JPG starts with one question: does transparency matter, and does perfect quality matter? If either answer is yes, PNG is the right output. PNG is lossless, so the output pixels match the decoded GIF pixels exactly, and it keeps the alpha channel, so transparent areas stay transparent. That makes PNG the right choice for logos, icons, line art, text graphics, stickers, overlays, and any image that will sit on top of another image or a colored background.
What this tool cannot do
The biggest limitation is stated plainly above: animation is not preserved, in either mode. First-frame mode gives you the opening still, and every-frame mode gives you a set of stills, but no single PNG file from this tool will play as an animation. There is no way to pick a frame by number other than converting every frame and keeping the one you want, and there is no way to reassemble frames into a new animation. Those are different tools with different outputs.
The second limitation belongs to PNG itself. PNG is lossless, so it cannot shrink a file the way a lossy format can. Outputs are often larger than the source GIF, and there is no quality slider to turn down, because turning down quality is not something PNG does. If a smaller file is the whole goal, a lossy format or a GIF compressor is the honest answer, not a PNG with a pretend quality setting.
Input validation is strict by design. Files must start with the GIF87a or GIF89a magic bytes; a renamed PNG, JPEG, or text file is rejected with the message “This file is not a valid GIF. Please choose a real .gif file.” A file with a valid signature but a damaged body fails with “Could not process this GIF. The file may be corrupt.” Files larger than 25 MB are rejected before they are read. These rejections are deliberate: they stop you wasting time on files the decoder cannot turn into a correct PNG.
File size limit and private in-browser conversion
Each file may be up to 25 MB. The size is checked before a single byte is read, so a 25 MB plus 1 byte file is rejected instantly with the message “File is too large. Maximum size is 25 MB.” This limit comfortably covers memes, reaction GIFs, product animations, banner graphics, logos, and screen recordings exported as GIF.
Frequently asked questions
Why does my animated GIF become a still image instead of staying animated?
Because PNG is a still image format and cannot hold animation. The tool decodes the GIF with gifuct-js and exports the selected frame, or every frame, as separate PNG files. In testing, a 64 by 48 pixel GIF with 3 frames produced one still in first-frame mode and 3 stills in every-frame mode. Keeping the animation needs a GIF or video output instead, such as Pixel File’s Compress GIF tool, which outputs an animated GIF.
Why is my PNG larger than the original GIF?
Because PNG is lossless and keeps every pixel exactly, while GIF compresses very efficiently for small, simple images. In testing, a 92 byte 32 by 32 pixel GIF became a 134 byte PNG, 46 percent larger, while a 402 byte animated GIF became a 227 byte PNG, about 44 percent smaller. Both directions are normal. The result line shows before and after sizes with a signed percentage for every file, so growth is never hidden.
How is transparency preserved, and how is this different from GIF to JPG?
PNG keeps the alpha channel, so the tool never draws a background behind your image, and transparent pixels stay transparent. This was verified directly: a test GIF with a fully transparent pixel at (0, 0) produced a PNG whose pixel at (0, 0) had alpha 0, while an opaque pixel had alpha 255. GIF to JPG is different because JPG has no alpha channel, so transparency must become white. If you need transparency, use PNG; if you need the smallest file and do not care about transparency, JPG may fit better.
What is the difference between first-frame mode and every-frame mode?
First-frame mode, the default, converts only the opening frame and names the output after the original file, for example anim.gif becomes anim.png. Every-frame mode converts each animation frame to its own PNG, named with a frame number, for example anim-frame-1.png, anim-frame-2.png, and anim-frame-3.png for a 3-frame GIF. Use first-frame mode for a quick still, and every-frame mode when you need a later frame or a full set of stills.
What happens if my file is not really a GIF?
It is rejected before decoding starts. The tool reads the first 6 bytes of each file and requires the GIF87a or GIF89a signature; anything else, such as a text file or PNG renamed to .gif, gets the message “This file is not a valid GIF. Please choose a real .gif file.” A file with a valid signature but a damaged body fails with “Could not process this GIF. The file may be corrupt.” No broken output is ever produced.
Is there a file size limit, and are my files uploaded anywhere?
Each file may be up to 25 MB, checked before the file is read, with anything larger rejected immediately. Nothing is uploaded: validation, decoding with the lazily loaded gifuct-js library, compositing, and PNG encoding all run inside your browser. No sign-up is required and nothing is stored on a server; closing the tab removes every trace of your files.
Can I convert several GIFs at once, and how does Download all work?
Yes. Add as many GIFs as you like, choose one frame mode for the batch, and press “Convert to PNG”. Files convert one after another, and each finished file or frame shows its name, dimensions, frame count or frame number, before and after sizes, the signed percentage change, and its own download link. In testing, a two-file batch produced two correct download rows with a working “Download all” button, which downloads every finished file one after another with a short gap.
More free PDF and image tools
Pixel File offers a full set of free tools that run in your browser. GIF to JPG converts GIFs to lossy JPG with a white background and no transparency, Compress GIF shrinks animated and static GIFs while keeping the animation, AVIF to PNG converts modern AVIF images to lossless PNG, Convert to JPG converts PNG, WebP, and other common images to JPG, PNG to JPG converts PNG images with transparency flattened to white, and Compress PNG shrinks PNG files while keeping them in PNG format. Every tool is free, private, and needs no sign-up.
References
- Wikipedia: GIF — The GIF format explained
- Wikipedia: PNG — The PNG format explained