Dither an image online

Drop, paste or
show

Your picture never leaves this tab: it is dithered right here, by the same code npm i ditherdance installs.

Eight ways to dither

Seven error-diffusion kernels and one ordered matrix. Each works with any palette, and each is one option in the library.

methodkindwhat it looks like
floyd-steinbergError diffusionThe classic: smooth, fine grain
atkinsonError diffusionBright and contrasty, the early Mac look. Passes on only 6/8 of the error
jarvis-judice-ninkeError diffusionSofter, spreads error over 12 neighbours
stuckiError diffusionLike Jarvis, a little sharper
burkesError diffusionBetween Floyd-Steinberg and Stucki
sierraError diffusionSmooth, close to Jarvis but cheaper
sierra-liteError diffusionCheapest diffusion, three taps
bayerOrderedA regular cross-hatch: the fastest, and stable between video frames

Questions about dithering images

Is my image uploaded anywhere?

No. The picture is read and dithered inside your browser tab and never sent to us or anyone else. It is gone when you close the tab.

Which dithering method should I pick?

Floyd-Steinberg for photos with smooth, fine grain. Atkinson for a bright, high-contrast early Mac look. Bayer for a regular cross-hatch that does not shimmer between video frames and ports straight to a GPU shader.

Which image formats work?

Anything your browser can display, such as JPEG, PNG or WebP. Drop the file on the page, paste it from the clipboard or pick it with the file chooser.

Can I download the dithered image?

Yes, as a PNG with the download button. The page also shows the exact code that gives the same result with the ditherdance package.

How do I dither an image in my own code?

Install ditherdance from npm and call dither(imageData, { method: 'atkinson' }) on a canvas's ImageData. It works in place, in a Web Worker and in Node on any RGBA buffer.