SVG Viewer / Editor
ImageView, analyze, sanitize, and optimize SVG files
Paste or upload an SVG to preview it visually next to its raw markup, which is the fastest way to review an icon before committing it. Sanitize mode strips embedded `<script>` tags and event handler attributes, a real XSS risk if you're ever rendering user-uploaded SVGs directly on a page, and optimize mode strips editor metadata, redundant path-coordinate precision, unused IDs, and comments similarly to what SVGO does, without touching the visual output. It's focused on viewing and cleaning SVG markup specifically; there's no raster conversion here, so turning an SVG into a PNG needs a separate tool. Everything (viewing, sanitizing, optimizing) happens locally, with nothing uploaded.
How to use SVG Viewer / Editor
- 1.Paste or upload an SVG to preview it visually alongside its raw markup, useful for reviewing an icon before committing it.
- 2.Run the sanitize option on an SVG from an untrusted source to strip embedded scripts and event handlers before using it in your app.
- 3.Optimize a designer-exported SVG to strip redundant metadata and shrink file size before shipping it to production.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/svg-minify \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"input": "<svg xmlns=\"http://www.w3.org/2000/svg\"><!-- comment --><rect width=\"10\" height=\"10\"/></svg>"}'REST covers optimize/minify only — sanitizing or analyzing/viewing an SVG is browser-only for now.
Get an API key from your dashboard · Full API docs →