128
#FFFFFF

GIF can never show more than 256 colours. Fewer colours make smaller files but look rougher. Dithering mixes dots of nearby colours to hide banding in photos and gradients, but makes the file larger. Leave it off for logos and flat graphics. GIF has no soft transparency: pixels at least this opaque stay solid, the rest become fully see-through. Soft edges that stay solid are blended with this colour, so pick the colour of the page the GIF will be shown on.

PNG to GIF Converter

Select PNG files — or a whole folder — and convert them to GIF right in your browser. Nothing is uploaded.

Or drag & drop PNG files or folders anywhere on this page. Only PNG files are accepted.

Ready
0 files

🎞️ How the PNG to GIF Converter Works — Complete Guide

Everything you need to know about converting PNG images to GIF with Sakarto: what the two formats are, when converting makes sense, how colours, dithering and transparency work, and how to use Queue Mode. Scroll down for step-by-step instructions, tips, and answers to common questions.

100% Private — Your Images Never Leave Your Computer Everything runs inside your browser. No uploads, no accounts. Your original PNG files are only read, never changed — the converter creates new GIF files.

🔍 What This Tool Does

Sakarto converts PNG images into GIF inside your browser. Add a few files or a whole folder, choose how many colours to keep, and get back GIF copies you can download one by one, as a single ZIP, or save straight to a folder. The GIF encoder is built into the page and runs in a background Web Worker, so nothing is uploaded and the page stays responsive. Only genuine PNG files are accepted — every file is checked by its internal signature, not just its extension.

Works Everywhere

GIF opens in practically every browser, app, email client and device, which makes it a safe choice for old or picky systems.

Colours and Dithering

Choose 2 to 256 colours and turn dithering on for photos and gradients to keep smooth-looking transitions.

Transparency Kept

Transparent areas stay transparent. You choose where the cut-off is and which colour soft edges are blended with.

Queue or Instant Mode

Hand-pick which PNG files to convert with Queue Mode, or switch it off and convert everything the moment it is loaded.

📚 PNG vs GIF — What Are These Formats?

Both formats compress images without further loss and support transparency, but GIF is far older and much more limited. Understanding the difference helps you decide whether a conversion makes sense.

🧩 What is PNG?

PNG (Portable Network Graphics) was created in the mid‑1990s as a free, patent‑unencumbered image format. It compresses pictures losslessly, so every pixel comes back exactly as it was saved.

  • Lossless compression — no quality loss, no matter how often you re-save
  • Supports full alpha transparency (soft edges, shadows, cut-outs)
  • Up to 16 bits per colour channel for high-precision colour
  • Perfect for screenshots, logos, icons, diagrams and text
  • Files can get very large when the image is a photograph
🎞️ What is GIF?

GIF (Graphics Interchange Format) was introduced by CompuServe in 1987. A GIF picture can use at most 256 colours, picked from a palette, and that palette image is then compressed without further loss. The format also supports simple transparency and animation, and it is one of the most widely supported image formats in the world.

  • At most 256 colours per image, taken from a palette
  • Compresses the palette image without further loss (LZW)
  • Each pixel is either fully transparent or fully solid — no soft edges
  • Can store animation (Sakarto creates still images only)
  • Opens in practically every browser, app, email client and device
  • Photos and smooth gradients look rough, and their files can get large
GIF works everywhere — but it is rarely the best choice for still images. For logos, icons, pixel art and simple graphics with few colours, GIF can be small and perfectly good. For photos and soft shadows, PNG, JPG or WebP look better and are usually smaller. Convert to GIF when a system specifically asks for it.

⚖️ Side-by-Side Comparison

⚖️ Side-by-Side Comparison
FeaturePNGGIF
ColoursMillions (24-bit), up to 16 bits per channel256 per image, from a palette
CompressionLosslessLossless — but only after the colours are reduced
TransparencyFull alpha channel with soft edgesOn or off for each pixel
Best forScreenshots, photos, logos, text, editing mastersSimple graphics, pixel art and systems that require GIF
File size for photosLargeLarge, and the picture looks rough
File size for flat graphicsSmallSmall, similar to PNG
AnimationOnly through the APNG extensionYes (Sakarto converts still images only)
Browser supportUniversalUniversal
App and printer supportUniversalUniversal, even on very old systems
File extensions.png.gif

