gizmobench

Stencil Maker

A black and white silhouette is not yet a stencil: any piece of sheet ringed by a cut, like the middle of an O, falls out when you cut it. This stencil maker works out the cut as well as the silhouette. It flags every island, a piece of sheet with no uncut path to the border, lists up to 50 of them largest first, outlines on the preview the one you point to in that list, and adds the shortest straight bridge it finds to hold one in place. You can also drag bridges across the preview or type their ends, and every bridge stays uncut in the SVG, the PNG and the print. Threshold mode cuts everything darker (or lighter) than the level you set; edges mode cuts only a band of the width you choose inside each shape, for outline stencils.

Turn a picture into a stencil

PNG, JPEG, WebP, GIF or BMP. It is read in this browser and never uploaded.

Cut
no picture yet
Islands
none yet
Island #1
none
Bridges
0

Detail and export

The picture is worked at up to the detail you choose on its long side, never enlarged. Every export adds a border of sheet, 4% of the long side and at least 4 px, so a cut that reaches the picture's edge stays inside the sheet. The SVG is 200 mm wide, and so is the print when that fits the paper; the PNG is the stage's pixels times the scale.

  • Black ring on white, 200 x 200 pxradii 50 and 80, threshold 128
    1 interior island flagged: the centre disc, 7,860 px
  • Bridge 8 px wide, (100, 16) to (100, 54)drawn across the top of the ring
    0 islands: the disc stays joined to the sheet; cut 12,248 to 12,008 px
  • Uniform white imageany threshold
    No cut geometry: the page says nothing would be cut instead of writing an empty or broken SVG

Common questions

How do I turn a picture into a stencil?
Press Choose a picture, or drop one onto the dark stage: PNG, JPEG, WebP, GIF and BMP files open. Set the threshold from 0 to 255 and whether the darker or the lighter parts are cut. The islands line then says how many pieces would fall out; press Add bridge beside one, or Bridge all islands, until it reads 0. Then press SVG, PNG or Print. The example ring shows the whole process on a picture made for it.
What are islands and bridges in a stencil?
An island is a piece of the sheet that a cut surrounds, so nothing holds it once the stencil is cut: the centre of an O, or the disc inside a ring. A bridge is a strip of sheet left uncut across that cut, which joins the piece to the rest. In the example, a black ring 30 pixels thick leaves its 7,860 pixel centre loose, and one bridge 8 pixels wide across the top of the ring holds it, taking the cut from 12,248 to 12,008 pixels.
Why is a piece that touches the sheet at a corner still flagged?
Two squares that meet only at a corner share a point, not an edge, and a point has no width to hold material. So the sheet here holds together only through pixels that share a side, and a piece joined to the rest only at a corner is flagged as an island. Cut areas are treated the other way round: two cut pixels that meet at a corner count as one cut region.
What do threshold mode and edges mode do?
Each pixel's brightness is 0.299 times its red plus 0.587 green plus 0.114 blue, with any transparent part laid over white. Threshold mode cuts every pixel darker than the threshold, or lighter when Cut where is set to Lighter; a pixel exactly at the threshold is never cut. Edges mode cuts only a band inside each of those shapes, as wide as the edge width, from 1 to 50 pixels, measured to the nearest pixel on the other side with a diagonal step counted as one pixel; a shape thinner than twice that width is cut right through.
What does min region do?
Cut specks smaller than the min region, in pixels, are left as sheet, and islands smaller than it are cut away with the cut around them, so a single stray pixel does not become a cut or a loose piece of its own. The settings panel says how many of each it removed. Set it to 0 to keep every pixel. Bridges come after this step, so a bridge is never removed by it.
What is in the SVG and PNG files?
The SVG holds a white rectangle for the sheet and the cut shapes as one near-black path, traced along pixel edges, with the sheet sized in millimetres to the width on paper you set, from 10 to 2,000 mm. With Mark islands and bridges on, any islands and bridges are added as filled layers with the ids islands and bridges; with it off, the file holds only the sheet and the cut. The PNG holds the same pixels as the stage's Stencil view, at 1, 2 or 4 times their size. Both add a border of sheet, 4% of the picture's long side and at least 4 pixels, so a cut that reaches the picture's edge stays inside the sheet.
How big is the printed stencil?
Print opens the stencil on its own at the width on paper you set, and shrinks it to fit when the paper's printable area is smaller. For a stencil larger than one sheet of paper, the SVG carries the same size in millimetres.
Is my picture uploaded, and how large a picture can it open?
Nothing is uploaded. The picture is decoded and traced in this browser tab, and the page remembers only its settings, never the picture or its bridges. It works on the picture at up to 300, 600, 1,000 or 1,500 pixels on its long side, the Detail you choose, and never enlarges it. Before decoding, it reads the picture's declared size from its header and refuses one over 16,384 pixels a side or 100 megapixels, with a message saying so.

A geometry assistant, worked out in your browser: it counts every part of the sheet that would come loose at your settings, lists up to 50 of them largest first, and keeps every bridge you draw uncut in the SVG, the PNG and the print. It cannot know whether your material, blade or laser will hold a bridge that narrow or cut a detail that small, so a clean preview is not a promise that the stencil will cut cleanly.