Ottimizzatore SVG
Pulisce il markup SVG e rimuove i metadati non necessari.
Ottimizzatore SVG
Come usare Ottimizzatore 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.
- Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
- Controlla il formato di origine prima di eseguire l'operazione.
- Esegui l'ottimizzatore SVG, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.
Cosa supporta questo strumento
Pulisce il markup SVG e rimuove i metadati non necessari.
Limiti ed elaborazione
Le immagini sono limitate a 32 megapixel e 16.000 pixel per lato. La maggior parte delle operazioni accetta un'unica origine; le operazioni in batch supportate producono un archivio ZIP.
Origine di esempio
<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>
Domande frequenti
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.
Dove viene elaborato il mio input?
Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.
Quali sono i limiti di input?
Le immagini sono limitate a 32 megapixel e 16.000 pixel per lato. La maggior parte delle operazioni accetta un'unica origine; le operazioni in batch supportate producono un archivio ZIP.