mscroggs.co.uk
mscroggs.co.uk

subscribe

Blog

 2025-06-08 
This week, Joel Riley's Every 5×5 Nonogram website has been doing the rounds. The website includes every nonogram on a 5 by 5 grid that's solvable without using trial-and-error, and anyone who visits the site can help to solve them all. At the time of writing, around a quarter of the puzzles have been solved, so if you want to be part of solving them you'll need to be a bit quick. Be warned though, solving them can be addictive.
For the uninitiated, a nonogram is a puzzle where you have to colour in some of the squares so that the blocks of coloured squares in each row and column have the sizes given. For example, this nongram:
... has this solution:
... because the first column contains one uninterrupted block of 5 black sqaures (5); the second column contains two non-adjacent blocks of 1 black square (1 1); and so on. If a row or column is empty, 0 is written in as its clue rather than leaving it blank.
After solving quite a few 5 by 5 nonograms, I started to wonder if I could make solvable nonograms that represented every letter of the alphabet.

Making letters

Making an alphabet of nonograms is harder than just drawing each letter, as not all 5 by 5 nonograms have a unique solution. For example, my first attempt to draw the letter X looked like this:
But this nonogram has a lot of solutions, including:
Checking that a 5×5 nonogram has a unique solution isn't too hard—you can do this check by trying to solve it then seeing if you get to a point where there's more than one way to finish—but it would be quite time consuming to do these for all 26 letters, so I wrote a short Python script to do the checking for me. After a few minutes of tweaking some of the letters, I had the alphabet.

Making words

Now that I had a nonogram for each letter of the alphabet, I had an idea: I could use them to make wider nonograms (with a 0 column between them to prevent the letters touching). Unfortunately, if two 5×5 nonograms both have unique solutions, it doesn't necessarily follow that the wider nonogram made by putting them together has a unique solution. For example, take the nonograms that were my first candidates for R and W:
There two nonograms both have a unique solution, but if you make a 5×11 nonogram by placing them next to each other with a 0 column between them, you get a nonogram with multiple solutions:
So my first attempt at the alphabet didn't give me a set of nonograms that I could use to spell words. All was not lost though: after a bit of thinking I came up with an adjusted alphabet that can be used to spell words and a justification for why any nonogram words built by putting these letters in a rows will have a unique solution. These are the letters I ended up with:
If you'd like to make a nonogram for a word or your name, write it in the box below. You can click on the nonogram that is creates to make it larger:

Why does this alphabet always make solvable words?

To show that this alphabet will always make solvable words, I first looked at every column of every letter. For many column clues, there are squares that must always be black or always be white: for example, if the column clue is 5, the squares must all be black; or if a column clue is 3, the middle square in that column must be black. Looking at my alphabet, you can show that the black and white squares in this diagram must be black or white, while the grey squares could still be either:
Next, suppose that the letter we're looking at is the leftmost letter in our nonogram, and consider the row clues. We have to be a little bit careful here: we know that each row clue starts with the clue for the letter, but we don't know which numbers come next: it could be possible to fit more or fewer of the row's black squares into the first letter. Looking at the row clues carefully for each letter, we can add some more squares to our squares that we're certain are black or white (if our letter is leftmost):
We can now take another look at the columns using this new information, leading to:
And another look at the rows then the columns once again leave no grey squares:
Overall, this means that given any nonogram built from my alphabet, you can always solve the leftmost letter. But if you then delete the first letter, you can solve for the second letter (as it's now the first letter in the shorter nonogram). Then you can solve the third letter, and so on until you've shown you can solve the full nonogram.
×4      ×7            ×1      ×3
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
@Dave Budd: I would guess that it doesn't unless I got very lucky, but I should write a script and check...
Matthew
                 Reply
Nice argument for always solvable! I'm wondering if it also applies on a "2D" message, i.e. multiple rows of letters
Dave Budd
                 Reply
If you did numbers as well, you could make a meta nonogram, with the completed nonogram having numbers along the top and left, and gridlines. Or it could be a solved nonogram!
Boltí
×1      ×1           Reply
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "f" then "a" then "c" then "t" then "o" then "r" in the box below (case sensitive):

Archive

Show me a random blog post
 2026 

Feb 2026

Christmas (2025) is over
 2025 
▼ show ▼
 2024 
▼ show ▼
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

nine men's morris london fence posts manchester science festival crossnumbers matrix of cofactors ucl stickers finite group bots games pizza cutting christmas correlation kenilworth dragon curves football speed latex standard deviation golden ratio edinburgh european cup sorting pi approximation day warwick fonts sound ternary signorini conditions world cup rust regular expressions asteroids phd computational complexity christmas card logo estimation talking maths in public guest posts exponential growth countdown platonic solids datasaurus dozen logs errors finite element method javascript raspberry pi bodmas stirling numbers london underground 24 hour maths go arithmetic simultaneous equations turtles flexagons harriss spiral bempp fractals hannah fry numerical analysis graphs matrix multiplication statistics numbers trigonometry data inverse matrices pi thirteen youtube people maths big internet math-off tennis sobolev spaces oeis rugby geometry mean recursion graph theory dataset preconditioning books game show probability royal baby crossnumber logic advent calendar sport crochet wave scattering folding paper coventry anscombe's quartet binary hyperbolic surfaces the aperiodical map projections pythagoras inline code geogebra probability machine learning approximation national lottery squares cambridge chebyshev matrix of minors light noughts and crosses plastic ratio triangles frobel golden spiral chess palindromes nonograms error bars mathsjam news crosswords python accuracy wool matt parker reddit realhats captain scarlet propositional calculus pac-man draughts live stream gaussian elimination hats friendly squares chalkdust magazine mathsteroids puzzles reuleaux polygons bubble bobble gather town quadrilaterals video games hexapawn kings manchester folding tube maps matrices weak imposition databet programming partridge puzzle weather station alphabets interpolation final fantasy tmip convergence newcastle mathslogicbot misleading statistics php dates runge's phenomenon radio 4 gerry anderson a gamut of games craft data visualisation polynomials curvature royal institution braiding game of life menace dinosaurs cross stitch martin gardner pascal's triangle zines electromagnetic field boundary element methods determinants coins rhombicuboctahedron

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2026