How error diffusion works, on two pixels
Picture a row of mid-grey pixels of brightness 100 and a black-and-white palette. The first pixel is closer to black, so it becomes 0, leaving an error of +100. Floyd–Steinberg hands 7/16 of that (43.75) to the pixel on its right, which is now 143.75, closer to white, so it turns white with an error of −111.25 that pushes its own neighbours darker. Pixel by pixel the errors balance out, and over a large area about 100 ÷ 255 ≈ 39% of the pixels end up white, which is exactly the original brightness.
The Bayer grid
Ordered dithering adds a small fixed offset to each pixel before rounding, taken from a threshold matrix. The 2 × 2 Bayer matrix is 0 2 / 3 1; larger ones (4 × 4, 8 × 8) are built from it and spread 16 or 64 thresholds evenly. Because the pattern repeats, flat areas get a tidy cross-hatch instead of random-looking noise.
Palettes at a glance
| Palette | Colours | Use it for |
|---|---|---|
| 1-bit | 2 | Laser engraving, thermal and receipt printers, e-ink, stamps |
| Game Boy | 4 greens | Retro game fan art, nostalgic posts |
| CGA | 4 or 16 | 1980s PC look |
| PICO-8 | 16 | Indie game art, sprites |
| Web-safe | 216 | Old-web graphics with very small file sizes |
Related tools
To also shrink the picture into big square pixels, use Pixel art. To keep full colour but cut a photo to a small number of colours for a lighter file, use Reduce image colours, which saves a real palette PNG.
Frequently asked questions
What is dithering?
Floyd–Steinberg, Atkinson or Bayer: which one?
Which palettes can I use?
Is a 1-bit result really only two colours?
What does dot size do?
Why save as PNG?
Last updated: 2026-11-26