Posterize (Color Levels)

Cut each colour channel down to a few evenly spaced levels for a flat, poster-like look. See how many colours are left and follow one pixel through the rounding.

Tool Media & Files Updated Oct 16, 2026
How to Use
  1. Drop an image on the box, click to browse, or paste one. TIFF, PSD, HEIC, TGA and camera RAW files open too. A built-in sample is loaded so you can try the presets straight away.
  2. Set Levels per channel from 2 to 32, or click a preset. Fewer levels give flatter areas and bolder bands.
  3. Read the colour count: at most levels³ colours are possible, and Colours Used shows how many the picture really has left.
  4. Click the picture to follow one pixel through the rounding in Show Work. Hold Compare to see the original.
  5. Save the result in any format from the Save panel. An indexed PNG or GIF stores a posterized picture very compactly.
Image & Levels
2–32; colours ≤ levels³
Presets
Result
The ring marks the pixel in Show Work.
Levels
—
Possible Colours
—
Colours Used
—
Mean Change
—

Worked Example

A pink-purple pixel, RGB (200, 43, 128), at 4 levels. The step is 255 ÷ 3 = 85, so the levels are 0, 85, 170 and 255. Red: 200 ÷ 85 = 2.35, nearest level 2, × 85 = 170. Green: 43 ÷ 85 = 0.51 rounds up to 1, giving 85. Blue: 128 ÷ 85 = 1.51 rounds to 2, giving 170. The pixel becomes (170, 85, 170) = #aa55aa, one of at most 4³ = 64 colours.

The same pixel at 6 levels. The step is 255 ÷ 5 = 51: 200 ÷ 51 = 3.92 → 4 → 204, 43 ÷ 51 = 0.84 → 1 → 51, and 128 ÷ 51 = 2.51 → 3 → 153. The result is #CC3399, one of the 216 web-safe colours. No value ever moves more than half a step: 42.5 at 4 levels, 25.5 at 6.

The common mistake: expecting 2 levels to give black and white. Two levels mean two values per channel, 0 and 255, so eight colours remain. (200, 43, 128) becomes magenta (255, 0, 255), not white. For a pure black-and-white picture, use 1-bit dithering or greyscale first.

Show Work

Load an image to see one pixel rounded to the nearest levels.

Formulas

Step between levels
s = 255 ÷ (L − 1)
L = levels per channel; 4 levels give s = 85
Nearest level
v′ = round( round(v ÷ s) × s )
Applied to R, G and B separately; transparency is kept
Colour limit
Nmax = L³
2 → 8, 3 → 27, 4 → 64, 6 → 216, 8 → 512
Largest change
|v′ − v| ≤ s ÷ 2
42.5 at 4 levels; Mean Change is the average over the picture

Posterization and the Web-Safe Palette

Posterization replaces a continuous gradation of tone with a few regions of flat tone, so the picture changes abruptly from one tone to the next. The name comes from posters: the effect was first produced with photographic processes to make them. In a digital file it is a reduction of the number of values each channel may take. It also happens by accident, as banding, when the colour depth is too low to record a smooth gradient: the gradient shows as a series of steps.

Six levels per channel has a history of its own. In the mid-1990s many screens could show only 256 colours at once, so web designers used a fixed set that browsers could display without dithering. 216 was chosen because it gives exactly six equally spaced shades of red, green and blue, 00, 33, 66, 99, CC and FF in hex, while leaving room for the colours operating systems reserved for themselves. That is the 6-level preset here.

About This Tool

This tool rounds red, green and blue to 2 to 32 evenly spaced levels, counts the distinct colours before and after, reports the average change per channel, shows the brightness histogram before and after, and works through any pixel you click. The level count can be put in the page address, for example ?levels=6.

Images are decoded and saved in your browser by the engine behind the Universal Image Converter, so TIFF, PSD, HEIC, TGA and RAW files work too. Nothing is uploaded.

Related tools: Floyd-Steinberg Dithering, Duotone Effect, and Levels & Auto-Contrast.

Frequently Asked Questions

What happens with only 2 levels?

Each channel becomes 0 or 255, so there are 2³ = 8 possible colours: black, white, red, green, blue, cyan, magenta and yellow. It is not black and white: a pink-purple (200, 43, 128) becomes pure magenta (255, 0, 255), because 128 is just over halfway and rounds up.

How many colours does a level count give?

At most L³, because red, green and blue are each rounded to L values independently: 4 levels allow 64 colours, 6 allow 216 and 16 allow 4,096. A real picture usually uses fewer; the built-in sample uses 21 of the 64 at 4 levels.

Is 6 levels the same as the web-safe palette?

Yes. Six levels put every channel on 0, 51, 102, 153, 204 or 255, which in hex is 00, 33, 66, 99, CC and FF: the 6 × 6 × 6 = 216 web-safe colours chosen in the 1990s for 256-colour screens. (200, 43, 128) becomes #CC3399.

Why does a smooth sky turn into stripes?

A gradient that changes by a few values per row is pushed onto steps 85 apart at 4 levels, so long runs of rows land on the same level and the change happens all at once. That banding is the poster look. To keep the colour limit but hide the bands, use Floyd-Steinberg dithering instead.

Why posterize before tracing an image to vectors?

A tracer turns areas of one colour into shapes. A photo with tens of thousands of slightly different colours traces into thousands of tiny, noisy shapes; posterized to a few dozen colours it gives large, clean regions and a much smaller vector file.

How do I use the Posterize (Color Levels)?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Pop-art poster

Three levels per channel (27 colours) turn a portrait into bold flat areas in strong colours.

Vector-trace preparation

Four levels cut a photo to at most 64 colours, so a tracer produces clean shapes instead of noise.

Screen-print separations

Two levels per channel leave at most 8 flat colours, a starting point for separating ink layers.

Retro web graphics

Six levels snap every pixel onto the 216-colour web-safe palette, for example (200, 43, 128) to #CC3399.

Last updated: