Skip to content
UniKit

Image to pixel art

Turn a photo into pixel art: shrink it to a chosen pixel grid, quantise it to 2–256 colours and scale the cells back up into blocks, then export PNG or JPEG.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

64
24

Blank derives it from the original ratio; set it to force a square grid.

2 ×

More columns keep more detail: 16–32 looks retro, 64–128 is refined, anything from 1 to 512 works.

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result details

Result details

Pick an image and the pixel-art preview shows up immediately.

What this tool does

  • Avatars and game assets: shrink a photo to 16–32 cells and quantise to 16 colours for a retro pixel avatar.
  • Visual downsampling: find out how few pixels an image needs to stay readable by comparing grid widths of 24, 32 and 64.
  • Stylised posters: 128 cells with 64 colours keeps most detail while a 4× scale gives a clearly blocky poster asset.
  • Different from the pixelator: pixelation only groups the original into blocks (same size), while pixel art truly shrinks, quantises and enlarges — three passes.

Example

Input

An 8×8 gradient with an 8×8 grid, 2 colours and scale 1

Output

8×8 with at most 2 colours used and pixels different from the source

The three steps in pure pixelArtImage: scaleBox down to the grid, buildPalette median-cut quantisation, then scaleNearest enlargement. With scale 3 the output is 24×24 and every 3×3 block is a single colour.

Frequently asked questions

How do the grid width and colour count work together?

The grid decides how many pixel cells the image has, the colour count decides how many colours they can use. Retro looks suit 16–32 cells with 8–16 colours; 64–128 cells with 32–64 colours keeps more detail. Both are live sliders with instant preview.

What is the "scale per cell" for?

At scale 1 the cells are too small to see clearly, so scaling 2–8× turns each into a solid block that stays crisp when enlarged. The output size is grid × scale and is still capped at 16 million pixels.

What happens to transparent images?

Transparent pixels are excluded from the palette statistics and stay transparent in the output. A fully transparent image has no colours to work with and reports an invalid palette rather than producing a blank file.

Why is the colour count different from what I entered?

The "colours used" figure is what actually appears after quantisation and can be lower than the target: when the image already contains few colours, median cut simply does not fill the quota. Both the target and the actual value are shown.

Are my images uploaded?

No. Pixels are read through the canvas and processed entirely in the browser; there is no upload endpoint on the page.

Keywords:pixel art

Related tools