Turn a Photo Into a Connect-the-Dots Puzzle
Trace a photo's silhouette into a numbered connect-the-dots puzzle you can print, with an optional solution path. Deterministic, in your browser.
What this page does
Finds the strongest outline in a picture, simplifies it into a manageable number of points, numbers them, and draws a printable puzzle. The solution path can be shown or hidden.
How to use it
Choose a file, set the options and press Render. Example: a 900 × 900 photo of a leaf at a 96-cell grid and 28 dots becomes a white puzzle sheet with 28 numbered dots around the leaf outline.
How it works
The picture is reduced to an ink mask on a coarse grid, the boundary is traced with marching squares, the path is simplified with Douglas-Peucker, and the requested number of points is resampled evenly along it. Points are drawn as dots with numbers, and the connecting path only when the solution is on.
What it refuses
A dot count outside 8-120, a grid outside 32-192, a threshold outside 1-100, or an image with no ink at the threshold is refused by name (the message suggests lowering the threshold).
Where it runs
The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device. It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank.
Finds the strongest outline in a picture, simplifies it into a manageable number of points, numbers them, and draws a printable puzzle. The solution path can be shown or hidden.
The picture is reduced to an ink mask on a coarse grid, the boundary is traced with marching squares, the path is simplified with Douglas-Peucker, and the requested number of points is resampled evenly along it. Points are drawn as dots with numbers, and the connecting path only when the solution is on. The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.
Worked example: a 900 × 900 photo of a leaf at a 96-cell grid and 28 dots becomes a white puzzle sheet with 28 numbered dots around the leaf outline.
How to use the turn a photo into a connect-the-dots puzzle
Choose an image file, set the options, and press Render. The result appears below the form.
Example: a 900 × 900 photo of a leaf at a 96-cell grid and 28 dots becomes a white puzzle sheet with 28 numbered dots around the leaf outline.
The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.
- Numbered dots — 8 to 120
- Trace grid (cells on the long edge) — 32 to 192
- Ink threshold (%) — 1 to 100
- Solution path — one of hide, show
- Dot colour (hex) — a hex colour
- Paper colour (hex) — a hex colour
- Output format — one of png, jpeg, webp
- Quality (JPEG and WebP) — 1 to 100
What the canvas draws
Finds the strongest outline in a picture, simplifies it into a manageable number of points, numbers them, and draws a printable puzzle. The solution path can be shown or hidden.
The picture is reduced to an ink mask on a coarse grid, the boundary is traced with marching squares, the path is simplified with Douglas-Peucker, and the requested number of points is resampled evenly along it. Points are drawn as dots with numbers, and the connecting path only when the solution is on.
- Every option is declared by this page, so an unknown choice or an out-of-range number is refused by name before any pixel is drawn.
- The preview and the download are the same canvas: what you see is the file you get.
What it refuses, and what it leaves out
A dot count outside 8-120, a grid outside 32-192, a threshold outside 1-100, or an image with no ink at the threshold is refused by name (the message suggests lowering the threshold).
It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank.
- Not the right page for: photographs without a clear silhouette, which trace into noise
- Not the right page for: a smooth line drawing, which is the block SVG tracer
What to Expect
Best for
- a printable activity from a recognisable shape
- a party or classroom puzzle
- a personal gift from a photo
Not ideal for
- photographs without a clear silhouette, which trace into noise
- a smooth line drawing, which is the block SVG tracer
What this tool keeps
- The largest outline it found
- The dot numbering order
- Both the puzzle and the solution
What may need cleanup
- Lowering the threshold or raising the grid when the outline is wrong
- Cropping to one subject before tracing
Common errors
- A busy photo can produce more than one loop; the longest is used
- An all-white or all-dark image has no outline and is refused
- The numbering follows the traced path, not clock position
Example use cases
- A classroom puzzle from an animal photo
- A wedding invitation with a traced landmark
Sample input
a 900 × 900 photo of a leaf at a 96-cell grid and 28 dots
Sample output
a white puzzle sheet with 28 numbered dots around the leaf outline
Who this is for
- Teachers and parents making printables
- Anyone making a personalised puzzle
Frequently asked questions
Does my image get uploaded anywhere?
The picture is decoded and redrawn on a canvas in this tab: there is no upload, no network request and no model, so the pixels never leave your device.
What is the maximum image size?
It opens PNG, JPEG, WebP, GIF, BMP and AVIF up to 16,000,000 pixels (16 MP) and 25 MB per file; anything larger is refused with its measured size rather than drawn blank. The limit exists because a browser tab has to hold the decoded bitmap in memory.
What happens if the file cannot be decoded?
The page refuses it by name — unsupported type, decode failure, zero pixels, or above the pixel cap — and shows the measured size rather than drawing a blank canvas. The file you chose stays selected so you can correct one option and try again.
Why is the puzzle just a scribble?
The tracer follows the strongest contrast boundary. A busy photo has many, and the longest one may be background clutter. Crop to one subject against a plain background, or raise the threshold so only the darkest outline counts.
Are the numbers in drawing order?
Yes. They follow the traced path from its start, so connecting 1-2-3 in order reproduces the outline. The solution option draws those connections for you.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.