Otimizador de SVG
Limpe o código SVG e remova metadados desnecessários.
Otimizador de SVG
Como usar Otimizador de SVG
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.
- Cole a fonte no editor de entrada ou carregue o exemplo integrado.
- Verifique o formato de origem antes de executar a operação.
- Execute o otimizador de SVG, revise a saída e use os controles disponíveis para copiar ou baixar.
O que esta ferramenta suporta
Limpe o código SVG e remova metadados desnecessários.
Limites e processamento
As imagens são limitadas a 32 megapixels e 16,000 pixels por lado. A maioria das operações aceita uma fonte; as operações em lote compatíveis geram um arquivo ZIP.
Fonte de exemplo
<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>
Perguntas frequentes
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.
Onde minha entrada é processada?
Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.
Quais são os limites de entrada?
As imagens são limitadas a 32 megapixels e 16,000 pixels por lado. A maioria das operações aceita uma fonte; as operações em lote compatíveis geram um arquivo ZIP.