Nonogram Solver

How to Solve Nonograms

To solve a nonogram, first mark empty lines and fill clues that fit an entire line. Next, fill the squares shared by all placements of a long run. Then alternate between rows and columns, using each new mark to narrow the crossing clues.

Open the nonogram solver to follow along

Solve the 7 × 7 pine tree by hand

Start with the numbers above and beside the grid. Each number gives the length of one consecutive run. Two runs in the same line need at least one empty square between them. Lime marks filled cells, a dot marks known empty cells, and plain cells are still open.

1. Mark empty lines and fill exact fits

11113713111
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
3UnknownUnknownUnknownFilledUnknownUnknownUnknown
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
5UnknownUnknownUnknownFilledUnknownUnknownUnknown
3UnknownUnknownUnknownFilledUnknownUnknownUnknown
7FilledFilledFilledFilledFilledFilledFilled
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
The exact-fit lines cross in the middle. Three rows with a clue of 1 are now complete.

The pine tree has no 0 clue. On a puzzle that does, mark that whole line empty first. Here, row 6 and column 4 each have a clue of 7, so fill both lines. Rows 1, 3 and 7 each need just one filled square. The mark in column 4 completes each of them, so cross out the rest of those rows.

2. Find overlap in a long run

11113713111
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
3EmptyUnknownUnknownFilledUnknownUnknownEmpty
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
5EmptyFilledFilledFilledFilledFilledEmpty
3EmptyUnknownUnknownFilledUnknownUnknownEmpty
7FilledFilledFilledFilledFilledFilledFilled
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
The outer columns are empty outside row 6. Row 4 fits exactly between them.

Row 4 needs five adjacent filled squares. In seven cells, that run can start at columns 1, 2 or 3. All three placements cover columns 3 through 5, so fill that overlap. Now check columns 1 and 7. Their clue of 1 is already satisfied by row 6. Those ends of row 4 are empty, so its five-cell run must fill columns 2 through 6.

3. Alternate between rows and columns

11113713111
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
3EmptyEmptyFilledFilledFilledEmptyEmpty
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
5EmptyFilledFilledFilledFilledFilledEmpty
3EmptyEmptyFilledFilledFilledEmptyEmpty
7FilledFilledFilledFilledFilledFilledFilled
1EmptyEmptyEmptyFilledEmptyEmptyEmpty
Rows 2 and 5 fill the three middle cells. Every row and column now matches its clue.

Columns 2 and 6 each read 1 1. The filled squares in rows 4 and 6 already form those two separate runs. Cross out the other cells in both columns. Rows 2 and 5 each need a run of 3. The only spaces still available are columns 3, 4 and 5, so fill them. Finally, read back every column clue to check the finished tree.

How to read a clue with two numbers

Take 1 3 at the top of the pine tree’s third column. Reading from top to bottom, you need a single filled square, then one or more empty squares, then three adjacent filled squares. The final grid has its single square in row 2, an empty square in row 3, and its three-square run in rows 4–6. Blank space before the first run or after the last run is allowed.

Try reading the sixth column from top to bottom. Its clue is 1 1. The two filled squares in rows 4 and 6 count as separate runs because the cell between them is empty. If those squares were adjacent, the column would read 2.

What to do when you get stuck

Return to a line that crosses your latest mark. Try placing its runs at the earliest and latest positions that fit the clues and known empty squares. If both placements cover a square with the same run, mark it filled. If a square lies outside every valid placement, mark it empty. On a line with several runs, account for the required gaps before deciding which cells are forced.

Use a dot or cross for a square you have proved is empty, so you can tell it apart from an unresolved square. If two different placements still fit, leave the disputed squares open and check another line. For a second set of eyes on the same puzzle, enter the clues and choose Show deductions. The tool marks the cells it could settle with row and column logic.

Try the pine tree in Nonogram Solver