You downloaded an SVG icon and need to change a stroke, nudge a node, or fix its alignment without breaking the file. This guide shows the two practical ways to do that — editing the raw markup by hand, and editing the geometry visually in IconVectors — so you can pick the faster one for the job and export a clean asset.
Use code edits for one-attribute tweaks; use a visual editor when you are moving nodes, normalizing strokes, or shipping icons across a set. Both keep you in control of the final SVG.
Method 1 - Edit SVG icons with code
You can edit SVG directly in code by changing the geometric or paint attributes on the elements themselves:
pathdata ind=""stroke-widthstrokeandfillcolors- line caps and line joins
<path d="M4 12L20 12" stroke="black" stroke-width="2" fill="none" />
This works, but it becomes hard to manage quickly:
- Path data is not human-friendly - the syntax is compact, but not easy to reason about visually.
- Alignment is difficult - it is easy to move one segment off-grid and not notice until the icon looks soft.
- Small edits can break consistency - one wrong node move or stroke change can make the icon feel uneven.
- Iteration is slow - every change requires another save, reload, and visual check.
For small tweaks, code editing is acceptable. For real icon production work, it is usually not the fastest or safest workflow.
Method 2 - Edit SVG icons with IconVectors
A dedicated icon editor pays off once a single attribute change is not enough. In IconVectors you drag nodes and shapes on the canvas, set stroke width and caps in the Control Bar, snap geometry to the pixel grid, and still read and export the underlying SVG — so you skip the guess-and-reload loop that raw path editing forces on every change.
Example workflow
- Import an SVG icon
Open your icon with File -> Open... (Ctrl+O). If you want to merge another SVG into the current document instead, use File -> Place Files (Shift+Ctrl+P). - Edit the shapes visually
Use the Selection Tool (V) to move and resize elements. If you need true node editing, convert the element with Path -> Convert to Path (Ctrl+B), then switch to the Path Edition Tool and move the anchor points directly. - Adjust stroke settings
Use the Control Bar to change stroke width, line caps, joins, fill, and stroke color. Turn on View -> Snap to Grid (Shift+Ctrl+R) while refining the geometry so the icon stays sharp at small sizes. - Place the icon cleanly
Use Element -> Align and Element -> Center -> Center Both (Alt+X) to keep the composition balanced on the canvas. - Inspect and export clean SVG
Open the live Source Code Viewer with View -> Source Code (F3) to inspect the current SVG while you work. Keep an editable master with File -> Save As... (Shift+Ctrl+S), then export production SVG with File -> Export -> Export Minified (Shift+Ctrl+M). If you need raster output, use File -> Export -> Export to Bitmap (Ctrl+F3).
Which method to use
- Edit the code for a one-off change to a known attribute — swapping a
fillcolor, bumpingstroke-widthfrom 1.5 to 2, or fixing a single coordinate. - Edit visually when you are reshaping paths, re-aligning to the grid, normalizing strokes across several shapes, or preparing a whole set for handoff. Off-grid paths and mismatched strokes are easy to miss in
d=""but obvious at small sizes in a toolbar.
Either way, keep an editable master and export a minified SVG so the asset stays readable and easy to version in your repo.
Related guides
Start Making SVG Icons Today with IconVectors
Download the fully-functional 30‑Day Free Trial and unlock your icon design workflow.
Version 1.70 for Windows and macOS