Home / Articles / Duplicate lines in DXF — find and remove them
Troubleshooting · CAD files

Duplicate lines in DXF — find and remove them

6 min read · updated 12 Nov 2026

Duplicate or overlapping lines are two lines sitting exactly on top of each other in the same place. You can barely see them, but a laser or plasma cutter will cut that path twice — burning the edge, widening the kerf, wasting time, and often inflating the quote, since shops price by cut length and the doubled line is counted twice. This guide explains why duplicates appear, how to find them, and how to remove them in DXCAD2D so one clean line is left.

Why DXFs end up with duplicate lines

Duplicates creep in several ways while drawing.

  • Copy-paste in place — copying and pasting without moving leaves a whole part stacked on itself.
  • Shared edges — butting parts together to save material (nesting) when each part carries its own outline, so the touching edges become a double line.
  • Tracing from PDF or an image — auto-trace often draws two outlines around a single stroke.
  • Leftovers from offset / mirror / array — copying and forgetting to delete the original, or a mirrored fold line landing exactly on itself.
zoom in: two lines, not one orange = the duplicate to delete
At normal zoom it looks like one line, but zooming in or nudging it reveals two lines on top of each other — the duplicate is the one to delete.

How to find duplicate lines

Duplicates are hard to see because they overlap exactly. Three methods help.

  1. Spot the darker line — a doubled line usually looks heavier or darker than its neighbours, especially at corners and junctions.
  2. Nudge it to reveal the twin — click a suspect line and move it a little; if a line is still left in the original spot, there was a duplicate. Press Ctrl+Z to undo, then delete the duplicate instead.
  3. Measure with M — measure the outline length and compare it with what it should be. If the total cut length is higher than expected (or the shop quotes an oddly long cut), there are usually hidden duplicates.

How to remove them in DXCAD2D

  1. Zoom into the suspect spot, click the top line and delete it. If a line remains exactly in place, you just removed the duplicate correctly.
  2. For a shared edge between butted parts, keep one line and delete the overlapping edge of the other part.
  3. For several collinear segments stacked along one line, use trim to cut the overlap, or delete the extra segment and draw one continuous line.
  4. Re-check with M that the outline length is back to its proper value.
Don't rely on the shop alone: some cutting shops' nesting software merges duplicates for you, but not all do, and it can merge the wrong ones. Sending a clean file yourself is the safest.

Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.

Open DXCAD2D Online

Draw clean so duplicates never form

  • Draw each closed outline as one polyline — press PL and trace a continuous closed shape rather than stitching separate line segments; no stacked pieces, and it is easy to check that it closes (see the open-polyline guide).
  • Snap to endpoints — always start a new line at the end of the last one; never retrace over a line that already exists.
  • Delete the seam after mirroring — when you mirror to make the other half, delete the symmetry axis line where the halves overlap, leaving one line.
  • Delete the source after offset — offset keeps the original line, so remember to delete the one you don't need.

Frequently asked questions

What do duplicate lines in a DXF cause

The cutter runs that path twice — burning the edge, widening the kerf, wasting time, and the shop often prices by the doubled cut length.

How do I find overlapping lines

Look for a line that appears darker than usual, or click a line and nudge it; if a line is still left behind, there was a duplicate. Undo, then delete the duplicate instead.

How many lines should a shared edge between butted parts keep

Just one. Delete the overlapping edge of the other part so the cutter runs that shared edge once, saving time and avoiding a double burn.

Will the cutting shop remove duplicates for me

Some have a merge-duplicates function in their nesting software, but not all, and it can merge incorrectly. Sending a clean file yourself is safer.

Summary

Duplicate lines make a cutter run the same path twice — burnt edges, slow cuts and inflated prices. Find them by spotting unusually dark lines, nudging a line to reveal its twin, or measuring the outline length with M, then delete the duplicate so one line remains. Prevent them from the start by drawing each outline as a single polyline, snapping to endpoints, and deleting the leftovers after every mirror and offset.