SVG and DXF nesting
Drop an SVG or DXF with your parts, type how many of each you need and the size of your sheet, and get them packed tightly by their real shape, with rotation, spacing and as many sheets as it takes. Download the nested layout as SVG or DXF.
Nesting settings
Parts and quantities
Tips for tighter nesting
- Allow rotation unless the grain direction or a printed pattern matters. Every 45° helps odd shapes; every 90° is enough for most boxy parts.
- Keep the spacing small but safe: the kerf plus a millimetre or two. Less spacing means more parts per sheet.
- Set the real sheet size of your laser bed or stock, minus anything you clamp.
- Cut inner holes first: the SVG to G-code tool orders cuts inside-out so parts don't shift before their holes are cut.
How the nesting works
Each part is drawn onto a fine grid, grown by half the spacing on every side, and placed largest first. Every copy goes to the left-most free position on the sheet, then the highest one in that column, trying each allowed rotation and keeping whichever lands furthest left. When a part fits nowhere on the current sheets, a new sheet is started. Because two neighbours are each grown by half the spacing, the gap between them is at least the spacing you typed. The sheet margin is measured from the sheet edge to the part itself.
The grid cell is the square root of the sheet area divided by 160,000, and never finer than 0.25 mm: about 0.87 mm on the default 400 × 300 mm sheet, 1.22 mm on 600 × 400 mm and 2.1 mm on a 1200 × 600 mm sheet. Gaps can therefore come out up to about one cell wider than the spacing, and a big sheet packs a little looser than a small one. If you have a large sheet but only a few parts, nest on a sheet just bigger than they need and move the result into place.
Spacing, kerf and margin
The spacing is not the kerf. Parts drawn exactly at size and cut 0.5 mm apart would share almost no material between their cuts: the strip between them chars, warps or burns through, and on acrylic the two cuts can fuse. Typical starting points:
| Job | Spacing | Margin |
|---|---|---|
| Diode or CO2 laser, 3 mm plywood or MDF | 2–3 mm | 5 mm |
| CO2 laser, 3–6 mm acrylic | 3 mm | 5 mm |
| CNC router, 3.175 mm (1/8 in) bit | 5–6 mm | 10 mm or past the clamps |
| CNC router, 6 mm bit with tabs | 8–10 mm | 15 mm |
Kerf compensation is a separate step and belongs on the part outlines before nesting. See kerf compensation explained.
A worked example: 40 coasters
Forty 90 mm round coasters on 600 × 400 mm sheets, 3 mm spacing, 5 mm margin. A plain square grid fits floor((600 − 10 + 3) ÷ 93) = 6 across and floor((400 − 10 + 3) ÷ 93) = 4 down: 24 per sheet, so two sheets, with circles covering about 64% of the first. Rotation does nothing for circles, but the left-first search lets the next column drop into the hollows of the last one, so check the part count and the material figure the tool reports against that grid. For mixed shapes, the material percentage under the preview is the number to watch: it counts each part's real area with its holes taken off, divided by the sheet area.
When a part goes missing
- No closed outlines found … nesting needs closed shapes: the file only has open lines. Close the outlines in FlatCad (or the program that drew them) first.
- N open lines outside every part left out: engraving or score lines that do not sit inside any outline have nothing to travel with, so they are dropped. Put a border around them or delete them.
- N parts are bigger than the sheet: they do not fit in any allowed rotation inside the margin. Try every 45°, a smaller margin, or a bigger sheet.
- Text disappears: SVG text elements are not outlines. Convert text to paths before you export.
- Limits: 400 different parts per file, 500 copies of one part, 2000 parts in one run, 30 MB per file. Identical parts (same size, area and number of holes) are merged into one row with a quantity.
The download places the sheets side by side, 20 mm apart, each with its outline on a Guide layer. Cut outlines go on the Cut layer and any open lines inside a part on an Engrave layer.
Need parts to nest? Boxes, gears, lettering, or free laser cut files.
Questions
What is nesting?
Nesting packs the parts you want to cut as tightly as possible on a sheet, so you waste less plywood, acrylic or metal. This tool uses the real shape of each part (not just its bounding box), tries several rotations, and can even place small parts inside the holes of big ones.
How do I set the number of copies?
After you open a file, every separate part is listed with its size. Type how many of each you need, or use Copies of everything to multiply the whole set.
What spacing should I use?
On a laser, 2–3 mm for wood and acrylic: the kerf itself is only 0.1–0.3 mm, but the gap stops heat and flare-ups from scorching the next part. On a CNC router use the bit diameter plus 2 mm, because the bit cuts beside the line, not on it.
How does it know what a part is?
Every closed outline that isn't inside another one is a part; outlines inside it are its holes, and open lines inside it (engraving, scoring) travel with it. Text should be converted to paths first.
What if the parts don't fit on one sheet?
A new sheet is started automatically. The download puts the sheets side by side with a gap, each one outlined on a Guide layer so you can cut them one at a time.
Is it as good as paid nesting software?
For hobby and small-shop work it gets close, and it is instant. Industrial nesting packages squeeze out a few more per cent with long optimisation runs.