About Image Dithering with Retro Palettes
Dithering draws a picture with only a handful of colours by scattering them so that, from a step back, the eye mixes them into the shades in between. It is how early computers, e-ink screens, thermal printers and newspapers show photographs, and it gives a distinctive retro texture.
Choose a method: Floyd–Steinberg spreads each pixel’s error smoothly to its neighbours, Atkinson spreads only part of it for crisper, higher-contrast results, and ordered dithering uses a repeating 8 × 8 pattern. Then choose a palette: black and white, four greys, four greens, eight primary colours, colours picked from the picture itself, or a list of your own. The pixel size option dithers in larger blocks for a chunky, low-resolution look. Results are saved as PNG.
How it works
- The picture is decoded in your browser and each pixel is replaced by the nearest palette colour, measured as straight-line distance in RGB.
- Error diffusion carries the difference to pixels not yet drawn: Floyd–Steinberg passes all of it to four neighbours (7, 3, 5 and 1 sixteenths), Atkinson passes six eighths to six neighbours and drops the rest.
- Ordered dithering nudges each pixel by a value from an 8 × 8 Bayer pattern, scaled to the gap between palette colours, before choosing the nearest colour.
- “Picked from the picture” finds its colours by k-means clustering of up to 100,000 sampled pixels. Transparency is kept, and the work runs in the background so the page stays responsive.
Questions
Which method should I use?
Floyd–Steinberg gives the smoothest gradients and the most faithful tones. Atkinson looks cleaner, with brighter highlights and deeper shadows, which suits line art and small screens. Ordered dithering gives a regular cross-hatch pattern that compresses well and does not shimmer in animations.
How do I enter my own colours?
Choose “Custom colours” and type 2 to 32 hex codes separated by spaces or commas, for example #000000 #ff0000 #ffffff. Short codes such as #f00 work too.
Why is the output PNG?
Dithering is a fine pattern of exact colours. JPEG compression would blur it into noise and add colours that are not in the palette. PNG keeps every pixel exactly as dithered and compresses these patterns well.
Is there a size limit?
Each file can be up to 200 MB and 40 megapixels, or less on browsers whose canvas is smaller, such as Safari on iPhone at about 16.7 megapixels. Larger pictures are refused with a message before any work starts. Only the first frame of an animated image is used.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.