🎯 When Should You Convert PNG to GIF?

✅ Good reasons to convert
  • A website, form, forum or email system that only accepts GIF files
  • Simple logos, icons, charts and diagrams with a handful of flat colours
  • Pixel art and retro-style graphics
  • Very old software or devices that cannot open newer formats
  • Images that need hard-edged transparency in software that does not support PNG
⚠️ Think twice if…
  • Photos — 256 colours can't reproduce them well, and the files are large
  • Soft shadows, glows or gradients — GIF has no partial transparency and shows banding
  • Anything that needs more than 256 colours to look right
  • Websites and apps where PNG, JPG or WebP are accepted — they look better and are usually smaller
  • Images you plan to edit further — keep the PNG as your master
Convert copies, never masters. Sakarto never modifies your PNG files — it creates new GIF files. Keep the originals as your master copies.

🧠 How the Conversion Works

Here is what happens to every file, step by step — all of it on your own device:

  1. Validate the PNG

    The first bytes of each file are checked against the PNG signature, and the header is read to get the dimensions and detect transparency — without decoding the whole image. Files that aren't real PNGs are skipped.

  2. Read the pixels

    Your browser's own image decoder turns the PNG into exact RGBA pixels. For animated PNGs only the first frame is used. Very large images that exceed the browser's canvas limits can't be processed and are reported as failed.

  3. Apply the transparency rules

    Pixels that are more transparent than your cut-off become fully transparent. Pixels that stay solid but are only partly opaque are blended with the edge colour you chose, because GIF cannot store soft edges.

  4. Build the palette and encode

    A palette of up to the number of colours you chose is built with a median-cut algorithm, each pixel is matched to its nearest palette colour (with dithering if you ticked it), and the result is written as a GIF using LZW compression. This runs in a background Web Worker, so the page stays responsive, and on computers with several cores a few files are encoded at the same time.

  5. Deliver the result

    Each GIF file is held in memory. You can download them individually, bundle them into a ZIP that is built locally in your browser, or write them straight into a folder (Chrome and Edge).

What do the settings change? The number of colours and dithering decide how close the GIF looks to your PNG and how big the file gets. The transparency cut-off decides which semi-transparent pixels become see-through, and the edge colour is blended into the pixels that stay solid.

🎚️ Choosing the Number of Colours

There is no single best setting, but these ranges are a reliable starting point. The more colours, the better the picture — and the larger the file.

🎚️ Choosing the Number of Colours
ColoursBest forWhat to expect
256Screenshots, illustrations, photos you must keep recognisableThe best GIF can do; photos still show banding unless dithering is on
128–64Illustrations and logos with gradientsSmaller files; gradients start to band
32–16Flat logos, icons, chartsVery small files; fine for graphics with few colours
8–4Pixel art, simple icons, diagramsTiny files; only works if the image really uses few colours
2Black-and-white line artSmallest possible; everything is reduced to two colours

🔁 Queue Mode vs. Instant Mode

The Queue Mode checkbox in the toolbar decides what happens when you click Convert, and whether files are converted as soon as they are loaded.

📋 Queue Mode ON (default)
  • Loaded PNG files are only listed — nothing is converted yet
  • Select the files you want and click Convert to stage them
  • Review the Convert Queue tab and remove anything you don't want
  • Click Convert All Files to process the whole queue at once
  • Best when a folder contains files you only want to convert selectively
⚡ Queue Mode OFF
  • Every PNG is converted automatically the moment it is loaded
  • Clicking Convert on selected files converts them immediately
  • Results appear straight away in the Converted GIF tab
  • Best for a few images: drop them in, download the ZIP
  • You can still change the colours, dithering or transparency settings and re-convert files
Your Queue Mode choice is remembered on this device, so the page works the way you like the next time you visit.

📋 Step‑by‑Step: How to Convert PNG to GIF

