Updated July 8, 2026

How to remove duplicate lines from a DXF file (without AutoCAD)

Your DXF contains lines stacked on top of each other. Maybe your laser cuts every contour twice, maybe a downstream tool reports twice the geometry it should, maybe the file is simply bloated for what the drawing shows. On screen everything looks fine — yet the file carries geometry it doesn't need, and every machine and tool downstream pays for it. This guide shows how to tell, where the duplicates come from, how the usual desktop tools handle them (and where they stop), and how to remove them for good — directly in your browser, no CAD licence required.

How to tell your DXF has duplicate lines

Duplicates are invisible on screen: two identical segments render as a single line, even at maximum zoom. You detect them by their side effects, not by looking:

If any of these ring true, the file almost certainly carries redundant geometry that needs removing.

Where do the duplicate lines come from?

Duplicates are almost never drawn on purpose. They are artifacts of how the file was produced:

About Revit

Contrary to a common assumption, Revit does not duplicate lines by default — it does the opposite. Because many Revit elements share a plane, the drawing is full of coincident lines; on DWG/DXF export, Revit does not preserve them by default and strips them out (Autodesk's export documentation confirms this). Doubled lines in a Revit export therefore come from a deliberate choice, not from the format: the export setup's "Preserve coincident lines" option, which keeps the overlapping lines instead of removing them. So if a Revit DWG shows double lines, the first thing to check is that setting — but cleaning the exported file catches whatever still slips through, whichever CAD it came from.

The tools that can remove them — and where each stops

If you own a desktop CAD or laser program, it probably does part of the job. None does all of it, and each has a real blind spot — the capable ones cost a licence, and the free ones have no reliable one-click tool at all:

Whatever the tool, the duplicates return on the next export — they originate upstream, not in your editing.

The hard part: what counts as "the same line"?

Deleting exact copies is easy — every tool does it. The hard part is deciding what to do when two segments differ by a tiny amount:

This is a real limit, not a hypothetical one — the same one AutoCAD users hit with OVERKILL's tolerance and Rhino users hit with SelDup. Any tool working to a fixed tolerance walks straight past lines whose endpoints differ by a few thousandths of a millimetre unless you widen it — and widen it too far and it starts merging things you meant to keep. Without seeing what a given setting removes before you commit, you are guessing, and a wrong guess silently corrupts the part.

Remove duplicate lines online, with Razoar

Razoar is a browser-based DXF cleaner that removes duplicate and overlapping lines without a CAD licence and without uploading your file anywhere:

  1. Drop your file into the app — no signup required for the preview.
  2. The live preview highlights exactly which segments will be removed, overlaid on your drawing, so you see the result of the current tolerance before committing to anything. This takes the guesswork out of the tolerance: you adjust the slider and watch what disappears in real time.
  3. Razoar removes exact duplicates, detects partial overlaps (a short segment sitting on a longer one) and near-duplicates from tracing or projection, and merges collinear segments into a single line.
  4. Export the cleaned file and send it to your laser, CNC, or plotter.

Because Razoar rewrites the file itself, the problem does not come back when you reopen or share it — unlike a deduplication done at cut time inside the laser software, which leaves the source file dirty.

Your file never leaves your browser: the cleaning runs locally via WebAssembly, so confidential drawings stay on your machine — no upload, no server, no account needed to preview.

How the options compare

AutoCAD OVERKILL Rhino SelDup LightBurn Delete Duplicates Razoar
Needs a paid licence Yes (AutoCAD / LT) Yes (Rhino) Yes (LightBurn) No
Runs online, nothing to install No No No Yes
Shows what will be removed first No Partial (selects only) No Yes (live preview)
Catches near-duplicates (traces, projections) With tolerance tuning No No Yes (tolerance you control and see)
Removes partial overlaps Yes No No Yes
Merges collinear segments Yes No No Yes
Fixes the file (not just the cut) Yes Yes Yes Yes
File stays private / offline Yes Yes Yes Yes

Fix the file, not just the machine

The single most important habit: clean the DXF file, not the machine job. A "remove overlapping lines" toggle in your laser software may skip a redundant pass this once, but the source file stays dirty — and the problem returns the moment you reopen it, re-export it, or hand it to someone else. Cleaning the file upstream fixes it for every downstream tool, permanently.

If your specific symptom is a laser retracing contours, see our companion guide: Why does my laser cut the same line twice?

Remove the duplicates from your file →

More questions? See the FAQ.

Sources