SVG Path Viewer & Editor.
Preview SVG path data, drag its points, convert between absolute and relative commands, minify, scale and measure it.
Runs in your browserAbout SVG Path Viewer & Editor
The SVG Path Viewer & Editor makes the cryptic d attribute of an SVG path readable and editable. Paste path data, or a whole <path d="…"> element, and the shape is drawn on a grid with every end point and Bezier control point shown as a handle you can drag; the path text updates as you move them. Each command is listed in a table with its absolute coordinates, so you can find the segment that spoils an icon. The tool converts the path to all absolute commands, to all relative commands, and to a minified form that picks the shorter of the two for each segment, drops redundant command letters, separators and leading zeros, and rounds to the number of decimal places you choose; icon paths often shrink by a quarter or more. Scale and translate rewrite the coordinates themselves, including arc radii, which is how you move an icon from a 512 to a 24 unit grid without a transform attribute. The bounding box is computed exactly from curve extrema rather than from control points, and an SVG snippet with a tight viewBox is generated. For example, the heart icon in the example fits a 20 by 18.35 box. Typical mistakes are rounding to zero decimals on small icons, which distorts curves, and forgetting that a lowercase command is relative. Syntax errors show the line and column. Everything runs in your browser.
How to Use
- Paste the path data or a <path> element.
- Drag points on the preview or set precision, scale and translation.
- Copy the minified, absolute or relative path, or the full SVG.
Frequently Asked Questions
What is the difference between absolute and relative commands?
Uppercase commands (M, L, C) use coordinates from the origin; lowercase ones (m, l, c) are offsets from the current point. Both draw the same shape.
Does minifying change the shape?
Only by rounding. With 2 or more decimal places the result is visually identical for typical icons; check the preview when you lower the precision.
How is the bounding box calculated?
From the end points plus the exact extrema of each quadratic and cubic Bezier segment; arcs are sampled finely. Stroke width is not included.
Is my SVG uploaded?
No. Parsing and rendering happen in your browser.
Related Tools
Drag polygon points or pick a preset shape and copy the CSS clip-path for images and sections.
Drag the handles of a CSS cubic-bezier easing curve, preview the motion and copy the timing function.
Set each corner radius, including elliptical corners, and copy the shortest CSS or Tailwind classes.
Format, minify, and validate XML.
Build linear, radial and conic CSS gradients with a live preview, OKLCH interpolation and Tailwind output.
Design soft, layered or inset CSS box-shadows with a live preview and Tailwind output.