What this tool does
A maze carved into an irregular island shape with the treasure at the middle. The coastline is different on every generation. Bounding grids of 22 to 36, and an optional solution page.
People also used
Spiral Maze Puzzles
Navigate a spiralling path from outside to centre or vice versa.
Rooms and Doors Maze
Navigate through rooms connected by single doors. Floor-plan style layout.
Maze Generator: Printable PDF
Generate printable maze PDFs with custom grid size, difficulty, and layout. Perfect, braided, or room-based.
Feedback
Spotted something off with this tool?
Treasure-island mazes with a different coastline every time
The maze is cut into an island rather than a square. A rough circle gets drawn, then pushed in and out at random around its edge until the coast is properly bumpy, and the corridors are carved only into the cells that fall inside that outline. The sea prints as a pale wash. The treasure sits at whichever cell lands nearest the middle.
Because the coastline is randomised on every generation, no two prints have the same silhouette. That is the part children notice: it stops looking like a worksheet and starts looking like a map.
The size control
Size is the bounding grid, at 22, 28, 32 or 36 cells across. The island itself takes up roughly the middle of that box, so the number of maze cells is well under the square of the setting — a 28 grid produces an island of a few hundred cells, not 784.
Twenty-two gives large, forgiving corridors for younger children. Thirty-six is a long solve on A4. Save it for someone who has asked for a long solve.
Solution page and seed
The solution toggle adds a second page with the route to the treasure drawn in. Handy for marking a stack. Handier still at a party, where an adult will eventually be asked whether the thing is even possible and needs to be able to answer within about four seconds.
The seed reprints an exact island. If a child produces a coastline they love, note the seed and you can print it again next year.
Where it earns its place
Pirate parties, obviously. But the island shape also does real work in a geography lesson: coastline, interior, the difference between a shape's outline and its area. Ask a class to estimate how many maze cells the island covers before they count them, and the bumpy edge makes that a genuinely interesting estimate rather than a trivial one.
It also fits a treasure-hunt frame. Print one per child, hide the actual prize, and let the maze be the map that has to be solved before the search begins.
How it is built
The island mask is generated first, from a base radius of about 45% of the grid with random radial wobble. A shaped-maze carver then runs a depth-first backtracker across only the masked cells, so every cell on the island is reachable and there is exactly one route between any two of them. The finish is moved to whichever island cell sits closest to the geometric centre, which is why the X is never quite in the same place twice.
Print at 100% scale. The sea wash is light on purpose so it does not eat ink or fight the pencil.
FAQs
Quick answers
How is the island shape made?
A noisy radial mask with random lobes. The maze backtracker walks only inside the mask, so the path is bounded by the coastline.
Where is the treasure?
At the masked cell closest to the geometric centre of the island.
Can I print the solution?
Yes. Toggle the solution option to add a second page with the route overlaid.
How big can it be?
Up to a 40×40 bounding grid. Larger means a more detailed coastline and a longer path.
Related tools
Spiral Maze Puzzles
Navigate a spiralling path from outside to centre or vice versa.
Rooms and Doors Maze
Navigate through rooms connected by single doors. Floor-plan style layout.
Maze Generator: Printable PDF
Generate printable maze PDFs with custom grid size, difficulty, and layout. Perfect, braided, or room-based.
Further reading
Mazes
Why mazes are great for kids' development
Mazes are one of the few activities that exercise pencil control and forward planning at the same time. Which is why they suit the years just before formal handwriting.
4 min read
Mazes
Printable maze difficulty: matching mazes to ages
Maze difficulty has two independent dials, and confusing them is why a maze is either too fiddly or too easy. Here is which to turn for which child.
4 min read