Convert PNG to GIF
A GIF can hold 256 distinct colors. A PNG holds sixteen million. Everything that happens in this conversion follows from that one number, and whether the result looks fine or ruined depends entirely on how many colors your image was actually using.
Use this without the search next time. Prathom Workbench puts Prathom's tools in your toolbar.
Add to Chrome — freeDrop your PNG file here, or click to browse
Up to 50 MB. Deleted automatically after 30 minutes.
What it does
- Palette built from the colors your image actually contains
- Flat-color graphics convert with no visible change at all
- Transparency preserved, as a hard on-or-off mask
- No watermark and no sign-up
How to use PNG to GIF
- 1
Add the PNG
Logos, diagrams, pixel art, screenshots of interfaces — anything already built from a limited set of flat colors converts cleanly. Photographs are the hard case.
- 2
Convert
The image is analyzed, a palette of up to 256 colors is chosen to fit it, and every pixel is mapped to the nearest entry. This is quick even on large images.
- 3
Look at the result before using it
Check smooth gradients and skin tones especially. If the image looks banded or speckled, it had more colors than the format can carry, and PNG or WebP is the honest answer.
How it works
The image is scanned to find which colors it actually uses, a palette of at most 256 is built to represent them, and each pixel is rewritten as an index into that palette rather than as a color of its own.
That indirection is what makes GIF small on the right image and destructive on the wrong one. Storing an index costs one byte instead of three, and a picture built from twelve flat colors loses nothing by being described that way.
The number that decides everything
Count the distinct colors in your image and the outcome is predictable.
Under 256. The conversion is lossless in practice. Every color gets its own palette entry and the output is identical to the input.
A few thousand. Mostly fine, with banding appearing in the smoothest areas first — skies, shadows, soft shadows behind a card.
Tens of thousands or more. This is every photograph. The vast majority of the image's colors are discarded and the damage is obvious.
Anti-aliased text is the trap in the middle. A logo that looks like two colors often contains a hundred or more along its curved edges, where the renderer blended between the shape and the background. Those survive comfortably, but it explains why a "two-color" image sometimes needs more palette entries than expected.
Where GIF still earns its place
Animation with wide support. The format's real remaining advantage. Modern video formats beat it on both size and quality, but a GIF plays inline in email clients, chat apps and forums that will not play anything else.
Pixel art. Already built from a small palette and hard-edged by design, so the format's limits are not limits at all.
Systems that specify it. Older content management software, e-mail template builders, and some sticker and emoji pipelines accept GIF and refuse newer formats outright.
What this page will not do
It will not animate anything. A single PNG is one frame, and one frame in equals one frame out — a still GIF, which is a larger, more limited PNG.
It will not improve on the source. If the PNG is soft or noisy, the conversion inherits that and adds palette reduction on top.
The reverse is usually what people want
Converting a GIF to PNG recovers nothing that was already lost, but it stops the loss continuing and gives you a format with real transparency and better compression. If a GIF is sitting in your workflow because something old put it there, moving out of the format is the move that helps.
Examples
A flat two-color logo
Smaller and pixel-for-pixel identical. An image using two colors loses nothing when the ceiling is 256, and GIF's run-length compression suits long horizontal spans of one color better than PNG's filtering does. This is the case where the conversion is a straight win.
A photograph
Nearly every color in the image had to be discarded. Smooth areas break into visible steps, and the eye finds those steps immediately on skin and sky. Smaller, and clearly worse. A photograph should not become a GIF.
Frequently asked questions
Why does my photo look blotchy?
Because a photograph typically contains tens of thousands of distinct colors and GIF can store 256 of them. Every other color is replaced by the closest survivor, so gradients that shaded smoothly now step between a handful of tones. The effect is called banding, and no setting removes it — the ceiling is in the format.
What is dithering and do I want it?
Dithering scatters pixels of two palette colors together so that, viewed from a distance, they read as an intermediate shade the palette does not contain. It hides banding and replaces it with a fine speckle, and it makes files noticeably larger because the noise defeats compression. It helps photographs and hurts flat graphics.
Will transparency still work?
Yes, but only as a hard edge. GIF stores one palette entry meaning "transparent", so a pixel is either fully see-through or fully opaque, with nothing in between. A PNG with a soft anti-aliased edge gets a jagged one, which is most visible on curved shapes and small text placed over a background.
Should I be using GIF at all?
For a still image, almost certainly not. PNG is better for flat graphics and WebP is better for everything, both with more colors and smaller files. The remaining reasons are real but narrow: a system that accepts nothing else, a forum or chat client with a fixed whitelist, or an emoji or sticker pipeline built around the format.
Further reading
- GIF Was Perfect on a Page of Text and Ruined the PhotographGIF is usually described as a lossy format, or at least as one that ruins images. That is not quite right. GIF's compression is lossless; what it cannot do is hold more than 256 colors. On an image that already has fewer than that, GIF is perfect. On a photograph it is a disaster. The same format, two completely different outcomes.
- GIF Transparency Has Exactly One Bit, and It Shows on Every EdgeA PNG can record a pixel as 37% transparent. A GIF cannot — each pixel is either fully visible or fully invisible, and there is nothing in between. On a shape with a soft anti-aliased edge, that difference is measurable, and it is why a logo saved as GIF gets a jagged fringe that no amount of care in the original file prevents.
- Cutting a Graphic to Sixteen Colors Saved Fourteen Per CentReducing the palette is standard advice for shrinking a PNG, and on a graphic that is already flat color it buys far less than the drastic-sounding change suggests. The reason is that PNG was already exploiting the same redundancy, and it had got there first.