Skip to content
Once Books

Can ChatGPT make a sudoku?

The Once Books team27 November 2026 · 5 min read
On this page

The short answer

On its own, ChatGPT's sudoku is usually unsolvable. Connected to a real generator, it hands you a single-solution board and its answer as a PDF.

Can ChatGPT make a sudoku? Not a reliable one by itself. Ask a plain model for a 9 by 9 board and you'll usually get a grid that breaks a rule somewhere, or one that has several valid answers instead of a single one, which means it isn't really a sudoku. Connect ChatGPT to the Once Books generator, though, and the answer flips to yes: it hands you a board that's been checked to have exactly one solution, with its answer, as a print-ready PDF. Here's why the plain version fails and how the connected one fixes it.

Why a chatbot's sudoku usually breaks

A sudoku is a set of constraints: every row, column and box holds one to nine, once each, with a single way to complete it. A language model isn't solving those constraints. It's predicting what a filled grid tends to look like, which is close enough to fool a glance and not close enough to be correct. So you get a repeated number in a column, or a puzzle a solver can finish two different ways. A board with more than one answer has no real answer key, and that's the quiet flaw that turns people off a whole book.

The prompt to paste

Once you're connected, paste this:

Generate a hard 9×9 sudoku with its solution as a printable PDF.

ChatGPT calls the sudoku generator, which builds a hard board, verifies it has exactly one solution, and returns the puzzle with its answer page. Swap "hard" for easy, medium or evil to change the challenge.

What "checked" actually means

The generator doesn't trust itself. After it builds a board, it runs a solver to confirm there's one and only one way to complete it before it hands anything over. That's the same guarantee the paid sudoku book maker keeps across a whole book, and it's what makes a printed sudoku trustworthy: the answer page is the one answer, not a guess.

Boards come at 8.25 by 11 inches, the US large-print trim, so the numbers stay readable in print. The download link lasts 48 hours and the file is then deleted.

Prefer to make one by hand?

The free sudoku generator does the same thing in your browser. Pick a difficulty, press generate, and print the board and its solution with no sign-up and no watermark. Or skip the settings and print one of our printable sudoku puzzles, sorted by difficulty. For a fuller walkthrough, there's a guide to making a free printable sudoku, and for the other puzzle types an assistant can make, see make printable puzzles with AI.

Try the tool

Free, in your browser, no sign-up. Make one, then build the whole book in the studio.

Common questions

Can ChatGPT make a sudoku?
By itself, ChatGPT usually produces a board with no valid solution or several. Connected to the Once Books generator, it returns a board that's checked to have exactly one solution, plus its answer, as a print-ready PDF.
Why are AI-generated sudokus often broken?
A language model predicts what a filled grid looks like rather than solving the constraints, so it can repeat a number in a row or leave a board with many answers. A generator checks the solution before handing it over.
Can I choose the difficulty?
Yes. Ask for easy, medium, hard or evil, and the generator makes a board at that level. Every board has exactly one solution regardless of difficulty.

Related reading

Keep reading

← All guides