width, height and viewBox
An SVG's viewBox defines its internal coordinate system; width and height define how big it is drawn. Resizing correctly means changing the second and keeping the first:
<svg viewBox="0 0 24 24" width="96" height="96">…</svg>
This icon is drawn on a 24-unit grid and displayed at 96 × 96 px, four times its native size, with no loss of sharpness.
Related tools
Need a bitmap at a specific size? Use SVG to PNG. Too much empty space around the artwork? Use Crop SVG. For anything else, open the SVG editor online.