How to Solve Nonograms
A nonogram is a puzzle in which you fill in cells using the numbers beside each row and column, revealing a hidden picture. It is also known as Picross, Griddlers, Hanjie or Paint by Numbers. This page explains the basic techniques for solving nonograms by hand, with diagrams, for beginners. The basic techniques use only what a single row or column's clues guarantee, so they never require guessing.
Key points
- Start with the lines that have the largest clues. Slide the blocks left and right; the cells they always cover are filled (technique 1).
- Once you know a filled cell, extend its block where you can and mark the cells that must be empty. Those marks are your next clues (techniques 3–7).
- What you learn in a row feeds the columns, and vice versa. Switching between rows and columns is the heart of solving (walkthrough).
- If rows and columns stop moving, try the advanced techniques that compare arrangements (techniques 8–12).
- Use trial and error only when nothing else moves (technique 13). Most puzzles do not need it.
- Finish with three interactive practice puzzles. There is also a cheat sheet and a glossary.
What is a nonogram?
A nonogram is a logic puzzle in which you decide which cells of a grid to fill, using the numbers to the left of each row and above each column, until a picture appears. Tetsuya Nishio and Non Ishida each invented it independently in Japan around 1988. The name "nonogram" comes from Non Ishida. It was given when the British newspaper The Sunday Telegraph began publishing Ishida's puzzles in 1990, and the puzzle spread abroad from there. Publishers and games use different names, but the rules are always the same.
| Name | Where it is used |
|---|---|
| Nonogram | The most common general name, used by apps and puzzle sites |
| Picross | Nintendo's game series |
| Griddlers, Hanjie, Paint by Numbers, Picture Cross | Magazines and apps in various countries |
| Oekaki Logic, Illust Logic | Japanese puzzle magazines |
The rules and how to read the diagrams
There are only three rules. On this page, a row or a column is called a line.
- Each number (clue) is the length of a run of consecutive filled cells in that row or column.
- When a line has several clues, the blocks appear in that order, left to right or top to bottom.
- There is at least one empty cell between two blocks.
Check them against a finished picture. In the 5×5 heart below, the clue "1 1" on the first row means a 1-cell block, a gap, then another 1-cell block, and the "5" on the second row means all five cells are filled. The "4" above the second column means four consecutive filled cells from the top.
Row clues: 1 1 / 5 / 5 / 3 / 1. Column clues: 2 / 4 / 4 / 4 / 2. Board: □■□■□ / ■■■■■ / ■■■■■ / □■■■□ / □□■□□
The diagrams for techniques 1–10 show a single row of 10 cells taken from a grid, with the row's clue on the left. Techniques 11 and 12 look at rows and columns together, so their diagrams use a 5×5 grid. Cells known to be empty are marked with an X (×).
How solving works, in three steps
- Find the lines where some cells are certain, and fill them in. Take the lines with large clues and slide the blocks left and right (technique 1). Finish lines that fit exactly and lines with a clue of 0 first (technique 2).
- Use what you know, switching between rows and columns. A filled cell tells you which cells no block can reach (technique 3); a filled cell near the edge, or two filled cells that must share a block, tell you how the block continues (techniques 4 and 5). Close finished blocks (technique 6) and empty gaps that are too small (technique 7). Every new cell in a row is a new clue for its column (walkthrough).
- When no line moves, use the advanced techniques, and trial and error last. Try the techniques that compare arrangements (techniques 8–12). If they do not help, assume one cell is filled, keep going, and mark it empty if you hit a contradiction (technique 13). Most puzzles are solved before you get here.
If you are new to nonograms, techniques 1–7 and the walkthrough are enough to solve most 10×10 puzzles. Read from technique 8 onward when you get stuck.
Technique 1: Overlap, slide the blocks left and right
Push the blocks as far left as they go, then as far right. Cells covered by the same block both times are filled.
This is the technique you will use most. Imagine every block pushed as far left as it can go, then as far right as it can go. Cells covered by the same block in both positions are filled wherever the block really is.
You can also work it out with arithmetic. Slack = line length − (sum of the clues + number of clues − 1). Slack is sometimes called freedom. Any clue larger than the slack fixes (clue − slack) cells in the middle of its block. Here the slack is 10 − 8 = 2, so 8 − 2 = 6 cells are fixed.
Which line to start with
Overlap fixes (clue − slack) cells in each block, and nothing if that is zero or less. So start with rows and columns that have large clues: the larger the clue and the smaller the slack, the more cells you get at once. For a row of 10 cells:
- "7": the slack is 3, so 7 − 3 = 4 cells are fixed.
- "2 5": the slack is 10 − (2 + 5 + 1) = 2. Three cells of the 5 are fixed; nothing of the 2 is fixed yet.
- "3": the slack is 7. The clue is smaller than the slack, so nothing is fixed yet.
Many clues alone are not enough. "1 1 1 1 1" in a row of 10 has a slack of only 1, but every clue is 1, so overlap fixes nothing.
Rule of thumb: any clue larger than half the line length fixes at least one cell.
Technique 2: Lines that fit exactly, and zero lines
If the clues plus the gaps between them add up to the line length, there is only one arrangement. A line with the clue 0 is entirely empty.
If the clues plus one empty cell between each pair of blocks add up to the line length, there is no slack and only one arrangement. A line whose clue is 0 (or that has no clue) is entirely empty. Finish both kinds first: they hand a lot of information to the crossing lines at once.
Technique 3: Mark cells no block can reach
Once you know a filled cell, work out how far its block could stretch. Cells no block can reach are empty.
Once you know a filled cell, work out how far its block could stretch. Cells that no block can reach are empty.
Technique 4: Grow from a filled cell near the edge
If only one block can reach a filled cell near the edge, fill the cells that block must cover.
When you find a filled cell near an edge, ask which block it belongs to. If only one block can reach it, compare the positions where that block could include the cell; the cells they share are filled.
Technique 5: Join separated filled cells
If two separated filled cells must belong to the same block, fill everything between them.
Sometimes you know two filled cells some distance apart. If only one block can reach both, they belong to the same block. A block is continuous, so every cell between them is filled. The block's length then also tells you how far it can extend on either side (technique 3).
Technique 6: Close finished blocks
When a block you know belongs to a clue reaches that clue's length, the cells on both sides are empty.
When a block reaches the length of its clue, the cells on both sides of it must be empty. Marking them shows how much room is left for the next block. Forgetting these marks is the most common reason for getting stuck.
The condition is that you know which clue the block belongs to. In a line with the clue "2 3", a run of two filled cells might still be part of the "3", so you cannot close it yet. A block as long as the largest clue in its line cannot be part of a longer block, so you can close it right away.
Technique 7: Empty the gaps too small for any block
If no remaining block fits in a gap between empty cells, the whole gap is empty.
If a gap between empty cells is shorter than every block that is still left, nothing fits in it. If each remaining gap can hold only one particular block and fits it exactly, the whole line is decided at once.
Switch between rows and columns (5×5 walkthrough)
Every cell you determine in a row is a new clue for the column that crosses it. When the rows stop giving you anything, look at the columns, and vice versa. Repeating this is the heart of solving a nonogram. Let's solve the heart shown in the rules section, starting from an empty grid.
Row clues: 1 1 / 5 / 5 / 3 / 1. Column clues: 2 / 4 / 4 / 4 / 2. Board: □□□□□ / □□□□□ / □□□□□ / □□□□□ / □□□□□
Row clues: 1 1 / 5 / 5 / 3 / 1. Column clues: 2 / 4 / 4 / 4 / 2. Board: □□□□□ / ■■■■■ / ■■■■■ / □□■□□ / □□□□□
The "5" rows are completely filled (technique 2). The "3" row gets its middle cell (technique 1).
Row clues: 1 1 / 5 / 5 / 3 / 1. Column clues: 2 / 4 / 4 / 4 / 2. Board: ×□□□× / ■■■■■ / ■■■■■ / ×■■■× / ×□□□×
The outer "2" columns are complete, so their neighbors and the cells no block can reach are empty (techniques 6 and 3). Overlap fills rows 2–4 of each "4" column (technique 1).
Row clues: 1 1 / 5 / 5 / 3 / 1. Column clues: 2 / 4 / 4 / 4 / 2. Board: ×■×■× / ■■■■■ / ■■■■■ / ×■■■× / ×□□□×
With both ends empty, the top row's "1 1" fits exactly into the three cells left (technique 2).
Row clues: 1 1 / 5 / 5 / 3 / 1. Column clues: 2 / 4 / 4 / 4 / 2. Board: ×■×■× / ■■■■■ / ■■■■■ / ×■■■× / ××■××
In columns 2 and 4 the "4" is complete, so row 5 is empty (technique 6). In the middle column, row 1 is empty, so the "4" fits exactly into the four cells left (technique 2). A heart appears.
Advanced techniques: when you get stuck
Techniques 1–7 use only a line's clue and the cells you already know. If no row or column moves, try the advanced techniques below, in order. The higher the number, the more work it takes.
Technique 8: Mark cells that would make a block too long
If filling a cell would make a run that no block in the clue can hold, the cell is empty.
Filling a cell next to a filled cell, or between two filled cells, joins them into a longer run. If none of the line's blocks can hold a run that long, you cannot fill that cell, so mark it empty. A block can fail to hold it because no clue number is long enough, or because a long enough clue cannot reach that far.
Adding just one cell next to a filled cell works the same way. The order of the clues helps too.
Technique 6 is a special case: once a block has reached the length of its clue, filling either neighbor would always make it too long.
Technique 9: Overlap again in the narrowed range
When Xs or filled cells narrow the range a block can occupy, compare its leftmost and rightmost positions again within the narrowed range.
Technique 1 compares positions using the clue numbers alone. Once Xs appear on the board, the range a block can occupy shrinks. Compare the left and right positions again inside the narrowed range, and a block that fixed nothing at first may now overlap itself. Try this again on a line each time it gets a new X.
If the range is exactly as long as the block, the whole block is filled.
Technique 10: Compare every arrangement
When nothing above decides a cell, write out every arrangement of the line that fits its clue and fix the cells that are the same in all of them.
Throw out the arrangements that clash with the filled cells and Xs first. Then compare what is left: a cell that is filled in all of them is filled, and a cell that is empty in all of them is an X. Techniques 1–9 are shortcuts for this method. Use it when only a few arrangements remain; when there are many, try techniques 1–9 first.
Technique 11: Match a row's and a column's colors (color puzzles)
In a color puzzle, if only one color fits both what the row alone allows and what the column alone allows, the cell takes that color.
In a color puzzle, a cell can still have several possible colors (plus empty). List what the row clue alone allows, list what the column clue alone allows, and keep only what is in both. If exactly one is left, the cell is decided. In a black-and-white puzzle, an undecided cell is always "filled or empty" for both the row and the column, so this technique never applies.
Row clues: blue 2 blue 1 / red 1 red 1 / blue 2 red 1 blue 1 red 1 / red 1 blue 1 / blue 2 blue 1. Column clues: blue 1 blue 1 blue 1 / blue 1 red 1 blue 1 blue 1 / red 2 / red 1 blue 2 / blue 1 red 1 blue 1. Board: BB××□ / ×R×□□ / BBRBR / ××RB× / BB××B
Technique 12: Think about two lines together
Take two rows (or columns) that each have only a few arrangements. An arrangement is impossible if, combined with every arrangement of the other row, some crossing column clue no longer fits. Cells that are the same in the remaining arrangements are decided.
Sometimes one row or column is not enough, but two rows together decide a cell. Write out the arrangements that fit each row (technique 10). Combine them one pair at a time, and place the cells of that pair into the columns they cross. If a column clue no longer fits, that pair cannot happen. An arrangement that fails with every arrangement of the other row cannot be the right one, so cross it out; the cells that are the same in the remaining arrangements are decided.
With many arrangements the combinations pile up, so use this on rows that each have only a few. You only check one crossing column at a time and never carry the result on to further rows or columns.
Row clues: 3 / 2 1 / 2 / 2 / 1 1. Column clues: 2 / 2 1 / 1 1 / 1 2 / 2. Board: □□■□□ / ■■×□□ / □□□□□ / ××□■□ / ×■×□□
Row clues: 3 / 2 1 / 2 / 2 / 1 1. Column clues: 2 / 2 1 / 1 1 / 1 2 / 2. Board: □□■□□ / ■■×□□ / □□□□□ / ××□■□ / ×■×■×
Technique 13: When you get stuck, trial and error
When no row or column moves, assume one cell is filled and keep going. If you reach a contradiction, that cell is empty.
If no row or column gives you a new cell, even after technique 12, assume that one cell is filled and keep going. If some line ends up contradicting its clue, the assumption was wrong, so that cell must be empty. This is also called bifurcation or proof by contradiction.
Mark the cells you fill during a trial in a different color so that you can undo them. Solve mode in Nonograver has trial placements that show those cells with a separate mark and undo them in one go. Try cells where the choice matters most, such as a cell that could be the end of a long block, to reach a contradiction sooner.
A trial often runs without any contradiction. If you can fill in the whole grid that way and every clue is satisfied, you have found the answer. If the trial stalls instead, undo it and try a different cell.
If assuming the same cell filled and assuming it empty both lead to a complete picture without a contradiction, the puzzle has more than one solution.
Tips for solving large puzzles faster
Above 15×15 the techniques are the same, but where you look makes a big difference to speed.
- Start with the largest clues. Lines where many cells are fixed at once hand information to the crossing lines. You do not need to go through every line in order.
- Close a block the moment it is finished. If you leave the Xs for later, you will forget them and get stuck.
- Count with the bold lines every five cells. Read "cell 7" as "5 + 2" instead of counting one by one, and add up clues in groups of five and ten.
- Only recheck the lines where a cell was just determined. If a row gave you three new cells, look at those three columns. Scanning the whole grid again and again wastes time.
- When stuck, look for missing Xs and misread clues first. Trial and error comes after that.
Common mistakes
- Forgetting the Xs on both sides of a finished block. This causes most dead ends (technique 6).
- Overlapping different blocks. Only cells covered by the same block in the left and right positions are fixed (technique 1).
- Forgetting the gaps between blocks. "1 1" needs at least 3 cells, and "3 4" needs at least 8.
- Reading clues in the wrong order. Rows go left to right, columns top to bottom.
- Assuming a filled cell belongs to a particular clue. If you cannot tell which clue a block belongs to, you can neither extend it nor close it yet.
- In color puzzles, leaving a gap between different colors. Gaps are only required between blocks of the same color (color nonograms).
- In irregular puzzles, reading a clue that belongs to another section. Each section between holes has its own clue (irregular nonograms).
Color nonograms
In a color nonogram, each clue has a color and gives the length of a block of that color. Only one rule differs from black-and-white puzzles:
- Blocks of the same color need at least one empty cell between them, as in black and white.
- Blocks of different colors may touch with no gap.
Techniques 1–10, 12 and 13 still work (technique 11 is only for color puzzles); just remember that a gap is only required between blocks of the same color. Where different colors sit side by side, the missing gap leaves more slack, so overlap fixes fewer cells.
Color puzzles also give you extra kinds of clues:
- A color that is not in a row's clue cannot appear anywhere in that row. Cross-check with the column clues to narrow down the colors each cell can take.
- Once a cell's only options are "empty" or a single color, treat it like a black-and-white cell.
- Consider one color at a time and ask where blocks of that color could go. Some cells are decided this way before the black-and-white techniques get to them.
- If only one color fits both what the row alone allows and what the column alone allows, the cell is decided (technique 11).
Irregular nonograms
Irregular nonograms have boards that are not rectangles: some cells are holes that are not part of the puzzle. When a row or column is split by holes, each section between the holes usually has its own clue.
Treat each section as a short row of its own, and every technique above applies. Sections are often short, so lines that fit exactly (technique 2) are more common than in rectangular puzzles, which gives you easy places to start. The usual mistake is reading a clue as belonging to the wrong section, so first check where the section for each clue begins.
Cheat sheet
All the techniques in one table, to keep beside you while you solve the practice puzzles.
| Technique | When | What you learn |
|---|---|---|
| 1 Overlap | A clue is larger than the slack | Cells covered by the same block in the left and right positions are filled |
| 2 Exact fit | The slack is 0, or the clue is 0 | The whole line is solved at once |
| 3 Reach | You know a filled cell | Cells no block can reach are empty |
| 4 Edge | A filled cell near the edge | If only one block reaches it, the cells that block must cover are filled |
| 5 Join | Separated filled cells belong to one block | Everything between them is filled |
| 6 Close | A block known to belong to a clue has reached that length | Both neighbors are empty |
| 7 Gap | A gap between Xs is shorter than every remaining block | The whole gap is empty |
| 8 Too long | Filling a cell would make a run no clue can hold | The cell is empty |
| 9 Narrowed overlap | Xs or filled cells narrowed a block's range | Compare left and right positions again in the narrowed range; cells covered both times are filled |
| 10 Every arrangement | Nothing above decides a cell | List every arrangement that fits; cells that are the same in all of them are decided |
| 11 Row and column colors | Color puzzle; the row and the column allow different colors | If only one color fits both, the cell takes it |
| 12 Two lines | Two rows (columns) with few arrangements | Cross out an arrangement that fits none of the other line's arrangements at a crossing line |
| 13 Trial | No line moves | If assuming a cell is filled leads to a contradiction, it is empty |
Practice puzzles (tap to solve)
Try the techniques above. Each tap cycles a cell through filled → empty (×) → unknown. On a computer, right-click toggles the × mark. Fill in every correct cell and a message tells you the puzzle is solved.
Puzzle 1: Beginner (5×5)
Start with the "5" row, then switch between rows and columns.
| Column clue 1 | Column clue 4 | Column clue 3 1 | Column clue 4 | Column clue 1 | |
|---|---|---|---|---|---|
| Row clue 1 | |||||
| Row clue 3 | |||||
| Row clue 5 | |||||
| Row clue 1 1 | |||||
| Row clue 3 |
Puzzle 2: Easy (10×10)
One column has the clue "0". Start with the large clues. No trial and error is needed.
| Column clue 0 | Column clue 2 | Column clue 4 | Column clue 4 | Column clue 9 | Column clue 2 | Column clue 2 2 | Column clue 2 4 | Column clue 2 4 | Column clue 9 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Row clue 6 | ||||||||||
| Row clue 6 | ||||||||||
| Row clue 1 1 | ||||||||||
| Row clue 1 1 | ||||||||||
| Row clue 1 1 | ||||||||||
| Row clue 1 1 | ||||||||||
| Row clue 3 3 | ||||||||||
| Row clue 4 4 | ||||||||||
| Row clue 4 4 | ||||||||||
| Row clue 2 2 |
Puzzle 3: Hard (10×10, advanced techniques)
Techniques 1–7 alone will stall partway. Try technique 9 and technique 12; trial and error (technique 13) works too. The puzzle has exactly one solution.
| Column clue 2 | Column clue 2 1 | Column clue 3 1 | Column clue 3 1 | Column clue 10 | Column clue 9 | Column clue 3 | Column clue 3 | Column clue 2 | Column clue 2 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Row clue 2 | ||||||||||
| Row clue 6 | ||||||||||
| Row clue 8 | ||||||||||
| Row clue 10 | ||||||||||
| Row clue 1 2 1 | ||||||||||
| Row clue 2 | ||||||||||
| Row clue 2 | ||||||||||
| Row clue 2 | ||||||||||
| Row clue 1 2 | ||||||||||
| Row clue 3 |
Glossary
- Clue (number)
- The numbers to the left of each row and above each column. Each gives the length of a run of consecutive filled cells in that line, in order. Some books and apps call them hints.
- Block (run)
- A run of consecutive filled cells. Each clue number corresponds to one block.
- Slack (freedom)
- The number of cells left over when all blocks are packed together with one empty cell between them: line length − (sum of the clues + number of clues − 1). Any clue larger than the slack fixes (clue − slack) cells.
- Empty mark (X, dot, white cell)
- The mark on a cell known to be empty. Always mark them; they are your next clues.
- Overlap (simple boxes)
- Filling the cells that the same block covers in both its leftmost and rightmost positions. Technique 1.
- Trial and error (bifurcation, proof by contradiction)
- Assuming a cell is filled, continuing, and rejecting the assumption if it leads to a contradiction. Technique 13.
- Arrangement (placement)
- One way of placing a line's blocks so that they match its clue. Some techniques compare every arrangement (technique 10, technique 12).
- Unique solution
- A puzzle with exactly one arrangement that satisfies all clues. Well-made puzzles have a unique solution and can be solved without guessing, sometimes with the help of trial and error.
- Color nonogram
- A nonogram whose clues have colors. Blocks of different colors may touch without a gap. How to solve.
- Irregular nonogram
- A nonogram whose board is not a rectangle. Usually each section between holes has its own clue. How to solve.
FAQ
What is a nonogram?
A nonogram is a logic puzzle in which you fill in cells of a grid using the numbers written beside each row and above each column, revealing a hidden picture. Each number is the length of a run of consecutive filled cells in that line, in order. The same puzzle is also called Picross, Griddlers, Hanjie or Paint by Numbers (see What is a nonogram?).
Are nonograms, Picross, Griddlers and Hanjie different puzzles?
No. They are names for the same puzzle used by different publishers and games. Every technique on this page works for all of them.
Which row or column should I start with?
Start with the lines that have the largest clues. The overlap method fixes (clue − slack) cells in each block, so lines with large clues and little slack give you the most cells at once. Finish lines with a clue of 0 and lines that fit exactly first (see which line to start with).
What is slack (or freedom) in a nonogram?
Slack is the number of cells left over when all blocks are packed together with one empty cell between them: line length − (sum of the clues + number of clues − 1). Any clue larger than the slack fixes (clue − slack) cells in the middle of its block. When the slack is 0, there is only one arrangement.
Should I always mark empty cells with an X?
Yes. X marks are clues in their own right. The Xs on both sides of a finished block and on cells no block can reach narrow down the crossing lines. Forgetting them is the most common reason for getting stuck on a solvable puzzle.
Do some nonograms require trial and error?
Yes. Most published puzzles can be solved from the row and column clues alone, but hard or homemade puzzles can leave cells that no single line determines. Then try advanced techniques such as thinking about two lines together (technique 12). If that does not help, use trial and error (technique 13): assume one cell is filled, keep going, and mark that cell empty if you reach a contradiction. Use it only after every other technique has been exhausted. Practice puzzle 3 on this page can be solved with technique 12 or with trial and error.
What size of puzzle should a beginner start with?
Around 5×5 to 10×10. The practice puzzles on this page range from a 5×5 beginner puzzle to a 10×10 puzzle that needs advanced techniques. Move on to 15×15 and 20×20 once you are comfortable.
How can I solve large nonograms (20×20, 30×30) faster?
Four habits cover most of it: start with the lines that have the largest clues, mark both ends of a block as soon as it is finished, count cells using the bold lines every five cells, and only recheck the lines where a new cell was just determined (see tips for large puzzles). When you get stuck, look for missing Xs and misread clues before you try trial and error.
What should I do when I cannot solve a nonogram?
First go through every row and column again and check that both ends of each finished block are marked with an X. If that does not help, use trial and error. If assuming a cell filled and assuming it empty both lead to a complete picture without a contradiction, the puzzle has more than one solution. Nonograver can show you the solutions and how many there are.
Can a nonogram have more than one solution?
Yes. Puzzles in magazines and apps are usually designed to have exactly one solution, but some puzzles, such as homemade ones, have several. In those puzzles you have to guess somewhere to fill in every cell.
What is the most common mistake in color nonograms?
Leaving a gap between blocks of different colors. A gap is required only between blocks of the same color (see color nonograms).
Stuck? Check your answer with Nonograver
Nonograver is an iPhone app that solves nonograms from the clues you enter. It handles color and irregular puzzles as well as black and white, and because it searches for every solution, it also tells you whether a puzzle has only one answer. Use it to check a puzzle you cannot finish, or to verify one you made yourself.
View on the App Store About Nonograver How to use the appAbout this page
Written and illustrated by Cmirai, the developer of the nonogram solver app Nonograver. Every cell marked as determined in the diagrams has been verified by a program, and so has the uniqueness of each practice puzzle's solution. If you find a mistake or something unclear, please let us know through the contact page.