Step 1

Choose Your Settings

Pick the number of colours, tick Dithering for photos and gradients, set the transparency cut-off and choose the edge colour. Decide whether you want Queue Mode on or off.

Not sure? Leave it on 256 colours with dithering off. Converting a photo? Tick Dithering. Set the edge colour to the colour of the page where the GIF will be shown.
Step 2

Add PNG Files

Click 🖼️ Select PNG Files to choose images, or 📁 Select Folder to scan a whole folder including subfolders. You can also drag and drop files or folders onto the page. Anything that isn't a real PNG is skipped, and you are told how many were skipped.

Step 3

Review the Files

Every PNG appears as a card with its dimensions and size. Cards with an ALPHA badge contain a transparency channel. A checkerboard pattern behind a preview shows where an image is transparent.

  • Click a card to select it (blue border)
  • Click & drag on empty space to box-select several cards
  • Click the 🔍 icon to preview full size
  • Right-click a card for the context menu
  • Ctrl+A selects everything, Escape clears the selection
  • Ctrl+Click (Cmd+Click on Mac) to add a card to the compare list (purple border)
Step 4

Convert

Select the files you want and click 🔁 Convert. With Queue Mode on, the files are staged in the Convert Queue. With Queue Mode off, they are converted immediately.

Step 5

Review the Queue (Queue Mode)

Open the Convert Queue tab in the sidebar. Remove any file with the ✕ button, then click Convert All Files. A progress bar shows how far along the conversion is, and you can stop it at any time.

Step 6

Compare Before and After

Ctrl+Click (Cmd+Click on Mac) two or more cards — original PNGs in the PNG Files tab, converted files in the Converted tab, or a mix of both — then click ⚖️ Compare in the toolbar. A modal shows each file with its dimensions, size and details, plus how much the size changed. You can also open a converted file's preview and click Compare with Original.

⚖️ Compare View the selected files side by side
Ctrl + Click Add or remove a card from the compare list
Compare with Original Open the original and its converted file together
Not happy with the result? Change the settings and press Convert again — your files stay loaded, so you don't need to add them again.
Step 7

Download Your GIF Files

Finished files appear in the Converted GIF tab with their new size and how much smaller (or larger) they are. Then pick how to get them:

📦 Download ZIP All GIF files in one archive, folder structure kept
⬇️ Download All One download per file
📁 Save to Folder Write straight to a folder (Chrome / Edge)
📥 Download List A text file showing which PNG became which GIF
⬇️ Card button Download a single GIF file
Converted files exist only in your browser's memory until you download them. Download before closing or reloading the tab.

🏛️ Quick Reference — Buttons & Controls

🏛️ Quick Reference — Buttons & Controls
Button / ActionWhat it does
🔄 New SessionReload the page and start from scratch
➕ Add FilesAdd more PNG files to the current session
☑️ Select AllSelect every PNG file in the list
✕ Deselect AllClear the current selection
🔁 Convert (N)Queue the selected files, or convert them now if Queue Mode is off
⚖️ Compare (N)Open the compare modal for Ctrl+clicked cards. Needs 2 or more.
Queue Mode checkboxOn: stage files first. Off: convert immediately.
ColoursHow many colours the GIF may use, from 256 down to 2
Dithering checkboxMix nearby colours to hide banding (larger files)
Transparency cut-offPixels at least this opaque stay solid; the rest become see-through
Edge colourColour that soft edges are blended with
Click cardSelect / deselect the file
Ctrl + Click cardAdd / remove the card from the compare list (purple border)
Click & drag (empty area)Box-select several cards at once
Right-click cardContext menu: Copy Name / Preview / Compare / Convert
🔍 hover iconOpen a full-size preview with details
Convert All FilesConvert everything in the Convert Queue
📦 Download ZIPBundle all converted GIF files into one ZIP file
📥 Download ListSave a text file listing each PNG and the GIF it became, with sizes
Show as ListShow the same "from → to" list on the page
Ctrl+A / EscapeSelect all files / clear the selection

⭐ What Users Say

Based on 4 reviews (demo)

