SVG Optimizer
Optimize and minify SVG files by removing metadata, comments, and editor-specific attributes. Reduce file size without losing visual quality.
Options
How to Use
Optimize and minify SVG files by removing metadata, comments, and editor-specific attributes. Reduce file size without losing visual quality.
- 1Paste your SVG code into the input area, or click 'Load Sample' to try an example.
- 2Choose your optimization options: remove comments, metadata, editor attributes, XML declaration, and optionally strip unused IDs.
- 3Click 'Optimize' to process your SVG.
- 4Review the stats showing original size, optimized size, and percentage saved.
- 5Copy the optimized SVG output using the 'Copy' button and use it in your project.
Key Features
- Removes XML comments, metadata blocks, and editor-specific attributes (Inkscape, Illustrator)
- Optional removal of XML declaration and stripping of unreferenced id attributes
- Shows original size, optimized size, and savings percentage
- Removes xmlns:xlink namespace automatically when no xlinks are used
- All processing is done in your browser — your SVG never leaves your computer