SVG Optimizer
Choose an SVG file.
About this tool
The smaller file is still SVG.
This is a conservative cleanup. It is not the full SVGO plugin set.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Optimize SVG.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- This is a conservative cleanup. It is not the full SVGO plugin set.
A text deletion pass that never checks the drawing
What the sweep deletes
The optimizer reads the file as text. It removes HTML-style comments, the XML declaration, and metadata elements, including whatever those elements contained. It removes attributes whose names are in the sodipodi, inkscape, adobe, or sketch namespaces. It collapses whitespace between a closing angle bracket and the next opening angle bracket, then trims the ends. The result is saved as image/svg+xml. The status compares the character size before and after. That size drop is mostly editor debris and indentation, not a simpler path geometry.
Nothing in the sweep parses the document into shapes. It does not validate that the result is a well-formed drawing, that viewBox still matches the content, or that a comment removal accidentally ate a trick someone had used to hide markup. A broken file can get smaller and still be broken. The page will try to build a preview and, if that fails, preview the same text it is offering as the download. There is no quality slider. SVG is not a JPEG, and this pass does not rasterize.
What it leaves in place
Path data, gradients, groups, and presentation attributes that are not in that editor-namespace list stay as they were written, aside from the whitespace collapse between tags. A path can still contain extra decimals. A group can still contain an unused definition. Script elements are not on the deletion list. External references are not rewritten. This is not a full SVGO plugin set, and it will not perform the passes those plugins are known for: number rounding, path merging, or style inlining. If the drawing relied on an inkscape label only as metadata, losing that attribute is the point. If some other tool expected the inkscape attribute, the drawing can look the same and still fail that tool.
Check the picture after the text changes
Open the download. Confirm the marks you care about are still visible, especially filters, text, and symbols that lived near the metadata block. Because the operation is textual, two runs on an already swept file usually change nothing further. Raster converters sample whatever markup remains onto a pixel grid. Optimize first when you want the source text smaller, then rasterize once at the size you need. Do not treat a successful size reduction as proof the SVG still describes the same picture.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

