Web Dev
SVG Path Analyzer
Parse and analyze SVG path commands.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type SVG Path Analyzer and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Analyze, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| Show command breakdownList all path commands | On or off | On |
| Simplify pathConvert relative to absolute commands | On or off | Off |
| Generate complete SVGOutput as complete SVG element | On or off | Off |
Example
Real output from Devly, with the default options.
Input
M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80
Total commands
3
Bounding box
10.0, 80.0 → 180.0, 80.0 (170.0 × 0.0)
Command summary
C: 1, M: 1, S: 1
1. M
Move to (absolute) (10.00, 80.00)
2. C
Cubic Bézier curve (absolute) (40.00, 10.00, 65.00, 10.00, 95.00, 80.00)
3. S
Smooth cubic Bézier (absolute) (150.00, 150.00, 180.00, 80.00)
From Terminal
With the free command-line tool installed:
Terminal
devly svgpath "M10 80 C 40 10, 65 10, 95 80 S 150 150, 180 80" # or pipe text in pbpaste | devly svgpath
Quick Switch also finds it by: svg, path, vector, graphics, d, bezier.