Skip to content
Pixelate

Guide · 2026-11-11

How to make a pixel art grid overlay with square cells

By the Pixelate team

You put a 32 × 32 grid over a landscape photo, copy the outline onto square paper, and end up with a lighthouse that looks too tall. The trouble starts before you draw the first line. On a wide image, thirty-two columns and thirty-two rows divide the picture into oblong cells. Copy each oblong into a square and the proportions change.

A pixel art grid overlay keeps a drawing in proportion when one square on the reference maps to one square on the page. Work through the lighthouse example below to choose the row count, judge how much detail you can trace, and download a guide you can draw over. You can use the same calculation on your own photo.

Why a square preset stretches on a landscape photo

The overlay divides the full image width by the column count and its height by the row count. On this 960 × 640 reference, a 32 × 32 preset gives you 960 ÷ 32 = 30 pixels across each cell and 640 ÷ 32 = 20 pixels down. The round sun makes a good check: trace it from that grid onto square paper and it becomes an upright oval.

Lighthouse reference for a pixel art grid overlay, with a round orange sun above the sea
Our starting image. The sun is easy to check for distortion, and the lantern has small panes for testing how much detail a grid captures.Download the 960 × 640 reference image

How to put a square grid on a photo

1. Load the reference and read its dimensions

Open the pixel art grid generator, select “Overlay on image,” then “Upload image.” Use the lighthouse above to follow along. Read the pixel dimensions below the preview. For a large original, Pixelate scales the longest edge to a maximum of 4,096 pixels, so use the dimensions shown here for your calculations.

Pixel art grid overlay with 32 columns and 32 rows forming wide rectangles across the lighthouse
32 × 32 on the landscape reference. Follow a cell along the skyline and compare its width with its height.

2. Choose a cell size that divides both sides

Try a 40-pixel square. Divide 960 by 40 to get 24 columns and 640 by 40 to get 16 rows. Set the Columns and Rows sliders to those values. If you already know how many columns will fit on your paper, use rows = columns × image height ÷ image width. For this 3:2 picture, every three columns need two rows.

Pixel art grid overlay with 24 columns and 16 rows of square cells around the lighthouse
24 × 16 gives 40-pixel squares. Use this spacing to place the roof peak, the base of the tower and the point where the headland meets the sea.

3. Set the line weight against a small detail

For the examples here, choose the dark line swatch, set Line width to 1 pixel and Opacity to 55%. Look at the narrow panes under the lighthouse roof. If a grid line hides a window frame, lower the opacity. For a dark subject, try the pale line swatch and check the silhouette again.

Which grid gives you enough detail to trace?

We made these exports in Pixelate from the same AI-generated lighthouse illustration. The table uses the dimensions of the downloaded PNGs. Cell spacing is measured from the start of one grid line to the start of the next.

Columns × rowsCell spacingUse on square paper
32 × 3230 × 20 pxDistorts the sun when copied cell by cell
24 × 1640 × 40 px384 cells for a quick outline
48 × 3220 × 20 px1,536 cells for the roof and window frames
Pixel art grid overlay with fine 20-pixel squares across the sun and lantern
48 × 32 at 1-pixel line width. Doubling both counts gives four times as many cells to transfer.

Before copying all 1,536 cells, draw just the lantern at your intended size. If its upright bars already read clearly, the fine spacing earns its place. For the long sweep of the coastline, the coarser grid gives you fewer intersections to count.

Pixel art grid overlay with thick dark lines crossing the lighthouse windows
Same 48 × 32 grid and 55% opacity, now with 8-pixel lines. Each vertical stroke takes up 8 of the 20 pixels between lines, masking much of the lantern detail.

Export the tracing reference or keep the grid on its own layer

Choose “Download PNG” to save the picture and its grid together. Our overlay PNGs all measured 960 × 640 pixels, even as the row and column counts changed. Open the file at full size to check the lines before printing.

Choose “Download SVG” if you want to hide or recolor the lines later. The overlay SVG contains the grid geometry on a transparent canvas at the reference dimensions. In your editor, place it directly above the original image, align their top-left corners and give both layers the same width and height. Toggle the grid layer off when you finish tracing.

Frequently Asked Questions

How do I get square cells on a portrait photo?

Use the same width-to-height ratio for columns and rows as for the image. On a 640 × 960 portrait, 16 columns and 24 rows produce 40-pixel squares.

What if the calculation gives a fractional row count?

Try a different column count so the row count comes out whole. If your project requires a fixed count in both directions, crop a copy of the reference to that ratio first. The tool supports 1 through 128 rows and columns.

Can I print a blank grid to match the photo?

Select “Grid only” and enter the same row and column counts. Choose a cell size and export. For a one-to-one tracing sheet, print both grids with the same physical distance between adjacent lines.

Will a grid turn the photo into solid blocks of color?

An overlay adds guide lines and preserves the color variation inside each cell. To make a sprite or a limited-color pattern, use the photo-to-pixel-art guide below.

Before you start drawing

Count the squares available on your page first. For this lighthouse, 24 across needs 16 down. Mark the roof peak and both edges of the sun on your paper, then trace the curve. That small check catches a stretched grid before you spend time drawing the shoreline.

Related Guides & Tools