Clean and optimize SVG markup safely. Free, private, runs in your browser.
100% private — your files and text never leave your browser. All processing happens locally on your device.
Drop an SVG here, or click to browse
SVG files are XML and can contain scripts, event handlers, remote references, metadata, comments, and excessive numeric precision. This optimizer cleans common bloat while treating the input as untrusted.
The Phase 3 optimizer avoids aggressive path rewriting that could damage artwork. It focuses on safe removals, numeric rounding, whitespace cleanup, and a sanitized preview you can compare before download.
After optimization, the cleaned SVG can be copied to the clipboard or downloaded as a new file. The size report helps you decide whether the optimized version is worth replacing the source.
The tool parses SVG as untrusted XML and removes scripts, event handlers, unsafe URL values, and remote references before previewing the optimized file.
No. Phase 3 uses a conservative local XML optimizer to avoid extra bundle weight while still cleaning common SVG bloat and unsafe content.
Yes. The preserve viewBox setting is on by default because removing it can break responsive SVG scaling.
Some tiny SVGs are already compact, and pretty output can add whitespace. Compare the size report before replacing your source.
No. Paste or upload SVG text, optimize it, preview it, copy it, and download it entirely in the browser.