Utility
SVG Cleaner
Inkscape sometimes leaves DXF-import junk in <defs> that breaks the cncfoam.com loader.
Drop your file(s) here — get a cleaned copy back. Everything runs in your browser; nothing is uploaded.
Drop .svg file(s) here
or · batch OK · stays in your browser
Results
What does it strip? (click for details)
- <symbol id="*…"> — DXF-export placeholders. The leading
*is an invalid XML id character and is the #1 reason an Inkscape-exported SVG fails to load. - <inkscape:path-effect> — Live Path Effects (fillet/chamfer etc). The visible path is fine on its own; the LPE entry isn't needed.
- <pattern id="Hatch…"> — DXF hatch leftovers, never referenced.
- <marker id="DistanceX…"> — DXF dimension-line arrow leftovers.
- Unused defs — anything in
<defs>that nothing in the document references viaurl(#…),href="#…", orxlink:href="#…". - xml:space="preserve" on the root
<svg>.
If a file can't be parsed at all (broken XML, not actually an SVG, etc.) it's listed in red with the exact reason.