Esta página aún no está traducida al español, así que la mostramos en inglés.

SVG ViewBox & Path Scaler

Normalize icons to a new viewBox (e.g. 24×24) by rescaling the actual coordinates inside every path, circle, rect and polygon — no transform="scale()" hacks.

Actualizado el
Scaled SVG

Before

After

Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

Cómo usar: SVG ViewBox Scaler

  1. Paste an SVG that has a viewBox (or width and height).
  2. Enter the new viewBox size — e.g. 24 × 24 to match an icon set.
  3. Choose precision and whether stroke widths should scale too.
  4. Copy the result; both previews should look identical, only the numbers change.

Why rescale coordinates instead of using transform?

Icon sets work best when every icon shares the same viewBox (24×24, 20×20, 16×16…), so they align and stroke widths look consistent. Wrapping an icon in <g transform="scale(0.5)"> works visually, but it leaves odd numbers in the source, scales strokes unpredictably and breaks tools that read path data. Rescaling the coordinates produces clean SVG that behaves like it was drawn at the new size.

What gets scaled

  • Path data (d) — all commands, absolute and relative: M, L, H, V, C, S, Q, T and A. For arcs, radii scale while the rotation and flags are preserved.
  • x, y, cx, cy, x1…y2, width, height, rx, ry, r and points.
  • Optionally stroke-width and font-size.
  • A viewBox that doesn’t start at 0 0 is shifted to 0 0.

Limitations

Elements with their own transform attribute keep it unchanged, and percentages or CSS-based sizes aren’t converted — flatten transforms in Figma/Illustrator (or SVGO’s convertTransform) first for exact results. Non-uniform scaling (different X and Y factors) approximates circle radii with the average factor.

Next steps: clean and paste the icon into Webflow with SVG to Webflow, or convert it for React with SVG to JSX.

También se busca como: svg viewbox, scale svg path, resize svg coordinates, normalize icons, svg 24x24, path transform.

Herramientas que combinan con: SVG ViewBox Scaler

  • SVG to CSS Converter — Paste an SVG and get a compact, URL-encoded data URI plus ready-made background-image and recolorable mask-image CSS.
  • Aspect Ratio Calculator — Resize images and videos without distortion: fill in a ratio and one side to get the other, or enter a size to find its ratio — with ready-to-paste CSS.
  • Generador de favicons — Crea un paquete completo de favicones a partir de un logotipo, una letra o un emoji: un archivo favicon.ico con varios tamaños, un icono táctil de Apple, iconos para Android y PWA, un webclip de Webflow, el manifiesto web y las etiquetas HTML para pegar.
  • CSS Animation Generator — Design CSS animations on a real keyframe timeline.

Preguntas frecuentes

How do I change an SVG from 512×512 to 24×24?
Paste it, enter 24 and 24 as the new viewBox size and copy the result. All coordinates are multiplied by 24/512.
Will my icon look different?
No — the shape is identical, just expressed in a different coordinate system. Stroke widths scale proportionally unless you turn that off.
Why keep stroke-width unscaled?
If you want consistent 1.5 or 2px strokes across an icon set after normalizing, untick “Scale stroke-width” and set the stroke width yourself.
What about transforms?
Existing transform attributes are left as they are, and you’ll see a warning. Flatten them in your design tool for fully clean output.
¿Puedo instalar SVG ViewBox Scaler como aplicación web y utilizarla sin conexión?
Sí. SVG ViewBox Scaler es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

Herramientas relacionadas