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.

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.

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.

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 × rows | Cell spacing | Use on square paper |
|---|---|---|
| 32 × 32 | 30 × 20 px | Distorts the sun when copied cell by cell |
| 24 × 16 | 40 × 40 px | 384 cells for a quick outline |
| 48 × 32 | 20 × 20 px | 1,536 cells for the roof and window frames |

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.

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
- Make a grid for your own reference
Set custom rows and columns and download the tracing sheet.
- Crop a reference to fit your drawing
Trim excess sky or water before calculating the grid.
- How to turn a photo into pixel art
Choose a block size and palette when you want colored cells for a pattern.