SVG Path Debugger & Visualizer
Inspect, visualize and normalize SVG path data
Path data
Paste the d attribute of a path element. It stays in this tab and is not saved.
Preview
Commands
Related Tools
How to use
- 1.Paste path data or load an example.
- 2.Read the path summary and any errors or warnings.
- 3.Hover or select a row in the command table, or click the path, to highlight a segment with its anchors and control points.
- 4.For an arc, check the ellipse, its center, the flags and the sweep direction in the selected segment.
- 5.Choose coordinates, precision, spacing and expansions, then copy the normalized path data or download an SVG.
What is the SVG Path Debugger?
SVG Path Debugger & Visualizer parses the d attribute of an SVG path element and shows every command on a canvas and in a table. It resolves relative coordinates, implicit repeats, smooth S and T reflections and elliptical arcs, then reports exact syntax errors with the character position, what was expected and what was found. Everything runs in your browser; the path data is not uploaded or saved.
Syntax it understands
Separators are optional, so M10-20, M.5.6, M1e2 2e2 and M10,20 are all valid. Numbers can use exponents. Arc flags are single characters and may be packed together, as in a1 1 0 0110 10. Coordinate pairs after a moveto become lines, and every other command repeats when more numbers follow. Parsing stops at the first error and the valid part before it is still drawn, just as browsers do.
Geometry and metrics
The bounding box is computed analytically from curve extrema and arc angles, not from samples. Arc length uses adaptive numerical integration, and circular arcs are exact. Arcs use the SVG 2 center parameterization: radii that are too small are scaled up, a zero radius is drawn as a line, and an arc whose ends coincide is skipped. Browsers flatten curves, so getTotalLength can differ slightly.
Privacy and safety
Only path data is accepted, never SVG markup. The preview is drawn by the tool from its own parsed commands, and the downloaded SVG is a minimal wrapper built around the normalized path. Your input is not stored; only the canvas display toggles are remembered on this device.
Frequently asked questions
- Why does my path stop drawing at a certain point?
- SVG renders path data only up to the first syntax error. The debugger reports that error with its character position, what it expected, such as an x coordinate or an arc flag, and what it found instead, and it draws the same valid part that a browser would.
- How do I convert a relative SVG path to absolute coordinates?
- Paste the path and choose Absolute under Coordinates. The normalized output rewrites every command with absolute values while your input stays unchanged. You can also expand H, V, S and T into L, C and Q, and round to a fixed number of decimal places.
- Is my SVG markup uploaded or rendered?
- No. The tool accepts path data only, parses it in your browser and draws the preview from its own parsed commands. The downloadable SVG is a minimal wrapper built around the normalized path, and the input is not saved.
