Cookie Cutter Design: Free Online Tool
March 16, 2026 • Tom Silas Helmke • Updated
A cookie cutter is a hollow outline with a thin wall. That makes it a good first project: it teaches wall thickness, extrusion and print orientation. This guide builds a star cutter with a parametric script for CADFaber's code mode and gives the dimensions it produces.
Work along in the CADFaber Editor and use the complete guide as your reference while applying the steps below.
The shape: a thin outline wall
Model the cutter as a 2D outline, shrink it inwards by the wall thickness, subtract the smaller outline, and extrude the remaining ring upward. The result is a hollow tube in the shape of the outline.
CADFaber's Cookie Cutter template does exactly this for a star, with default values of 5 points, an outer radius of 30 mm, an inner radius of 12 mm, a height of 15 mm and a 1.5 mm wall. With those values it measures about 57 x 54 x 15 mm.
A version with a top flange
Pressing a bare 1.5 mm wall into dough hurts the hand. The script below adds a 2 mm thick flange around the top edge, which gives the thumb a wider surface. The flange uses rounded corners, because a sharp offset would create long spikes at the star tips.
const jscad = require('@jscad/modeling')
const { polygon } = jscad.primitives
const { extrudeLinear } = jscad.extrusions
const { subtract, union } = jscad.booleans
const { offset } = jscad.expansions
const { translate } = jscad.transforms
const getParameterDefinitions = () => [
{ name: 'points', type: 'int', initial: 5, min: 3, max: 12, step: 1, caption: 'Star points' },
{ name: 'outerR', type: 'number', initial: 30, min: 20, max: 60, step: 1, caption: 'Outer radius (mm)' },
{ name: 'innerR', type: 'number', initial: 14, min: 8, max: 50, step: 1, caption: 'Inner radius (mm)' },
{ name: 'wall', type: 'number', initial: 1.6, min: 1.2, max: 3, step: 0.4, caption: 'Cutting wall (mm)' },
{ name: 'height', type: 'number', initial: 15, min: 10, max: 25, step: 1, caption: 'Cutter height (mm)' },
{ name: 'flange', type: 'number', initial: 5, min: 0, max: 10, step: 1, caption: 'Top flange width (mm)' },
]
const main = (p) => {
const pts = []
for (let i = 0; i < p.points * 2; i++) {
const a = (i * Math.PI) / p.points - Math.PI / 2
const r = i % 2 === 0 ? p.outerR : Math.min(p.innerR, p.outerR - 2)
pts.push([Math.cos(a) * r, Math.sin(a) * r])
}
const outline = polygon({ points: pts })
const inner = offset({ delta: -p.wall }, outline)
const wallBody = extrudeLinear({ height: p.height }, subtract(outline, inner))
if (p.flange <= 0) return wallBody
const ring = subtract(offset({ delta: p.flange, corners: 'round' }, outline), inner)
return union(wallBody, translate([0, 0, p.height - 2], extrudeLinear({ height: 2 }, ring)))
}
module.exports = { main, getParameterDefinitions }What it measures
With the defaults, the library reports a footprint of about 64 x 61 mm and a height of 15 mm, and a volume of about 6.6 cm3 with the flange (about 4.6 cm3 without). Changing the star to 8 points gives a footprint of about 63 x 63 mm, because the points spread around the circle.
Wall thickness and the printer
Choose a wall that matches the lines your slicer actually prints. With a 0.4 mm nozzle, 1.2 mm is about three lines and 1.6 mm about four. The slider minimum in the script is 1.2 mm for that reason. Thinner walls print less reliably and break when pressed into dough.
Print the cutter upside down, with the flange on the bed and the cutting edge pointing up. That avoids supports under the flange, which would otherwise hang 5 mm into the air.
Custom outlines and SVG import
CADFaber can import SVG files, but it extrudes every filled shape into a solid slab with a fixed depth, not a hollow cutter. For a custom outline, either write the polygon points in code as in the star script or use the imported solid as the starting shape and cut a smaller copy out of it with a subtract operation.
Keep outlines simple: smooth curves, no thin spikes, and no islands that would fall out of the cutter.
Food contact: use common sense
A printed cutter has layer lines where dough and moisture can collect, and common filaments such as PLA soften in hot water, so do not put it in a dishwasher. Wash it by hand, dry it completely and replace it when it looks worn. Unless the filament maker explicitly states that it is food safe, treat the part as a shaping tool, not as a certified food-contact item.