PNG to GIF Converter

A GIF is the old picture format with a 256-color limit, still asked for by chat apps, forums and email. Converting a PNG to GIF gives you that file at the same size in pixels, with the colors squeezed into one palette.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

How it works
  1. The PNG is read in your browser
  2. Its colors are reduced to a palette of up to 256
  3. The .gif is ready to save

What it does

See-through is on or off

A GIF can mark a pixel as clear, but it cannot make one half clear. Partly see-through pixels become clear or solid.

Limits Only the first frame of an animated source is kept, so a PNG gives a GIF of one frame.

Does a PNG survive being turned into a GIF?

The picture is the same size and a little smaller in bytes, but it is held to 256 colors, and any soft see-through edge becomes a hard one.

What does the 256-color limit do to a PNG?

Our test PNG, a 256 × 256 star icon with rounded see-through corners, drawn by FluffyBench for its icon guide, came out as a GIF of 3.7 KB, down from 13.3 KB. The picture is the same size, but it isn't the same picture: 1,558 of its 65,536 pixels changed (2.4%), and no solid pixel moved by more than 9 levels on the 0 to 255 scale.

A GIF can hold only 256 different colors at once. The converter picks the 256 that suit the picture best and moves every pixel to the nearest one. A flat icon needs few colors, so the change is slight; a photograph needs thousands, so it shows.

What happens to the soft edge?

The star's rim fades out through 467 partly see-through pixels. A GIF has no in-between: a pixel is either clear or it isn't. The converter makes each partly clear pixel one or the other, so 3,247 see-through pixels in the PNG became 2,966 in the GIF, and the fade turned into a hard edge. Placed on a dark page, a hard edge can show a light fringe, so check it on the background it will sit on.

Making the GIF

Step 3 is optional; the defaults give 256 colors and no dithering.

  1. Pick the PNG with Choose images.

  2. Open Settings: behind the gear on a phone, in the panel next to the tool on a computer.

  3. To change how the colors are chosen, set GIF palette to fewer colors or GIF dithering to Floyd-Steinberg.

  4. Press Convert 1 to GIF.

  5. Press Download to keep the .gif.

When is a GIF the wrong choice?

The picture has soft shadows or a gradient.

FluffyBench's PNG to WebP converter

WebP can keep the soft transparency that a GIF turns into a hard edge, if the app that gets the file opens WebP.

Search FluffyBench