SVG path editor
Edit SVG path data visually
See what a d attribute actually draws: every command, anchor point and Bézier handle. Drag points into place, then round, transform and minify the result.
Runs in this tab. Nothing is uploaded.
Canvas
Transform
Output
Commands
Reading and editing path data
A path is a list of commands. Upper-case letters use absolute coordinates, lower-case ones are relative to the current point: M moves, L/H/V draw lines, C/S are cubic Bézier curves, Q/T quadratic ones, A draws an elliptical arc and Z closes the shape. Numbers after a command repeat it, so M0 0 10 10 is a move followed by a line; the list shows such implicit commands in a lighter colour.
- Points: orange squares are anchors the path passes through; cyan circles are Bézier handles. Dashed handles are reflections implied by
SandT. Drag a point, or Tab to it and use the arrow keys. Moving an anchor carries its handles along. - To absolute / To relative rewrite every command without changing the shape. Relative paths are often shorter and easier to move.
- Move, Scale and Flip change the coordinates themselves, so no
transformattribute is needed. Arcs are transformed exactly. - Round limits the decimals. Relative coordinates are rounded against the rounded position, so errors don’t add up along the path.
- Minified output drops repeated letters, spaces and leading zeros, and picks absolute or relative per command, whichever is shorter.
Questions
Can I edit a path from a full SVG file?
Yes. Open or paste the SVG and pick one of its paths from the list. Copy the result back as a d attribute or as a complete path element.
Why do arc flags look squashed together?
SVG lets the two arc flags be written without spaces, as in a5 5 0 1010 0. The parser understands that compact form; the output always separates them for readability and compatibility.
More SVG tools
- SVG RepairDiagnose and fix broken XML, missing xmlns or viewBox, editor junk, bad IDs and scripts.
- SVG OptimizerSVGO with plugin toggles, precision and multipass. Batch files and download a ZIP.
- SVG ViewerZoom and pan on a checkerboard or colour, see dimensions, file size and the element tree.
- SVG to PNGExport PNG, JPG or WebP at 1× to 8× or an exact width, with any background.
- SVG to JSXTurn an SVG into a React component with camelCase props, style objects and TypeScript.
- SVG to Data URIMinimal URL-encoding or base64, ready-made CSS background-image snippets, size comparison.
- SVG SanitizerRemove scripts, event handlers, javascript: links, foreignObject and external references.
- SVG Path EditorInspect path commands, drag points and handles, convert absolute ↔ relative, round and minify.
- SVG Sprite GeneratorCombine icons into one <symbol> sprite with IDs from file names and a usage snippet.