Tool guide
About this tool.
- The d attribute of an SVG <path> is a small language: a command letter such as M (move), L (line), C (cubic curve), Q (quadratic curve), A (arc) or Z (close), followed by its numbers. Uppercase letters use absolute coordinates, lowercase letters are relative to the current point.
- This tool reads path data, a <path> element or an SVG document with one path, and rewrites it: one command per line, absolute or relative, minified, moved or scaled. It also measures the result and draws it with every end and control point.
- Everything runs in your browser. Nothing is uploaded.
- Format and Absolute make a path easy to read and diff. Relative and Minify make it short for inline icons and data URIs.
- Translate adds Offset x and Offset y to every point. Scale multiplies by Scale x and Scale y; a negative factor mirrors the path. When Scale x and Scale y differ, arcs cannot stay arcs, so each one becomes cubic Béziers of at most 90° and the summary says so.
- Precision rounds every number in the output, from 0 to 6 decimals. The box, length and points are measured on the rounded path, so they match what you copy.
Paste path data such as M10 10 L 90 90, a <path> element or an SVG document with one <path>.
Pick an operation: Format, Absolute, Relative, Minify, Translate (Offset x, Offset y) or Scale (Scale x, Scale y). Set the precision from 0 to 6 decimals.
The preview draws the result on a checkerboard with end points as circles and control points as squares. Switch Display between stroke and fill.
Copy the new path data, or save path.svg sized to the bounding box and path.json with every command in written and absolute form, the box and the length.
- M0 0L10 10 with Relative → "m0 0\nl10 10".
- m0 0l10 10 with Absolute → "M0 0\nL10 10".
- M 0.50 0.50 L 1.00 0.00 with Minify → "M.5.5 1 0".
- M0 0L10 10 with Translate, Offset x 5 and Offset y 2 → "M5 2\nL15 12".
- M0 0L10 20 → "2 commands · 2 segments · 1 subpath · 10×20 at 0,0 · length 22.361".
- An SVG with three <path> elements → "Found 3 <path> elements; paste one path or its d attribute."
- Everything runs locally; no path is uploaded.
- Exactly one <path> is read from SVG markup; transforms are ignored with a note.
- Path data follows the SVG 2 grammar, including exponents and compact arc flags such as a1 1 0 00 1 1.
- The first invalid character is an error with its position; nothing is drawn up to it.
- Non-uniform scaling converts arcs to cubic Béziers; uniform scaling keeps them.
- Limits: 100,000 characters, 20,000 segments, precision 0 to 6, offsets up to ±1,000,000, scale factors from ±0.001 to ±1,000.
- The preview marks up to 2,000 points; dragging points is not supported yet.