Projects › Games › Nonograms
Play nonograms free online
Nonograms are picture logic puzzles: use the number clues to work out which squares to colour in, and a hidden picture appears. They're also known as Picross, Griddlers, Paint by Numbers or Picture Cross. There are 24 detailed colour pictures to find here, from a 15 × 15 strawberry to 30 × 30 scenes like a lighthouse at sunset, each with exactly one answer. Drag to fill squares, get a hint when you're stuck, or double-click Reveal to see the picture first. Your progress saves itself. No sign-up and no download. Then build your own nonogram game with a free AI assistant.
Small 1
Double-click (or double-tap) Reveal to see the finished picture first. Your pictures and times are saved on this device only.
How to solve a nonogram
Every row has clues on its left and every column has clues above it. Each number is a block of squares in that colour, in the order you see them. A clue of 3 2 means a block of 3, then later a block of 2. Blocks of the same colour always have at least one empty square between them. Blocks of different colours can touch.
- Start with the big numbers. In a 10-square row, a block of 7 must cover the middle 4 squares wherever it sits. Fill those in.
- Mark the empty squares. Pick ✕ (or right-click) to mark squares you know are empty. They're just as useful as filled ones.
- Go back and forth. Every square you fill in a row gives you new clues for its column. Work across, then down, then across again.
- Watch the clues fade. When a row or column matches its clues, they fade out and the spare squares get a dot.
- Stuck? Press Hint. It fills one square and tells you which row or column proves it, so you learn the trick as well.
The sizes: Small pictures are 15 × 15 and take a few minutes. Medium are 20 × 20 and Large are 25 × 25. Huge pictures are 30 × 30 full scenes with sky, sea and lots of colours, so set aside a while for those. Every puzzle can be solved by logic alone, with no guessing.
Your own nonogram game
You'll describe it to a free AI assistant, paste what it writes into a file, and open it in your browser. No coding needed. The fun part is drawing your own pictures as rows of letters. The AI works out every clue for you.
Build it in five steps
Step 1 gives you a simple black-and-white version that works, and each step after it adds more. Yours will look a bit different from the one above, because the AI writes its own version each time.
Ask for a playable grid
Start with one small black-and-white picture, so you can check the clues and clicking work. Copy this prompt into your AI assistant:
Copy this promptI don't know how to code. Please make me a nonogram (picture logic puzzle) game that runs in a web browser. Requirements: - ONE single HTML file (HTML, CSS and JavaScript together), no external libraries, no internet needed. I will save it and double-click it. - Store the picture in the code as rows of text, where "#" is a filled square and "." is empty. Start with a 10 by 10 picture of a heart. - Work out the clues from the picture: for each row and column, the lengths of each run of filled squares, in order. Show row clues on the left and column clues on top. An empty line shows 0. - Click a square to fill it in black, click again to clear it. Right-click marks it with an X. - Draw thicker lines every 5 squares. - When every row and column matches its clues, show "Solved!". Please give me the complete file in one code block, then tell me in simple steps how to save and open it.
Copy the code, paste it into your text editor and save it as nonogram.html. Double-click it and try to solve the heart.
Make it work on phones, with dragging
Clicking one square at a time gets slow. Dragging along a row is much nicer, and it makes the game work on a touch screen.
Copy this promptThat works, thank you. Please make filling faster and phone-friendly: - Use pointer events, so it works with a mouse, a finger or a pen. Set touch-action: none on the grid so the page doesn't scroll while I drag. - Press a square and drag to fill a straight line. Lock the line to the row or column I start moving along. - If the first square I press is already filled, the drag clears squares instead. - Add buttons under the grid to switch between "Fill" and "X", for phones that can't right-click. - Highlight the row and column under the pointer, and fade a clue out when its line is finished. - Add an Undo button: one drag is one step. Send me the complete updated file.
Always ask for the complete file. Replace everything in nonogram.html, save, and refresh the tab (F5 or Cmd+R).Add colour
Colour nonograms look far better, and the colours give you extra clues.
Copy this promptPlease change it to colour pictures: - Each picture has a palette, for example { r: "#E63946", g: "#3E9B4F", y: "#FFD166" }, and its rows use those letters, with "." for empty. - Each clue number now sits in a little rounded square of its colour, with white or dark text depending on which is easier to read. - The rule changes: blocks of the same colour need a gap between them, but blocks of different colours can touch. Make the solved check follow that. - Show a row of colour buttons under the grid, plus the X button. The number keys 1 to 9 pick a colour. - Replace the heart with a 10 by 10 strawberry: red berry, green leaves on top and yellow seeds. Send me the complete updated file.To draw your own picture, type it as rows of letters in the chat and say "use this picture instead". Keep every row the same length.Add more pictures and a picker
Now turn it into a real game with lots of pictures to find.
Copy this promptPlease add: - Five more pictures of your choice, in sizes 10 by 10 and 15 by 15, each with 3 to 5 colours. Draw them carefully so they look good, with darker shading on one side. - A picker beside the grid showing a card for each picture. Unsolved pictures show a question mark; solved ones show the little picture and its name. - A timer that pauses when I switch tabs, and saving in localStorage, so my progress on every picture is kept when I close the page. - When I solve one, make the grid lines fade away, show the picture's name and a "Next picture" button. Send me the complete updated file.
Some pictures can be solved in more than one way. If a picture has two answers, change a square or two and ask the AI to check it again (see Quick fixes).Add hints and a reveal
Finally, help for anyone who gets stuck, and a way to peek at the answer.
Copy this promptPlease add: - A "Check" button that makes any wrong squares flash red. - A "Hint" button. Write a line solver: for one row or column, try every way the clue's blocks could fit around the squares already known, and find the squares that are the same in every way. The hint fills one of those squares and says which row or column proves it. - A "Reveal" button that needs a double-click (or two quick taps), so it isn't pressed by accident. It shows the finished picture on top of the grid with "Hide it and keep solving" and "Fill it in for me" buttons. Send me the complete updated file.
Quick fixes
A picture can be solved in two ways
Ask the AI: "Use the line solver to solve each picture from its clues alone, and print to the console any picture it can't finish, with the squares it isn't sure about." Then change one of those squares in your picture.
The page scrolls when I drag on my phone
Ask the AI to "add touch-action: none to the grid and call preventDefault in the pointerdown handler".
Fast drags skip squares
Ask the AI to "fill every square in a straight line from where the drag started to the square under the pointer, instead of only the square under the pointer".
Clues don't fit on a big grid
Ask the AI to "size the squares to fit the screen width, counting the clue area too, but never smaller than 17 pixels; if it still doesn't fit, let the board scroll sideways".
It opens as text
Re-save as plain text with exactly .html at the end, not .txt.
Questions people ask
What is a nonogram?
A nonogram is a picture logic puzzle. Number clues beside each row and above each column tell you how many squares in a row to fill in, and in what order. When you've filled in the right squares, a picture appears. They were invented in Japan in the late 1980s.
Is a nonogram the same as Picross or Griddlers?
Yes. Nonograms are also called Picross, Griddlers, Hanjie, Paint by Numbers, Pic-a-Pix and Picture Cross. The rules are the same. The puzzles here are colour nonograms, where each number has a colour too.
Are these nonograms free?
Yes. All 24 pictures are free to play, with no sign-up and no adverts in the game.
How does the double-click reveal work?
Double-click the Reveal button, or tap it twice quickly on a phone, and the finished picture appears over the grid. You can hide it and keep solving, or have it filled in for you. It needs a double-click so it can't be pressed by accident.
Do I ever have to guess?
No. Every picture was checked by a solver to make sure it has exactly one answer that can be found by logic, one row or column at a time.
Can I play on my phone?
Yes. Pick a colour, then tap or drag across squares. The bigger pictures scroll sideways on narrow screens so the squares stay big enough to tap. The 30 × 30 scenes are easiest on a tablet or computer.
Will it remember my progress?
Yes. Every picture you've started or solved is saved on this device, with your best times. Nothing is sent to us.
Can I print a nonogram?
Yes. Press Print this puzzle for the grid with its colour clues on one page and the answer on a second page.
Twist it into something else
Draw-your-own nonogram
paint a picture on an empty grid, then share a link that turns it into a puzzle for a friend
Photo to nonogram
shrink a photo to 15 by 15 squares and five colours, then play it as a puzzle
Daily picture
a new picture for everyone each day, picked from the date
Classroom spelling grid
pictures that reveal this week's spelling words, letter by letter
Mega puzzle
a 40 by 40 picture split into tiles, solved one tile at a time
Puzzle book
print a pack of ten puzzles with the answers at the back