Why convert PNG to GIF?
PNG is the better format for still images: it’s lossless, holds millions of colors and supports smooth transparency. GIF is older and more limited, but it plays animations almost everywhere, which is why it’s still in use. Common reasons to convert:
- You want an animation. A few PNG frames, such as the steps of a tutorial, a sprite sheet cut into frames or a short slideshow, become one looping GIF.
- A site or app asks for a GIF. Some forums, chat apps and upload forms take animated images only as GIF, and plenty of older software reads GIF but not animated PNG.
- Consistency. If the rest of a set is GIF, a converted PNG fits in.
What changes when a PNG becomes a GIF
Colors. A GIF frame has a palette of at most 256 colors. When a PNG has 256 colors or fewer, as many logos, icons and pixel art images do, every color is kept exactly. When it has more, the converter picks the 256 colors that best represent the image and, with dithering on, mixes them in a fine pattern to imitate the rest.
Transparency. GIF transparency is on or off for each pixel. Hard-edged shapes come through unchanged, but a soft drop shadow or anti-aliased edge loses its partial transparency. Setting a white or black background blends those edges into that color first, which looks cleaner when you know where the GIF will be shown.
Quality settings. Fewer colors mean smaller files, and 64 or even 32 colors is often plenty for simple graphics. Dithering helps photos and gradients but adds file size and texture, so turn it off for flat-color artwork.
Making an animated GIF
Add the frames in the order they should play, then choose the frame time: 0.1 seconds for smooth motion, 0.5 to 2 seconds for a slideshow. The animation loops forever. Each frame gets its own palette, so a frame full of blues doesn’t have to share colors with a frame full of reds.
To keep files a sensible size, animations are at most 1080 pixels on the longest side; larger frames are scaled down and a note says so. If you have a single image made of several frames in a grid, the image splitter can cut it into separate frames first.
To go the other way and get a still image back from a GIF, use GIF to PNG. For photos, where a 256-color limit shows, PNG to JPG gives a much smaller file.
PNG vs GIF at a glance
| Feature | PNG | GIF |
|---|---|---|
| Colors | Millions | Up to 256 per frame |
| Transparency | Full, including soft edges | On or off per pixel |
| Animation | APNG, with patchier support | Yes, supported almost everywhere |
| Compression | Lossless | Lossless within its 256 colors |
| Good for | Still graphics, screenshots, editing | Short, simple animations |