Tip: URL-encoded data URIs are usually smaller than Base64 for SVG, but Base64 can be simpler in some contexts.
How to use
Use this tool to optimize and convert SVG safely without uploading files.
- Paste your SVG into the input box (or open a .svg file).
- Choose what to remove (comments, metadata) and pick an output format.
- Click Optimize & Convert.
- Copy the output or download it as a file.
FAQ
Is this SVG optimizer really client-side (no upload)?
Yes. The SVG is processed in your browser and never sent to a server.
What does the optimizer remove?
It can remove XML comments and optional <metadata>, <title>, and <desc>, plus whitespace-only text nodes between elements.
Will minifying break my SVG?
This tool uses a conservative minify (mostly between tags). If your SVG relies on unusual whitespace behavior, disable minify and keep only comment/metadata removal.
What is the difference between URL-encoded and Base64 data URIs?
URL-encoded data URIs are often smaller for SVG and readable; Base64 is more opaque but can be easier to paste in some contexts.
Can I use the data URI in CSS?
Yes. Paste the generated string into CSS, e.g. background-image: url(...).
Why do I get an SVG parse error?
The input must be well-formed XML with a valid <svg> root. Fix mismatched tags/quotes and try again.
Does this tool optimize paths or simplify shapes like SVGO?
No. It focuses on safe cleanup (comments/metadata/whitespace) and conversion to data URIs without heavy geometry rewrites.