# Optimizador de SVG

> Limpia el marcado SVG y elimina metadatos innecesarios.

[Open tool](https://www.toolcabana.com/es/svg-optimizer) · [Imágenes y diseño](https://www.toolcabana.com/es/category/images-and-design)

Tool ID: svg-optimizer. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

SVG optimizer cleans pasted SVG markup by sanitizing it and removing metadata elements, comments and whitespace-only text, while keeping title and description elements. It shows the byte count before and after, previews the result and lets you download optimized.svg. Scripts, style attributes, embedded images and animations are stripped during sanitizing.

## Supported tasks (es)

Limpia el marcado SVG y elimina metadatos innecesarios.

## Steps (es)

1. Pega la fuente en el editor de entrada o carga el ejemplo integrado.
2. Comprueba el formato de origen antes de ejecutar la operación.
3. Ejecuta el optimizador de SVG, revisa la salida y usa los controles disponibles para copiar o descargar.

## Settings

No additional settings.

## Limitations (es)

Las imágenes están limitadas a 32 megapíxeles y 16,000 píxeles por lado. La mayoría de operaciones acepta una fuente; las operaciones por lotes admitidas producen un archivo ZIP.

## Example input

```text
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"><rect width="400" height="300" fill="#f5ede6"/><circle cx="200" cy="150" r="80" fill="#ed854b"/></svg>
```

## Privacy and connections (es)

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

## Questions (es)

### Does SVG optimizer change path data or round numbers?

No. It does not rewrite paths, merge shapes or reduce decimal precision. Savings come from removing metadata, comments, whitespace-only text and forbidden markup, so the size change depends on how much of that the file contains.

### Why did my SVG lose its styles after optimizing?

Style elements and style attributes are removed by the sanitizer, along with script, foreignObject, image, use, a and animation elements. Convert CSS styles to presentation attributes such as fill and stroke before optimizing to keep them.

### Is the optimized SVG safer to embed on a website?

The output is sanitized with DOMPurify's SVG profile, scripts are removed, and href attributes and external url() references are stripped. Internal references such as url(#gradient) are kept.

### ¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

### ¿Cuáles son los límites de entrada?

Las imágenes están limitadas a 32 megapíxeles y 16,000 píxeles por lado. La mayoría de operaciones acepta una fuente; las operaciones por lotes admitidas producen un archivo ZIP.

## Related tools

- [SVG to PNG](https://www.toolcabana.com/es/svg-to-png)
- [Gradient generator](https://www.toolcabana.com/es/gradient-maker)
- [Image to Base64](https://www.toolcabana.com/es/image-to-base64)
- [Contrast checker](https://www.toolcabana.com/es/contrast-checker)
