Home › File & PDF Tools › PNG to GIF Converter

PNG to GIF Converter

Plenty of places still ask for a GIF — an older forum, a wiki, a game engine, a legacy upload form — while the image on your computer is a PNG. This free png to gif converter bridges that gap: drop your PNG, keep its transparency if it has any, resize it if you like, and download a GIF. Nothing leaves your device: the conversion runs entirely in your browser, with no upload, no queue and no sign-up.

Drop a PNG image here or click to browse your files

No image selected yet
Add a PNG image above to make your GIF.

Nothing leaves your device. All processing happens in your browser — your image is never uploaded to any server. The checkered pattern behind a preview means those parts are transparent.

How it works

PNG and GIF store pictures in fundamentally different ways. A PNG keeps every pixel in full color — millions of possible colors, plus smooth semi-transparency. A GIF stores an index: a palette of at most 256 colors, with each pixel pointing at one palette entry. Converting PNG to GIF therefore means choosing the best 256 colors for your picture and rewriting every pixel in terms of that palette. For logos, icons and flat illustrations that barely use 256 colors, the result can be indistinguishable from the original. For photos and smooth gradients it cannot be — there are not enough palette slots, and the honest result is some visible banding, which the dithering options exist to soften.

The conversion runs in four steps, all on your device. First, the tool checks the file really is a PNG by reading its opening bytes — every genuine PNG starts with the same eight-byte signature — so a JPEG renamed to .png is politely rejected. The PNG is then decoded by your browser and drawn onto a canvas at the size you chose: width from your percentage or custom value, height scaled by the picture's own proportions so nothing is stretched. Next, the canvas pixels go to this site's own GIF encoder library (gif.js, loaded from this site's files, worker included — nothing comes from a CDN). The encoder builds the 256-color palette by sampling your pixels — Quality controls how densely it samples; lower numbers mean a more careful palette and a slower conversion — optionally spreads the rounding error across neighboring pixels (that is dithering), and writes the finished GIF.

Output height = round(original height × output width ÷ original width)  ·  GIF palette = at most 256 colors  ·  GIF transparency = fully transparent or fully opaque, nothing between

Transparency deserves its own paragraph, because GIF handles it more crudely than PNG. A GIF can mark exactly one palette color as transparent; every pixel in that color becomes see-through and every other pixel is fully solid. When you leave Transparency on Keep, this tool decides each pixel's fate by its PNG alpha value: pixels at least half opaque stay solid, lighter pixels become transparent. It then paints the transparent pixels with a "spare" color — one your picture barely uses — and tells the encoder to flag that palette color as the transparent one. But soft edges, drop shadows and glows, which rely on semi-transparency, come out harder-edged than in the PNG. If you would rather bake the transparency into a solid backdrop, choose Flatten and a background color: each semi-transparent pixel is blended onto that color as it would look displayed on it.

One more honest limit: a single PNG produces a single still GIF. Animation is a stack of different frames, and one image has only one frame to give — so the output here does not move. What you get is a still GIF that any system, however old, can display.

Worked example

A blogger's header illustration is saved as sunset-banner.png — 480 × 320 pixels, 142.9 KB — and her forum accepts GIF uploads only.

Step 1: She drops sunset-banner.png onto the box. The tool checks the PNG signature and shows "✓ Chosen: sunset-banner.png (142.9 KB)" inside the box.
Step 2: She keeps Original size, quality 10 — High and dithering Floyd-Steinberg, and presses Convert to GIF.
Step 3: The after-preview appears next to the original: sunset-banner.gif — 480 × 320 pixels, 66.0 KB.

The GIF came out smaller than the PNG because the picture is mostly flat shapes with a limited color range — close to GIF's home turf. In the sky you can see the dithering's fine dot pattern: the gradient stays smooth to the eye by trading a little noise for the missing colors. With dithering off, the sky would have shown visible bands instead.

When GIF is — and is not — the right call

Legacy uploads. If a forum, wiki, helpdesk or game tool demands GIF, converting is the only way in — and the GIF keeps your picture's size and transparency for systems built decades ago.

Flat graphics. Logos, icons, diagrams and pixel art are GIF's sweet spot: the palette covers them, files stay tiny, and the result looks identical to the PNG.

Not for photos or archives. If nothing forces GIF, a photo belongs in PNG (or JPEG/WebP): 256 colors is a hard ceiling, and a GIF master copy throws away color information for good. Convert a copy, keep your PNG.

FAQ

Why convert a PNG to GIF?

Because some places still only speak GIF: older forum and wiki software, legacy chat and helpdesk tools, game engines, e-readers and embedded displays accept GIF and reject PNG. GIF also suits simple flat graphics — logos, icons and diagrams with few colors — whose small files open everywhere without fuss.

Will the GIF look exactly like my PNG?

For flat graphics with few colors, usually yes. For photos and smooth gradients, no. A PNG can store millions of colors; a GIF holds at most 256, chosen as a palette for your picture. Colors outside the palette are swapped for the nearest palette color, so gradient skies and skin tones can show visible bands. Dithering breaks those bands into a fine dot pattern that looks smoother from a distance, at the cost of a slightly noisier image and a larger file.

Does the GIF keep my PNG's transparent background?

Yes, if you leave transparency on Keep. GIF transparency is all-or-nothing: there are no semi-transparent pixels in a GIF. This tool keeps every pixel that is at least half opaque as a solid color and makes every lighter pixel fully transparent, so soft shadows and feathered edges come out harder than in the PNG. The tool paints the see-through pixels with a spare color your picture barely uses and flags that one palette color as transparent.

Can I make an animated GIF from one PNG?

No. One still PNG becomes one still GIF — a single frame with nothing to animate. An animated GIF is a sequence of different frames played in order, and a single image has only one frame to give. If you need movement, you would need a separate image for each frame and a tool that assembles them; this converter is honest about doing the still-image job only.

Why is my GIF bigger than the PNG?

It happens with detailed images: PNG compresses photos efficiently, while GIF's older compression plus dithering can add data instead of removing it. Flat graphics usually go the other way and shrink. If size matters, try a smaller width, turn dithering off, or pick a faster quality setting — and if the GIF is still bigger and nothing requires GIF, keeping the PNG is the right call.

Are my images uploaded to a server?

No. Nothing leaves your device. The conversion runs entirely in your browser using this site's own GIF encoder library — your PNG is decoded, re-encoded and handed back as a download without ever crossing the network.

Disclaimer: Files are processed in your browser and never uploaded. Check the converted file before using it for official or professional purposes — the result depends on the quality and format of the file you upload.