Toolvito

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

Your values

One category on each line: its name, a colon, then its items with commas between them, such as Pet: cat, dog, fish. The first category is the one the others are matched to.

The first lines of the list are used.

The first items of each line are used. More items make a harder puzzle.

More options

Empty: new puzzles. To make the same puzzles again, type the seed of an earlier result.

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.

Print or download

Task
Print the puzzles and the solutions

You get a PDF with every puzzle (its grid and clues; a long list of clues goes on over a second page), then the solutions starting on a new page.

More options

Small puzzles fit 2 on a page; the solutions then share pages too.

Leave it empty to use "logic-puzzle".

The puzzles are made in your browser. When you press a button in a box below, the drawings of the puzzles and the solutions (and, for a document, the result lines and tables) are sent to the Toolvito server to make the file. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to make a logic puzzle

  1. 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.
  2. 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.
  3. Press Make the puzzles. The puzzle with its grid and clues is drawn under the result; its solution is behind “Show the solution”.
  4. 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.

Related tools