FormatDrop
How-To Guide

How to Convert PNG to GIF

GIF is the oldest widely supported animation format and still dominates on social platforms like Tenor, Giphy, and older CMSes that don't accept WebP or APNG. Converting a static PNG to GIF is straightforward, but GIF's 256-color palette limit means you'll lose color depth on photographic images — GIF is best for illustrations, logos, and flat-color graphics.

Step-by-step instructions

  1. 1

    FormatDrop (browser)

    Drag the PNG file onto FormatDrop and select GIF as the output. FormatDrop converts server-side and returns a GIF with the best-possible 256-color palette. Download the result. For static PNGs, the output is a single-frame GIF — visually identical to the source for graphics with fewer than 256 colors, slightly degraded for full-color photos.

    Go to converter
  2. 2

    ImageMagick command line

    Single file: `magick input.png output.gif`. Force dithering for better photo color rendering: `magick input.png -dither FloydSteinberg -remap netscape: output.gif`. Batch convert: `for f in *.png; do magick "$f" "${f%.png}.gif"; done`. ImageMagick automatically reduces to 256 colors; use `-colors 256` explicitly if you want to tune the palette. To create an animated GIF from a sequence of PNGs: `magick -delay 10 -loop 0 frame*.png animation.gif`.

  3. 3

    GIMP (GUI, Windows/Mac/Linux)

    Open the PNG in GIMP (File → Open). File → Export As → change extension to .gif → Export. In the GIF export dialog, check whether to export as static (one frame) or animated (multiple layers become frames). GIMP will automatically reduce to indexed color (256 colors) and apply dithering. For the best palette: Image → Mode → Indexed → choose 'Generate Optimum Palette' with 256 colors before exporting.

  4. 4

    Photoshop (Mac/Windows)

    Open the PNG. File → Export → Save for Web (Legacy). Choose GIF as the file type. Set Colors to 256 for maximum quality. Choose the dithering algorithm: Diffusion dither is generally best for photographic content, No Dither for flat-color graphics. Use the preview to compare quality before saving. Photoshop's 'Save for Web' produces well-optimized GIFs with good palette selection.

Why convert PNG to GIF?

GIF is the universal animated image format supported everywhere. When a platform doesn't accept WebP or modern formats, GIF is the reliable fallback.

Your files never leave your device

FormatDrop runs the conversion engine entirely inside your browser using WebAssembly. No file upload. No server. Nothing stored. You can verify this by opening DevTools → Network tab and watching: zero upload requests.

Frequently asked questions

Will my PNG image look the same as a GIF?
If the PNG has 256 or fewer unique colors (logos, icons, simple illustrations), the GIF will look identical. If the PNG is a photograph with millions of colors, you'll see banding and posterization as the image is reduced to 256 colors. GIF is not suitable for photographic content — use JPEG or WebP instead. For illustrations and pixel art, GIF is often a perfect match.
How do I make an animated GIF from multiple PNGs?
ImageMagick: `magick -delay 10 -loop 0 frame*.png animation.gif` (delay is in hundredths of a second — 10 = 100ms = 10fps). Alternatively: `magick -delay 10 -loop 0 *.png animation.gif`. For more control, use ffmpeg: `ffmpeg -framerate 10 -pattern_type glob -i '*.png' -vf 'fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse' animation.gif`. FFmpeg with palette generation produces noticeably better color quality.
What's the maximum number of colors in a GIF?
GIF supports exactly 256 colors maximum — this is a hard constraint of the format, defined in the 1987 specification. Each frame in an animated GIF can have its own 256-color local palette, which is how some animated GIFs appear to display more colors (different frames use different palettes). For static images, you're limited to 256 globally.
Convert PNG to GIF Now — Free

No account. No upload. Works in any browser.