Shard Tools

GIF to PNG

Convert a GIF to PNG in your browser.

Maintained by Roshan.

Browser-local tool

Use GIF to PNG

Your image is decoded and re-encoded on this device. No upload request is made.

PNG preserves transparent pixels and uses lossless encoding.

Explore image tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all image tools

About GIF to PNG

PNG was designed as GIF's replacement, and converting between them moves an image from a format built in 1987 to one built to fix its limitations. The most consequential of those limitations is colour: a GIF can hold at most 256 distinct colours in its palette, which is why photographs saved as GIF look speckled and why gradients break into visible bands. Converting to PNG does not restore the colours that were discarded when the palette was built, but it does lift the ceiling, so any editing you do afterwards is no longer constrained to 256 entries. The second limitation is transparency. A GIF pixel is either fully opaque or fully invisible, with nothing in between, which is why GIF logos have those hard jagged edges. PNG carries a full alpha channel, so anything you composite afterwards can blend properly.

Shape and export choices

  1. The GIF is decoded by the browser and its first frame is drawn to a canvas at the original pixel dimensions.
  2. Transparency is carried across directly. GIF's single transparent palette entry maps cleanly onto PNG's alpha channel, so a cut-out stays cut out.
  3. The canvas is encoded as PNG, which is lossless: the pixels handed over by the decoder are stored exactly, with no further degradation.
  4. No resampling or colour adjustment is applied. The output has the same dimensions and the same colours the GIF displayed.
  5. The palette limit stops applying at this point. The PNG is a full-colour image containing whatever the GIF held, so later edits are not restricted to 256 entries.

Good fits for GIF to PNG

An old logo stored as a GIF

Convert to PNG before editing. The colour ceiling is lifted, so recolouring or adding a gradient will not be forced back into 256 entries.

Rescuing one frame from an animation

The first frame is what you get. If you need a different frame, open the GIF in an editor that can step through them and export the one you want.

Check the image before download

Questions about GIF to PNG

Will my animation still play?

No. PNG holds one image, so only the first frame converts. Animated PNG exists but cannot be produced by a browser's encoder.

Does the transparency survive?

Yes. GIF's transparent colour becomes a transparent alpha channel in the PNG, so the cut-out is preserved.

Will the picture look better?

No, but it will not look worse. The 256-colour reduction already happened; PNG stops any further loss and removes the ceiling for future editing.

Why is the PNG bigger than the GIF?

For simple flat graphics, GIF's palette compression can be very efficient. PNG stores full colour information, which costs more bytes.

Related tools

GIF to JPG

Turn a GIF into a JPG your software will accept. Runs in your browser with nothing uploaded.

GIF to WebP

Convert a GIF to WebP in your browser. Keeps transparency and produces a much smaller file for web use.

PNG to JPG

Convert PNG to JPG locally in your browser. Transparent pixels are placed on white, dimensions stay unchanged, and the image is never uploaded.