Calculates on this device. File exports run online.
Logic Puzzle Generator
Choose a theme or type your own categories, choose how large the puzzle is, and press Make the puzzles. Every puzzle is made in your browser and checked to have exactly one solution. Then print it with its grid and the solution, or save it as pictures or a document.
Enter your values
Check these values
This is off unless you turn it on. Saved entries stay in this browser only. Untick the box to delete them.
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Make the puzzles.
Your result
How it was worked out
How to make a logic puzzle
- Choose a theme, or type your own categories: one on each line, its name, a colon, then its items with commas, such as Pet: cat, dog, fish, rabbit.
- Choose how many categories and how many items in each. 3 categories of 4 items is a good first puzzle; 4 or 5 categories of 5 items is hard.
- Press Make the puzzles. The puzzle with its grid and clues is drawn under the result; its solution is behind “Show the solution”.
- In the boxes below, print the puzzles with the solutions on later pages, or save pictures or a document. The seed under the result makes the same puzzles again: type it under More options.
How the puzzles are made
The seed draws the solution: which items belong together. Then the page lists every true clue of three kinds: two items belong together, two items do not belong together, and an item belongs with either one item or another of the same category. The seed puts the list in a random order.
The page takes clues from the list one by one and, after each, counts the possible solutions with a complete search. It stops when exactly one solution is left. Then it tries leaving out each clue in turn, and removes it if exactly one solution is still left. So every clue in the puzzle is needed.
With “belong together” clues turned off the puzzle has more clues and is harder; with only “do not belong together” clues it is hardest.
Limits you should know
- 3 to 5 categories of 3 to 6 items (5 categories of 6 items take too long to check in a browser), up to 5 puzzles at a time and up to 25 seconds.
- The clues are about which items belong together. There are no clues about order or position, such as “left of” or “older than”, so the classic Einstein (zebra) puzzle with houses in a row is not made here.
- The page does not rate the difficulty or show the steps of a solution; it shows the solution only.