WebToolsPlanet
Converter Tools

PNG to GIF Converter

Upload a PNG and download it as a GIF — converted entirely in your browser.

PNG → GIFBrowser basedNo uploadFree

Last updated: May 30, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is PNG to GIF Converter?

PNG to GIF converts PNG images into the GIF format. GIF uses a palette of up to 256 colours with lossless LZW compression, which works well for flat-colour graphics, logos, and icons. Detailed or photographic PNGs are reduced to 256 colours during conversion.

This converter decodes your PNG with the browser's image engine, reduces the colours to a 256-entry palette using median-cut quantization, then builds a standard GIF89a file. Transparency is flattened onto white because this converter writes a flat (non-transparent) GIF. Nothing is uploaded to a server.

How to Use PNG to GIF Converter

1

Drop a PNG file onto the upload area or click to browse

2

Wait a moment while the image is decoded and quantized

3

Preview the GIF result next to your original

4

Click Download to save the GIF

Common Use Cases

  • Converting a flat-colour PNG logo or icon into a compact GIF.
  • Producing a GIF from a PNG for tools that require the GIF format.
  • Creating a single-frame GIF from a PNG graphic.
  • Reducing a simple PNG to a 256-colour GIF.

Example Input and Output

A flat-colour PNG icon converts to a compact 256-colour GIF.

Input
icon.png (40 KB, PNG)
Output
icon.gif (12 KB, 256-colour GIF)

How This Tool Works

The browser decodes the PNG to canvas pixels, composites transparency onto white, median-cut quantization builds a ≤256-colour palette, the indices are LZW-compressed, and a GIF89a file is assembled for download.

Technical Stack

TypeScriptCanvas APIMedian-cut quantizationGIF89a LZW encoderClient-side processing

Colour reduction

Median-cut quantization builds a representative 256-colour palette. Images with fewer than 256 colours convert losslessly.

Privacy

The converter never sends your image to a server — everything happens in your browser tab.

Frequently Asked Questions

Is my PNG uploaded anywhere?
No. Decoding, colour quantization, and GIF encoding all run locally in your browser.
Why does the GIF look different?
GIF supports at most 256 colours, so detailed PNGs are reduced to a 256-colour palette. Flat-colour graphics convert with little visible change.
Does the GIF keep transparency?
No. This converter produces a flat GIF, so transparent areas are composited onto white.
Will the GIF be animated?
No. The converter produces a single-frame GIF from the PNG.