✏️

SVG Minifier & Formatter

Beautify or compress SVG markup, preview the graphic in real time, and check for embedded scripts or event handlers. Runs in your browser.

100% Private & Secure

This tool runs in your browser.
Your data is never uploaded or stored.

Input SVG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Output

Formatted SVG will appear here...

SVG Preview

Enter SVG code above to see a live preview here.

How to use

  1. 1

    Paste SVG code or upload an .svg file.

  2. 2

    Click Format, Minify or check for security risks.

  3. 3

    Preview the result and download.

Frequently Asked Questions

What security risks does it check?
It looks for <script> tags, inline event handlers and external resource references.
Does it optimize SVG paths?
Basic minification removes whitespace and comments. Advanced path optimization is not included.

Related reading

Related Tools

View all tools