Working with SVG Create the vector on a editor (Inkscape) Minify with SVGOMG, mainly: Style to attributes Clean ID Use inline in html. Create the id specifically on path that is to be used. Use the editor for visual help.