How to convert a PNG to a GIF
- Pick the mode. One image to a still GIF, or a sequence of images to an animated GIF. The two modes share the colour and transparency settings below them.
- Load the image or images. Drop them on the box above, paste them, or pick files, or try everything on the built-in samples first: a badge with a gradient and a soft shadow for the single mode, and the site's bouncing ball as three frames for the sequence. The facts panel states each file's real format, read from its own first bytes, not its name, its dimensions and its size.
- Order the sequence, if you are making one. Drag the rows or use the arrow buttons. Set the time per frame and the loop: forever, once, or a number of plays.
- Choose the colours and the transparency cut. The plan above the button restates the whole conversion: output size, frame count, playing time, palette size, dithering, and how transparency will be handled.
- Convert, check, download. The finished GIF appears in the preview from the actual file, and the status line reports its real size next to the input's. The file has already been re-read and verified at this point: dimensions, frame count, every frame's delay and the loop setting all match the plan.
The settings, one by one
Colours is the size of the palette the GIF may use, from 2 to 256. The palette itself is generated from your images' own pixels: if the distinct colours fit the budget, they are kept exactly as they stand, and if they do not, a median cut chooses the budget's worth, weighted so the colours that occur most, in the places they occur, are the ones that survive. It is never a fixed generic table, which is why a flat logo keeps its exact colours while a photo spends its budget where the photo's colours actually are. Dithering is Floyd-Steinberg error diffusion: each pixel's colour error is handed to its neighbours, so a gradient too smooth for 256 colours reads as a fine speckle instead of flat bands. It costs a little file size and can grain flat areas. Transparency threshold is where the one-bit cut falls, and Flatten replaces the cut with a background colour. Time per frame and Looping belong to the sequence mode: one delay for every frame, stored in hundredths of a second and never under 20 ms, and a loop setting written into the file (no loop block at all for play-once, so players stop after one play, exactly as the format intends).
Why 256 colours, and what banding is
A GIF frame does not store colours per pixel. It stores a palette of at most 256 colours and, per pixel, a pointer into that palette. The design is from 1987, when that was generous, and it is the reason a GIF of a logo is tiny and crisp while a GIF of a sunset is neither. When an image holds more colours than the palette, the extras are mapped to the nearest survivors. On flat areas nothing changes, because flat colours are few and they all survive. On a smooth gradient, thousands of in-between shades collapse onto a handful of entries, and the eye sees the joins as bands. Dithering hides the joins under speckle; fewer colours make them wider. Neither is a defect of this tool: both are the format, and any converter that promises a photograph will come through untouched is promising something the file cannot do. The worked example below shows a gradient doing exactly this, with its real sizes.
Transparency: one bit, and the cut is yours
A PNG pixel carries an opacity from 0 to 255, so edges can fade out softly. A GIF pixel is transparent or it is not. Converting therefore means cutting: pixels under the threshold become transparent, pixels at or over it become solid. Where the cut falls changes the picture. The built-in sample's soft shadow sits at alpha 90, under the default cut of 128, so in the GIF the shadow is simply gone and the badge floats on transparency; lower the threshold to 64 and the shadow survives, as a solid grey shape, because one-bit transparency also means the shadow's own softness cannot survive: it is kept, but as a hard-edged shape. Fringed edges are the same trade from the other side: a pale halo around a cut-out subject is semi-transparent pixels rendered solid, and raising the threshold eats it. Flattening avoids the question entirely by painting everything over a background colour first, which is the right choice when the GIF's destination page colour is known.
Several images, one animation
The sequence mode assembles frames the way the format expects them: same canvas, one delay, a loop setting. The canvas rule is stated on the tool and applied exactly: the canvas is the largest image's width and height, and every smaller image is centred on it, with the space around it transparent (or the background colour, when flattening). Mixed sizes therefore compose predictably instead of stretching. The order is the list's order, changeable by dragging or by the arrow buttons, and each image keeps its own place in the count the plan states. One delay applies to every frame, which matches how frame sets are usually made (an exported sequence from a drawing or 3D tool is evenly timed by construction). A sequence that genuinely needs a different delay on different frames is a job for a dedicated GIF editor; this page will not pretend a single delay is per-frame timing.
Animated PNGs and HEIC: the honest refusals
An APNG is a PNG with extra chunks carrying an animation. Dropped here, it converts as a still, and the tool says so in the facts panel the moment it loads, because the detection is real: the file's own animation chunk is read from its bytes. The reason is structural, not laziness: a browser's image decoder hands any page the file's main image only, so the frames, delays and loop of an APNG are not reachable by code running in a tab. Converting an APNG with its animation kept needs a decoder for those chunks, which is a separate tool on this site's list, not a setting on this one. Animated WebP is the same story and gets the same warning. HEIC, the photo format iPhones save by default, is refused outright: only Safari reads it natively, and a tool that behaves differently per browser for the same file is a tool whose results cannot be stated honestly. Export the photo as JPG or PNG first (on an iPhone, sharing the photo usually offers that) and it converts here like anything else.
A worked example, with real numbers
These figures are from converting this page's own built-in samples through this tool, in a Chromium browser, at the default settings unless stated. The single-mode sample is a badge drawn for this page: a PNG of 2,274 bytes, 240 × 160 pixels, with a smooth gradient card, a solid coral disc, and a soft shadow at alpha 90 on transparency.
- Single, at the defaults (256 colours, dithering on, threshold 128): the GIF is 4,017 bytes, 48 colours used, and the alpha-90 shadow is transparent in it, exactly as the threshold section describes.
- Single, at 32 colours: the GIF is 3,526 bytes, from a palette of 31 colours (the thirty-second slot is spent on transparency). The flat disc and the star are unchanged, because flat colours are few and survive any budget that holds them; the gradient card is where the missing colours go, its smooth blend coarsening as shades are merged.
- Sequence, at the defaults (200 ms per frame, looping forever): the three sample frames, PNGs of 2,373 bytes together, become an animated GIF of 7,702 bytes, 3 frames at 160 × 120 pixels, 0.60 seconds per loop.
- The gradient warning, measured: a smooth 200 × 120 test gradient, a PNG of 1,193 bytes, becomes a GIF of 15,362 bytes at the full 256 colours. The GIF is bigger than the PNG and banded besides: a gradient is the worst case for a 256-colour format, and the honest advice for one is to keep the PNG, or use the GIF to WebP route if the destination accepts it and animation is not needed.
Every conversion on this page reports its own real numbers the same way, so your image's result is never a guess from these examples: the status line states the output size next to the input's, whichever turned out bigger.
How big an image can you convert?
There is no server limit, because there is no server. But your browser's memory is a real limit, so the page states it plainly: files up to 50 MB each, up to 120 images in one sequence, up to 8,192 pixels on a side, and up to 48 million pixels in one conversion (frames × canvas width × height). The checks run before anything is converted, and a plan over a limit is refused with the reason and the remedy, not with a frozen tab. If the GIF that comes out is still too heavy for where it is going, the GIF Compressor can take an existing GIF down further, including to a target file size; if you need to check what is inside a GIF frame by frame, the GIF Frame Viewer opens it without changing it; and if the frames of an existing GIF are what you need as images, the GIF Splitter is the same journey in the opposite direction.
Frequently asked questions
Why only 256 colors?
Because that is all a GIF can hold. Every frame of a GIF points into a palette of at most 256 colours, a limit from the format's 1987 design that no converter can widen. What a converter can choose is which 256 colours: this tool builds the palette from your image's own pixels, so the colours your image actually uses are the ones that survive. A logo or a screenshot with few colours loses nothing at all. A photograph or a smooth gradient has thousands of colours squeezed into 256, and the squeeze shows as banding, flat bands where a smooth blend used to be. Reducing the Colours setting below 256 makes files smaller and the banding stronger; dithering trades the bands for a fine speckle that reads as smoother from a distance.
How does GIF transparency work?
A GIF palette can mark one colour as see-through, and that is the whole of it: a pixel is fully transparent or fully opaque, with nothing in between. A PNG's soft edges, where pixels are partly transparent, have to be cut somewhere. This tool's Transparency threshold is that cut: a pixel whose opacity (alpha) is under the threshold becomes transparent, and every pixel at or over it becomes fully opaque. The default cut is 128, the halfway point. Lower it to keep faint details like soft shadows, raise it to clean up fringed edges, or choose Flatten instead and the see-through areas are painted over a background colour you pick, which is what you want for a GIF that will sit on a known page colour.
Can I run the PNG to GIF converter on several files at once?
Yes, and what you get is one animated GIF: switch to the Sequence mode, add the files, put them in order, and each image becomes a frame. That is the job several files usually mean here. If instead you need each image as its own separate still GIF, run them through the Single image mode one at a time: this page deliberately makes one GIF per conversion, so the file you download is always the one the plan described.
Does the PNG to GIF converter make an animated GIF?
In Sequence mode, yes: two or more images become the frames of one animated GIF, with the delay and loop setting you choose. In Single image mode, no: one image makes one still GIF, because a still is what one image is. The mode switch at the top of the tool is the whole distinction, and the plan above the Convert button always states which of the two you are about to make, with the frame count and the playing time per loop.
How do I turn several PNGs into an animated GIF?
Switch to Sequence mode and add the PNGs (JPG and WebP frames work too). Drag them into order, or use the up and down buttons, then set how long each frame is shown, in milliseconds or seconds, and whether the animation loops forever, plays a number of times, or plays once. The GIF's canvas is the largest image's size, and smaller images are centred on it. Press Convert and the finished animation plays in the page before you download it, re-read and checked against the plan.
Will the GIF look the same as the PNG?
The same size, yes: the GIF keeps your image's exact pixel dimensions. The same colours, only if your image uses 256 of them or fewer. Beyond that, the palette squeezes: flat colours survive exactly, while gradients and photographs band, and soft transparent edges are cut at the threshold described above. The preview after converting shows the actual GIF file, not a rendering of your PNG, so what you see is exactly what you will download and what everyone else will see.
Is my image uploaded anywhere?
No. The conversion runs entirely in your browser tab: your image is decoded by the browser, reduced to its palette and written as a GIF on your own device, and nothing is sent to a server at any point. That is also why there is no account, no queue and no watermark, and why the tool works on a plane. The only download is the GIF coming back to you.
Related tools
Converting an image to a GIF is usually one step in a longer job. These MotionGIF tools cover the steps that tend to come before or after it:
GIF to WebP
Convert an animated GIF into a true animated WebP, the format to reach for when a PNG's colours must survive and the destination accepts WebP.
Open the tool →WebM to GIF
Convert a WebM video clip into an animated GIF, when the frames you need are inside a video rather than a set of stills.
Open the tool →GIF Compressor
Make the GIF you just made smaller while it stays a GIF, with a target file size mode for strict upload limits.
Open the tool →GIF Frame Viewer
Step through the GIF you made frame by frame and inspect the timing and details of every frame, without changing the file.
Open the tool →