How do I resize an SVG icon to a grid?
Upload the icon, choose a target grid like 16, 20, 24, or 32, and the SVG Icon Sizing Tool trims empty space, aligns the content, and exports a grid-ready SVG you can download locally.
Can I keep the artwork top-left instead of centered?
Yes. The tool supports both centered output and a top-left alignment mode, so you can match whichever convention your icon set uses.
Is this meant for large illustrations too?
No. The SVG Icon Sizing Tool is focused on icon-like SVG assets that need grid normalization, not large illustrations or complex scenes.
Does it upload my icon, and is it free?
No upload is involved. The tool runs entirely in your browser, your SVG stays on your device, and it is free with no signup.
Why does my icon touch the edges of the box?
Because the tool scales the artwork's bounding box to fill the grid, with no padding. Icon systems normally want a margin, for example a 20 unit live area inside a 24 unit box. Add that padding to the artwork in your editor, or run the icon onto a larger grid and set a smaller display size in CSS.
My strokes look thinner after normalizing. What happened?
The whole drawing is placed inside a group with a scale() transform, and strokes scale along with everything else. Coming from a 64 unit artboard down to a 24 grid multiplies every stroke width by about 0.375. Set the stroke-width to the value you want at the target grid, or add vector-effect="non-scaling-stroke".
Which grid should I pick?
Match whatever your design system already uses, because mixing grids is exactly what makes an icon set look inconsistent. 24 is the most common default in web and Android UI, 16 suits dense desktop toolbars and inline text, 20 is a common compromise, and 32 works for larger touch targets and settings rows.
Trim did nothing. Why?
Almost certainly because the SVG contains a transparent background rectangle covering the artboard. getBBox counts it as geometry, so the bounding box already fills the canvas and there is nothing to trim. Delete that rect in a vector editor and run the tool again.
Is the icon uploaded anywhere?
No. The measuring, rescaling, and export all run in your browser. The SVG is mounted off-screen inside your own page to measure its bounding box, then discarded.