Pixel Art Editor

Draw pixel art on a grid of up to 128 × 128 with pencil, eraser, flood fill, eyedropper and mirror drawing, turn a photo into pixel art, and export at an exact scale such as 16 × 16 at ×20 = 320 × 320 px, as PNG, GIF, ICO or any other format.

Editor Media & Files Updated Oct 16, 2026
How to Use
  1. Pick a sample or a blank grid, and set the width and height (1 to 128 pixels). A 16 × 16 heart is loaded first.
  2. Choose a colour from the palette or the colour box, then draw with the Pencil. Right-click (or the Eraser) removes pixels; Fill paints a connected area; Pick takes a colour from the drawing.
  3. Tick Mirror to draw both halves of a symmetrical sprite at once. Ctrl + Z undoes and Ctrl + Shift + Z redoes.
  4. Or drop an image on the box to turn it into pixel art at the grid width you set.
  5. Set the export Scale (×1 for the real size, ×10 or more to show it off), pick a format and download.
Tools & Canvas
px
px
Presets
Canvas
Grid
—
Colours Used
—
Painted
—
Export Size
—

Worked Example

The 16 × 16 heart at ×20. The export is 16 × 20 = 320 by 16 × 20 = 320 px. Output pixel (x, y) takes the colour of grid pixel (⌊x ÷ 20⌋, ⌊y ÷ 20⌋), so output pixels 0–19 in both directions all copy grid pixel (0, 0), and each of the 256 grid pixels becomes a 20 × 20 block of 400 identical pixels. The heart uses 3 colours on 140 of its 256 pixels (36 outline, 99 red, 5 white); the other 116 stay transparent.

Filling the inside. Clicking a red pixel with Fill and a new colour changes every red pixel that can be reached through up, down, left and right steps. In the heart that is the whole red area apart from the white highlight, which a red-only fill flows around. Show Work counts the pixels changed.

The common mistake: enlarging in another program. Saving at ×1 and scaling 16 px to 320 px in a photo editor usually uses bicubic smoothing, which turns each sharp edge into a soft gradient and adds dozens of in-between colours. Exporting at ×20 here, or setting image-rendering: pixelated on a web page, keeps the 3 colours and the square pixels.

Show Work

Draw something to see its colours and export size.

Formulas

Export size
W′ × H′ = W·s × H·s
s = whole-number scale, 1 to 64
Nearest neighbour
p′(x, y) = p(⌊x ÷ s⌋, ⌊y ÷ s⌋)
no new colours are created
Mirror
x′ = W − 1 − x
every stroke is drawn twice
Flood fill
neighbours (x ± 1, y), (x, y ± 1)
4-connected, same colour only
Import
p = mean of a (w ÷ W) × (h ÷ H) block
height follows the image shape

Drawing With Big Pixels

Pixel art grew out of the limits of early home computers and game consoles, where every pixel and every colour had to be placed by hand. The NES, for example, built its sprites from 8 × 8 pixel tiles, each with 3 colours plus transparency. Those limits produced the style's habits that artists still follow on purpose: hard outlines, a small fixed palette, and shading by hand-placed clusters or dithering instead of smooth gradients.

The editor draws strokes with Bresenham's line algorithm, published in 1965, so a fast drag leaves no gaps between grid cells, and fills areas with a 4-connected flood fill. The 16-colour palette is the one popularised by the PICO-8 fantasy console. Exports use nearest-neighbour enlargement at a whole-number scale, which is the only resampling that keeps every pixel square and adds no colours.

About This Tool

This editor paints on a grid of up to 128 × 128 pixels with pencil, eraser, flood fill, eyedropper and mirror drawing, with undo and redo, works with mouse, pen and touch, imports any picture as a starting point, and exports at ×1 to ×64 with exact square blocks in any format the site's image engine writes, including PNG, GIF and ICO.

Everything runs in your browser and nothing is uploaded. Settings can go in the page address, for example ?sample=blank&w=32&h=32&scale=1.

Related tools: Sprite Sheet Studio, Image Upscaler, and Floyd-Steinberg Dithering.

Frequently Asked Questions

Why does my pixel art look blurry when I enlarge it elsewhere?

Most image viewers and editors enlarge with smoothing (bilinear or bicubic), which blends neighbouring pixels. Export at the size you need here instead: the scale is a whole number and every pixel becomes an exact square block, 20 × 20 at ×20, with no new colours. On a web page, add image-rendering: pixelated to keep a small image sharp.

What size should a sprite or icon be?

Classic game sprites are 8 × 8, 16 × 16 or 32 × 32; the NES drew sprites from 8 × 8 tiles with 3 colours plus transparency each. Browser favicons are 16 × 16 and 32 × 32, so draw at 32 × 32 and export at ×1 as ICO or PNG. Larger characters are often 48 × 48 or 64 × 64.

How does the fill tool decide what to paint?

It is a 4-connected flood fill: starting from the pixel you click, it changes every pixel of exactly the same colour that can be reached by moving up, down, left or right. Diagonal neighbours do not count, so a one-pixel diagonal line is enough to stop the fill. Show Work tells you how many pixels it changed.

Which format should I save in?

PNG for almost everything: it is lossless and keeps transparency. GIF also works because pixel art rarely uses more than 256 colours (Show Work says whether yours fits). ICO is for favicons. Avoid JPEG: it blurs the hard edges and adds colours between pixels.

How does importing a photo work?

The picture is reduced to the grid width you set (the height follows its shape, up to 128), and each grid pixel becomes the average colour of the block of photo pixels it covers. The result is a starting point: pixel artists then reduce the colours and tidy the outlines by hand.

How do I use the Pixel Art Editor?

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

Does it cost anything or need an account?

No. The tool is completely free, there is no account to create, and it keeps working offline after the page first loads.

Is anything I type uploaded?

No. The tool works entirely on your device, so the values you enter never leave your browser.

Common Use Cases

Favicons

A 32 × 32 icon exported at ×1 as ICO, or as 16 × 16 and 32 × 32 PNGs for the link tags.

Game sprites

A 16 × 16 character with mirrored halves, exported at ×1 for the game and at ×10 (160 × 160) for the store page.

Avatars and emoji

A 24 × 24 face exported at ×20 gives a crisp 480 × 480 profile picture.

Photo to pixel art

A 1200 × 900 photo imported at 48 px wide becomes a 48 × 36 grid, each pixel the average of a 25 × 25 block.

Last updated: