Extracted elements
The extractor returns each basic shape type, index, optional ID, and attributes as JSON.
Use cases
Use it to inspect icon structure, count primitive shapes, or separate simple geometry before editing.
Extract rect, circle, ellipse, line, polyline, and polygon elements from SVG markup.
Loading...
Page context
SVG Extract Shapes lists basic shape elements such as rect, circle, ellipse, line, polyline, and polygon.
The extractor returns each basic shape type, index, optional ID, and attributes as JSON.
Use it to inspect icon structure, count primitive shapes, or separate simple geometry before editing.
SVG Extract Shapes emits ready-to-paste code wrapped around your SVG — component structure, imports, and the markup itself, without editor noise.
Drop the output into your project the way the surrounding code expects: import the component, paste the snippet, or commit the file. The SVG keeps its viewBox, so sizing stays under your control.
Props, classes, and standard attributes remain yours to set. Generated wrappers pass through what the framework allows instead of hard-coding styles.
When the source SVG changes, regenerate rather than hand-editing the output — that keeps the component and the artwork from drifting apart.
Extract rect, circle, ellipse, line, polyline, and polygon elements from SVG markup.
Choose an SVG file, paste SVG markup, or load the sample to begin.