100% local processing — your files and data never leave this browser. No uploads, no server storage.

OnboxTools

Free · Browser-only · No upload

PNG to GIF Converter — GIF to PNG Online

Convert PNG to GIF or GIF to PNG with one swap

GIF remains useful for simple graphics, legacy systems, and animated workflows that start from still PNG frames. Convert PNG to GIF with control over transparency handling.

Need the reverse? Use the swap button to convert GIF to PNG — extract a still frame or recover a lossless PNG from a GIF. The conversion runs in your browser — quick, private, and free without watermarks.

Conversion Controls

Input PNG

Drag & Drop PNG or Click to Import

GIF Output

Upload a PNG to convert

Input Size0.0 KB
Result Size0.0 KB
Dimensions0x0

More Image Tools

🖼️
Base64 to Image
🎨
Color Format
🎨
Color Picker
🖼️
Data URI to Image
🖼️
Image Compressor
🖼️
Image Resizer
🧬
Image to Base64
🔗
Image to Data URI
🖼️
JPEG to WebP
🖼️
JPG to PNG
🔄
PNG to GIF
🔄
PNG to JPG
PNG Transparency Creator
🖼️
SVG to PNG
🔄
WebP to PNG

Browse by category

Conversion example

A 64×64 PNG icon with eight flat colors converts to a GIF under 5 KB with crisp edges and one transparent index for the corner pixels.

A 1920×1080 PNG photo converts with visible banding in the sky — expected with 256 colors. Use JPEG instead for that content type.

PNG vs GIF feature matrix

FromToResult
PNGColorsMillions
GIFColors256 max
PNGTransparencyFull alpha
GIFTransparency1-bit index
GIFAnimationMulti-frame

Complete guide to converting PNG to GIF and GIF to PNG

Why convert PNG to GIF

PNG is the modern choice for still graphics with transparency, but GIF persists in email clients, older CMS templates, and meme culture. Some upload forms accept only GIF. Converting PNG to GIF meets those constraints without desktop software.

GIF uses a maximum of 256 colors per frame. Photographic PNGs may show banding after conversion; flat illustrations and logos often fare well.

Slack custom emoji, legacy intranet badges, and some newsletter builders still expect the .gif extension even for static images. Converting a flat PNG badge to GIF satisfies those validators without maintaining a separate desktop toolchain for occasional exports.

Keep a PNG master for web use and generate GIF only for platforms that reject other formats, so you do not maintain two diverging sources of truth.

Color palette limitations

When PNG contains more than 256 colors, the encoder must quantize — merge similar shades into a shared palette. Gradients and photographs suffer most. Simple icons, badges, and line art typically convert cleanly.

If the preview looks posterized, the source may be better kept as PNG or converted to JPEG for photographic content instead of GIF.

Reducing colors in a vector editor before export often yields cleaner GIFs than relying on the encoder alone. Fewer distinct fills mean less dither noise in skies and skin tones when quantization is unavoidable for a platform that insists on GIF.

Indexed PNG sources with already limited palettes often convert to GIF with less visible banding than full-color photographic PNGs.

Transparency in GIF

GIF supports a single transparent color index, not partial alpha like PNG. Semi-transparent pixels must become fully opaque or fully transparent, which can produce jagged edges on soft shadows. Tools that flatten alpha against a chosen matte color reduce halos.

For pixel-perfect transparent icons on the web, PNG or SVG remains superior. Use GIF transparency when compatibility demands it.

Anti-aliased PNG edges become hard on-or-off pixels in GIF. Preview on the background color where the GIF will appear — email white, chat dark mode, or brand gray — to judge whether jagged edges are acceptable before publishing.

One-pixel halos around icons often mean the transparent index does not match the display background — adjust matte color before re-exporting.

When GIF is the wrong choice

Avoid GIF for full-color photos — JPEG or WebP delivers far better quality per byte. Avoid GIF for UI assets requiring smooth alpha — use PNG. Choose GIF for small animated sequences built from limited palettes or when a platform explicitly requires .gif extension.

Static PNG-to-GIF conversion does not create animation. You are changing container and palette, not adding frames.

Marketing banners and hero photos should stay JPEG or WebP. Reserve GIF for icons, simple stickers, and cases where a spec lists .gif explicitly. If the preview shows severe posterization, the source is likely the wrong format for GIF conversion.

When a client insists on GIF for email, confirm whether a static PNG would display — many modern clients accept PNG with smaller files and better quality.

Document the source PNG filename next to each GIF export so designers can regenerate when brand colors change.

Browser-based conversion

The PNG decodes to canvas, quantizes colors, and exports as GIF using browser APIs. Your image never uploads. Download when satisfied and compare against the original at actual display size.

Because processing is local, you can convert internal stickers, Slack emojis, or client badges without exposing them to a third-party server.

Decoding and GIF export run entirely in your browser, so no upload queue or account is involved. That suits proprietary badge art and client stickers you would not send to a cloud converter. Processing time grows with pixel dimensions and palette complexity.

Large PNGs may take several seconds to quantize; wait for the preview before assuming the tab froze.

Practical tips

Start from the smallest dimension you need — GIF file size scales with pixel count and frame count. For still conversions, resizing a oversized PNG before GIF export saves bytes.

If edges look rough, verify whether the PNG used partial transparency. Flatten against the intended display background before converting.

Export at the exact pixel size the platform displays — 128 for emoji, 64 for favicon-scale badges — rather than downscaling later in CSS. Smaller sources quantize more predictably and keep files under chat and email size limits.

Test the GIF in the target app immediately — emoji uploaders and email clients enforce dimension caps that are not obvious until upload fails.

Compare file size to the source PNG — GIF is not always smaller for complex still images.

Detailed guide

Preparing flat graphics for GIF

Reduce colors in your editor before export if possible. Flat fills and hard edges survive quantization better than subtle gradients.

Using GIF in email

Many email clients still favor GIF for small inline graphics. Keep dimensions modest — under 600 px wide — and test in Outlook and Gmail.

Common questions

PNG to GIF FAQ

Is the PNG to GIF converter private?

Yes. Everything runs in your browser. Your input is not uploaded, logged, or stored on our servers.

Do I need an account?

No account or sign-up is required. Open the page and start using the tool immediately.

Why does my GIF look grainy?

GIF supports only 256 colors. Full-color PNGs are quantized, which causes banding on photos and gradients.

Does this create animated GIFs?

No. This converts a single PNG frame to a still GIF. Animation requires multiple frames.

Is transparency preserved?

GIF supports one transparent color, not partial alpha. Soft edges may look jagged compared to PNG.

Will the GIF be smaller than the PNG?

Sometimes, for simple graphics. Photographic PNGs are often smaller as JPEG or WebP, not GIF.