GIF files are everywhere on the older web: logos on long-running company sites, icons in old documentation, clip art, stickers and, of course, animations. When you need one of those images in a presentation, a design tool or a modern website, a still PNG is usually what you want. It opens everywhere, keeps the transparent background, and does not start animating in the middle of a slide.
This guide explains how GIF and PNG differ, what converting does and does not change, how to batch convert GIFs to PNG, and what to do when the first frame of an animation is not the picture you wanted.
GIF and PNG: related but not equal
PNG was created in the mid-1990s partly as a patent-free replacement for GIF, so the two have a lot in common. Both are lossless and both support transparency. The differences explain why PNG is the better format for still images today.
| GIF | PNG | |
|---|---|---|
| Colours | Up to 256 per frame (palette) | Palette, full colour or full colour with alpha |
| Transparency | On or off per pixel (1-bit) | 256 levels per pixel (alpha channel) |
| Animation | Yes | Not in standard PNG |
| Compression | LZW | Filtering plus DEFLATE, usually smaller |
| Support | Universal | Universal |
What the 256-colour limit means
Every GIF frame uses a palette of at most 256 colours. Photos and gradients saved as GIF are approximated, often with dithering, a pattern of dots that simulates in-between shades. Converting to PNG preserves those pixels exactly. It cannot bring back the lost colours, but it will not make them worse either.
What 1-bit transparency means
In a GIF, each pixel is either fully transparent or fully opaque. Edges therefore look jagged, and a GIF made for a white page often has a pale fringe of pixels that were blended with white when it was created. In PNG those pixels remain exactly as they were; the fringe becomes visible if you place the image on a dark background.
Convert GIF to PNG with our tool
The GIF to PNG converter runs in your browser and handles many files at once.
- Open GIF to PNG and drop your
.giffiles onto the upload box, or click to choose them (up to 50 MB each). - Click Convert to PNG. There are no settings to choose: PNG is lossless and transparency is kept automatically.
- Each GIF becomes one PNG of its first frame. The list shows the original size, the new size and the dimensions of each file.
- Download PNGs individually with the PNG button, or together with Download all (ZIP).
For animated GIFs where you need a frame other than the first, or every frame, use the GIF Frame Extractor, which shows each frame with its timing and lets you save any of them.
Other ways to get a still PNG from a GIF
Paint on Windows
Open the GIF in Paint and choose Save as > PNG picture. Paint only shows the first frame of an animation, and it may not keep transparency, so check the result on a coloured background.
Preview on a Mac
Preview shows each frame of an animated GIF as a thumbnail in the sidebar. Select the frame you want and use File > Export with PNG as the format, or drag the thumbnail to the desktop. Transparency is kept.
Command line
magick "logo.gif[0]" logo.png
The [0] selects the first frame. For a later frame of an optimised animation, coalesce first so you get the full picture rather than a partial patch:
magick animation.gif -coalesce "frame-%02d.png"
Screenshots
Taking a screenshot of a GIF is quick, but it adds whatever is behind the image, loses transparency and records it at screen scale. Use it only if nothing else is available.
Tips and pitfalls
The first frame is blank or partial
Some animations start with an empty frame, a fade-in, or a frame that only makes sense in motion. If the converted PNG looks wrong, open the GIF in the GIF Frame Extractor and pick a better frame. Frames that are shown for longer are often the "resting" state of the animation.
The PNG is larger than the GIF
It can happen. Simple GIFs are compact, and the browser saves a full-colour PNG rather than a 256-colour palette PNG. If size matters, the Image Compressor can reduce the colour count again, or you can convert to WebP with PNG to WebP.
Enlarging small GIF graphics
GIF icons and logos are often tiny, perhaps 88 × 31 or 120 × 60 pixels. Scaling them up makes them blurry. For logos, look for a vector (SVG) original, or recreate the logo. For pixel art, scale by whole numbers with nearest-neighbour resampling to keep sharp blocks.
Fixing the fringe on dark backgrounds
If you need the graphic on a dark colour, a pale halo is common. Removing it needs an image editor, or you can place the PNG on a white area instead.
Need a JPG instead?
For a flat image with a solid background for documents or print, GIF to JPG fills transparent areas with a colour of your choice.
Frequently asked questions
Does converting GIF to PNG keep transparency?
Yes. Pixels that are transparent in the GIF stay transparent in the PNG.
Does GIF to PNG improve image quality?
No. The PNG keeps the GIF's pixels exactly, including its 256-colour limit and any dithering. It does not lose anything either.
What happens to an animated GIF?
Each GIF becomes one PNG of its first frame. Use a GIF frame extractor to save other frames or the whole sequence.
Why is my PNG bigger than the original GIF?
The PNG is saved in full colour instead of GIF's compact 256-colour palette. For simple graphics this can make the file larger, although it remains lossless.
Can PNG files be animated?
Standard PNG files are still images. An animated extension called APNG exists and is supported by modern browsers, but this converter creates normal still PNGs.