Why Do GIFs Look Grainy? Palettes, Dithering and How to Get Cleaner Results

That speckled, grainy look in GIFs is not a bug. It comes from the 256 colour palette and a technique called dithering. Learn how both work and how to make cleaner GIFs.

5 min read7 min listen

Listen to this article

About 7 min · your device's built-in voice

Have you noticed that some GIFs look speckled, with tiny dots scattered across skies, faces or gradients? Or that converting a beautiful photo to GIF made it look grainy? This is not a fault in your device or the converter. It is a direct consequence of how the GIF format stores colour. This guide explains palettes and dithering in plain language and shows you how to get the cleanest possible GIFs.

The 256 colour limit

Modern image formats can store millions of colours, because each pixel records its own exact mix of red, green and blue. GIF works differently. Each image or animation frame has a palette, a list of up to 256 colours, and each pixel stores which palette entry to use.

Two hundred and fifty-six colours is plenty for a logo, a cartoon or a chart. It is not enough for a photograph, which may contain tens of thousands of slightly different shades.

Choosing the palette

When you convert an image to GIF, the converter must decide which 256 colours to include. A good converter builds a custom palette for each image, choosing the colours that best represent that particular picture. A mostly blue seascape gets lots of blues; a mostly green forest gets lots of greens.

This adaptive approach is why simple graphics convert almost perfectly: if your logo only uses eight colours, all eight fit in the palette exactly, with room to spare.

What dithering does

Even with the best palette, many shades in a photo will not have an exact match. Without any special handling, each pixel would simply snap to the nearest palette colour. Smooth gradients would turn into visible bands, like contour lines on a map.

Dithering is the clever workaround. Instead of snapping every pixel in an area to the same colour, the converter mixes two or more nearby palette colours in a fine pattern. Seen from a normal distance, your eye blends the pattern into an in-between shade that is not actually in the palette.

It is the same trick used in newspaper photos and printed comics, where tiny dots of a few ink colours create the impression of many shades.

Why dithering looks grainy

The trade-off is texture. Up close, or on large smooth areas, you can see the pattern of dots. That is the graininess people notice. Dithering is usually still better than the alternative, because visible bands tend to look worse than fine grain.

Our converters use dithering when reducing colours for GIF, and they tell you on the result page when colours have been reduced, so you know what you are looking at.

Images that suffer most

  • Photographs with lots of subtle colour variation.
  • Smooth gradients, such as sunsets, studio backdrops and shaded buttons.
  • Skin tones, which contain many close shades.
  • Video-like animations captured from real footage.

Images that look great as GIF

  • Logos and icons with flat colours.
  • Cartoons and illustrations with clear outlines.
  • Charts and diagrams.
  • Pixel art, which is often designed with a limited palette anyway.

How to get cleaner GIFs

Simplify the image before converting

Fewer distinct colours mean the palette can represent the image more accurately. If you control the design, use flat fills instead of gradients and avoid soft drop shadows.

Make it smaller

Smaller images contain fewer subtle transitions and show dithering patterns less. They also produce smaller files.

Crop away busy backgrounds

A detailed background uses up palette colours that could be spent on the subject.

Consider another format

If smoothness matters and the destination allows it, a different format avoids the problem entirely:

  • For animations on websites, GIF to WebP or animated WebP from the start gives full colour.
  • For still photos, JPG or WebP keeps millions of colours.
  • For graphics needing transparency, PNG or WebP keeps smooth edges.

Animated GIFs and palettes

Animated GIFs can use a palette per frame, which helps when colours change through the animation. Even so, each frame is still limited to 256 colours. Footage with lots of colour variation, such as a clip from a film, will show dithering in most frames. This is why many websites have replaced GIFs with animated WebP or short videos.

Converting a grainy GIF to another format

Converting a GIF to PNG, WebP or JPG keeps it looking exactly the same, including the dithering. Converting cannot recover the original colours, because the GIF never contained them. If you need a smooth version, look for the original source image or video.

A worked example: a team badge

A sports club converts its badge, a shield with a smooth gradient from dark to light blue, into a GIF for an old members' forum. The result shows visible dots across the gradient. The club's designer makes a forum version of the badge with three flat shades of blue instead of a gradient. Converted again, the GIF looks perfectly clean and is smaller too. The original gradient badge is kept for print and the website.

Palettes in everyday life

Limited palettes are not unique to GIF. Screen printing on T-shirts uses a few ink colours. Newspapers once printed photos using only black dots of different sizes. Early computer games used tiny palettes, which gave them their distinctive look. Designers working within limited palettes learned to use flat shapes, strong outlines and deliberate patterns. Those same principles still produce the best GIFs today.

Questions people ask

Can I turn dithering off? Without dithering, smooth areas would show harsh colour bands, which usually looks worse. Our GIF conversion uses dithering for the best overall result.

Why does my logo look perfect but my photo does not? Your logo uses few colours, which fit in the palette exactly. Your photo uses thousands.

Does a bigger GIF mean better colours? Not necessarily. The 256 colour limit applies regardless of file size.

Is GIF going away? Not soon. It remains universally supported, which is why it is still useful despite its limits.

In short

GIFs look grainy because each frame can only use 256 colours, and dithering mixes those colours in fine patterns to imitate missing shades. Simple graphics avoid the problem; photos and gradients cannot. Simplify and shrink images before converting, and choose WebP, PNG or JPG when smooth colour matters more than GIF's universal compatibility.

Try it yourself