Most SVG icons you download are a single <path> element with a d attribute that looks like line noise: M4 12l5 5L20 6 . It is tempting to treat that string as a black box and regenerate the whole file whenever something needs to change. You don't have to. Once you can read the path commands, small fixes — nudging a corner, closing a gap, flipping a curve — take seconds and keep your file clean.
This guide walks through the commands you will actually meet, a workflow for editing them without breaking things, and a few habits that keep paths maintainable.
The commands that matter
The d attribute is a list of drawing instructions. Each instruction is a letter followed by numbers. Uppercase letters use absolute coordinates; lowercase letters are relative to the current point.…