SVG Optimizer
Clean up SVG markup and shrink the file size — strip editor bloat, keep the visuals identical.
About this tool
The SVG Optimizer strips out everything a design tool like Illustrator, Figma or Inkscape adds automatically but a browser never needs — editor metadata, comments, empty groups, unused IDs and redundant precision — without changing how the icon or illustration looks. Paste your SVG code or upload a .svg file, choose how aggressive the cleanup should be, and copy or download the result. Everything runs locally in your browser — your file is never uploaded.
How it works
- 1
Set your sizes
Enter a minimum and maximum font size, each tied to a viewport width.
- 2
Preview live
Drag the viewport slider to see the size scale in real time.
- 3
Formula is calculated
The tool converts your two points into one clamp() expression.
- 4
Copy the CSS
Paste the finished line directly into your stylesheet.
FREQUENTLY ASKED QUESTIONS
Standard JSON syntax errors — a missing comma, an unclosed bracket, a trailing comma, or an unquoted key — plus the exact line and column where it happened.
No. Everything is parsed and formatted locally in your browser — your data is never sent to a server.
Formatting adds indentation and line breaks so nested data is easy to read. Minifying strips all of that to produce the smallest possible file, ideal for an API response or production config.
No — this validates strict, standards-compliant JSON. Comments and trailing commas will be flagged as syntax errors, since they're not valid in plain JSON.
Need more than a free tool?
If you're ready for a real project — website, branding, or something custom — let's talk.