"This is a demo review. The real reviews will be shown here."

"This is a demo review with a longer text, so you can check how a card looks with more content. The real reviews will be shown here."

"Demo review — real reviews will be here."

"This is a demo review. Once you have real users, their words and names replace this card."

💡 Tips for Best Results

Best for Simple Graphics

Logos, icons, charts and pixel art with few colours convert very well. Photos usually look rough as GIF — use JPG or WebP for those.

Fewer Colours, Smaller Files

If your graphic only uses a handful of colours, try 32, 16 or even 8. The picture often looks identical and the file shrinks a lot.

Photos: Turn Dithering On

Dithering hides the banding that 256 colours cause in photos and gradients. Expect a noticeably larger file.

Pick the Right Edge Colour

Soft edges that stay solid are blended with the edge colour. Set it to the colour of the page or app where the GIF will be shown to avoid light or dark halos.

Use Queue Mode for Mixed Folders

Scanning a folder with logos and photos? Turn on Queue Mode and convert only the photos.

ZIP Beats Many Downloads

Browsers may block or prompt for many simultaneous downloads. Download ZIP gives you everything in one go.

Keep the Download List

Use Download List to save a text file showing which PNG became which GIF, with the size of each.

Test on a Few Files

Convert two or three files first, compare the preview and size, and adjust the colours before running a large batch.

Change Settings and Convert Again

Not happy with the result? Change the colours, dithering or transparency and press Convert again — your files stay loaded, no need to add them again.

Compare Before You Download

Use Compare to look at the original and the GIF side by side, with the exact size difference, before you download a whole batch.

⚠️ Known Limitations

Results live in memory only.

Converted GIF files are not saved anywhere until you download them. Reloading or closing the tab discards them.

At most 256 colours.

Every GIF is reduced to a palette of 256 colours or fewer, so photos and smooth gradients lose detail. This is a limit of the GIF format itself.

No soft transparency.

Each pixel is either fully transparent or solid. Semi-transparent shadows and glows are cut off at your transparency cut-off, and the pixels that stay are blended with the edge colour.

Files can be larger than the PNG.

GIF compresses less efficiently than PNG for photos and detailed pictures, so the result may be bigger. The Converted GIF tab shows the size change for every file.

Large batches and big images use a lot of memory.

Each image is held in memory several times while it is encoded. Sakarto limits the number of parallel workers (one on phones and tablets), but very large images can still exhaust a device's memory.

Very large images may fail.

Images over 30 megapixels or 65,535 pixels per side are not converted, and browsers limit how big a canvas can be (mobile browsers are stricter). Failed files are reported.

Animated PNGs convert to a single frame.

Sakarto creates still GIF images. For APNG files, only the first frame is used.

Metadata isn't carried over.

Text chunks and embedded colour profiles from the PNG are not copied to the GIF. Browsers typically convert colours to sRGB when reading the image.

Saving to a folder needs Chrome or Edge.

The File System Access API is only available in Chromium-based desktop browsers. Everywhere else, use Download ZIP or the per-file download buttons.

🔒 Privacy & Security

Nothing is uploaded. Open DevTools → Network and watch: converting files makes no network requests at all. Reading the image, building the palette, encoding the GIF and ZIP creation all happen on your device.
Your originals are never changed. Files are only read. The converter always creates new GIF files and never overwrites or deletes your PNGs.
No accounts needed. The only things stored in your browser are your preferences (colours, dithering, transparency cut-off, edge colour and Queue Mode). File names and images are never saved.
Purely static — no backend. The page is HTML, CSS and JavaScript. There is no server, database or API that receives your images.

❓ Frequently Asked Questions

