
Nonogram Generator: How a Picture Becomes a Puzzle
A nonogram generator takes a picture, shrinks it to a small grid of filled and empty cells, and counts the blocks in every row and column. Those counts become the clues. The tricky part is not making clues, it is making clues that lead to exactly one picture without guessing. Here is how it works, and how to check a puzzle before you share it.
How does a picture become a grid?
First the image is scaled down to the grid size, for example 15 by 15 cells. Each cell then becomes either filled or empty, usually by comparing its brightness to a threshold: darker cells are filled, lighter cells stay empty.
Then the generator reads every line. A row that looks like "filled, filled, empty, filled" gets the clue "2 1". Do this for all rows and columns, hide the picture, and the puzzle is ready. The method is the same whether a program does it or you do it with squared paper and a pencil, as in our guide to making a nonogram by hand.
Why are many generated puzzles unfair?
Clues describe block lengths, not positions. For some pictures, two different drawings share exactly the same clues. The smallest example is a 2×2 grid with filled cells in two opposite corners: every row and column has the clue 1, and the other diagonal fits just as well.
When a puzzle has two solutions, the solver reaches a point where no logic helps and only a guess remains. Even with one solution, a generated puzzle can need very long chains of reasoning. Busy photos with lots of single dots are the usual cause. That is where many people decide nonograms "need guessing", when the real problem is the puzzle.
Which pictures work best?
Simple shapes with clear outlines work well: a cat, a cup, a house, a leaf, a heart. Large areas of the same colour give long blocks, and long blocks give the solver a safe place to start.
A few small habits help a lot:
- choose a picture with one main subject and a plain background;
- keep thin lines at least one cell wide all the way through;
- avoid scattered single cells, like freckles or stars, unless the clues around them are strong;
- start at 10×10 or 15×15 before trying bigger grids.
How can I check a homemade puzzle?
Solve it yourself without looking at the picture, or ask a friend to. If you ever have to guess, the puzzle needs a small change.
You can also enter the clues into our nonogram solver. It shows the solution step by step, so you can see where the logic flows and where it stalls. If the solver cannot settle some cells, your clues probably allow more than one picture. Fix it by filling or emptying one or two cells near the problem area, then count the clues again. Our article on nonograms that feel unsolvable explains the same problem from the player's side.
Is a generator worth using?
For fun, yes. Seeing a favourite photo turn into a puzzle is a lovely moment, and a handmade puzzle makes a thoughtful gift. Just treat the first version as a draft: test it, tweak a few cells, test again. A puzzle that solves cleanly is a far nicer present than one that ends in a guess.
If you would rather solve than design, every puzzle in our game is ready to play, from 10×10 to 30×30. You can also print a sheet from the printable collection to share with someone at the table. And if you like other quiet puzzles, try Mahjong Solitaire for a different kind of calm.
FAQ
Technically yes, but only simple, high-contrast images make good puzzles. Busy photos turn into noise and often need guessing.
The clues only describe block lengths. Some pictures, especially with scattered single cells, can be drawn in more than one way with the same clues.
10×10 to 15×15. It is big enough for a recognisable picture and small enough to check by hand.


