<!-- Markdown version of https://ocxly.com/svg-optimizer.html · auto-generated, may lag the live page -->

# SVG Optimizer

Paste an SVG and strip the metadata, comments and editor namespaces that bloat files — then round long coordinates to shrink it further. The drawing is untouched, and nothing leaves your browser.

### How it works

Your SVG is parsed locally with `DOMParser`. The optimizer removes the weight editors like Illustrator and Inkscape leave behind — XML comments, `<metadata>`, and editor-specific namespaces and attributes (`inkscape:`, `sodipodi:`) — then rounds coordinate numbers to the decimal precision you choose and collapses whitespace. Because only cruft is removed, the drawing renders identically at a smaller byte size. A before/after size readout shows how much you saved.

---
*Source: [ocxly.com/svg-optimizer.html](https://ocxly.com/svg-optimizer.html) — OCXLY, free 100% client-side privacy-first tools. Free SVG optimizer — strip editor metadata and round coordinates to shrink SVGs, entirely in your browser.*