Are my PNG files uploaded anywhere?
No. All conversion happens locally in your browser. The GIF encoder is part of this page and runs in a background Web Worker on your device, so your files never leave it, and no server receives them. You can verify this in your browser's DevTools → Network tab.
Does GIF keep the transparency of my PNG?
Yes, but only as on or off. GIF cannot store soft transparency, so pixels that are more transparent than the Transparency cut-off become fully see-through, and the others stay solid. Cards with an ALPHA badge show which PNG files contain transparency, and the checkerboard behind a preview shows where it is.
What is GIF?
GIF is an image format from 1987 that stores pictures with at most 256 colours. It supports simple transparency and animation, is compressed without further loss, and can be opened by practically every browser, app and device.
Why does my GIF look worse than the PNG?
GIF can only use 256 colours per image, while a PNG can have millions. Photos and smooth gradients therefore show banding or rough edges. Keep the colours on 256 and tick Dithering to improve photos, or use JPG or WebP when appearance matters.
What does dithering do?
Dithering mixes small dots of nearby palette colours so that gradients and photos look smoother with so few colours. It makes the file larger, and on flat logos or icons it just adds noise, so leave it off for those.
What are the transparency cut-off and edge colour?
GIF has no soft edges. The cut-off decides how opaque a pixel must be to stay solid — below it the pixel becomes see-through. The pixels that stay solid but were partly transparent are blended with the edge colour, so set it to the colour of the page the GIF will be shown on to avoid halos.
How many colours should I choose?
For photos and detailed images, 256. For logos, icons and charts, try 32, 16 or even 8 — the picture often looks identical and the file is much smaller. The Converted GIF tab shows how many palette entries were really used.
Why is my GIF larger than the original PNG?
GIF compresses less efficiently than PNG, especially for photos and detailed images, and dithering makes it worse. Try fewer colours, turn dithering off, or keep the PNG. The Converted GIF tab shows the size change for every file so you can spot this.
Can I get my original PNG back from the GIF?
No. The colours were reduced and soft transparency was removed, so that information is gone for good. Always keep your original PNG files — Sakarto never modifies them.
What is the difference between Queue Mode and converting directly?
With Queue Mode on, loaded files are only listed. You select the ones you want, stage them in the Convert Queue, review, and convert them together. With Queue Mode off, every PNG is converted as soon as it is loaded, and the Convert button converts the selection immediately.
Why can't I add JPG, WebP or other image types?
This converter is built specifically for PNG to GIF. Files are verified against the PNG file signature, so a different image that was only renamed to .png is skipped. Converters for other formats are available from the sidebar.
Does it keep EXIF data, text chunks or colour profiles?
No. The GIF is produced from the decoded pixels, so metadata from the PNG isn't copied. Browsers typically convert colours to sRGB when reading an image, so images using wide-gamut profiles may look slightly different.
Can I make an animated GIF?
No. Sakarto creates still GIF images. If you convert an animated PNG (APNG), only its first frame is used.
Are there file size or image size limits?
Files over 100 MB are skipped, as are images over 30 megapixels or 65,535 pixels per side. Images that exceed your browser's canvas limits can't be processed either, and mobile browsers have stricter limits than desktop ones. Failed files are reported after the conversion.
My browser blocks or asks about multiple downloads. What can I do?
Browsers often limit many automatic downloads. Use Download ZIP to get all files in a single download, or Save to Folder in Chrome or Edge to write them directly to a folder.
Does this work on iPhone, Android and Safari?
Yes. The converter uses only standard browser features, so it works in current Chrome, Edge, Firefox and Safari, including on iPhone, iPad and Android. Phones and tablets convert one file at a time and are more limited with very large images. Folder selection and Save to Folder require a Chromium-based desktop browser such as Chrome or Edge.
Can I change the settings and convert again without adding the files again?
Yes. Your PNG files stay loaded. Change the colours, dithering, cut-off or edge colour, then press Convert again. If nothing is selected, Convert re-converts the files you already converted; otherwise it converts the selection. The new results replace the old ones.
How do I compare the original and the GIF file?
Ctrl+Click (Cmd+Click on Mac) the original card and its converted card, then click ⚖️ Compare in the toolbar. Or open a converted file's preview and click Compare with Original. The modal shows both images with their sizes and the size difference.
How do I know which PNG became which GIF?
Click Download List in the Converted GIF tab to save a text file with each original path, the new file name, dimensions, sizes, colours and dithering. Show as List displays the same "from → to" list right on the page.