SVG Tools

SVG Tools

Optimize SVG files by stripping metadata and compressing paths; format and pretty-print SVG markup; preview the rendered output at any size.

Ctrl+Enter to clean
Paste SVG source or drop a file to preview
Click Clean to generate optimized SVG output
Click "Generate CSS Background" to create a snippet

SVG Tools

Optimize SVG files by stripping metadata and compressing paths; format and pretty-print SVG markup; preview the rendered output at any size.

Common uses

  • Optimize an SVG icon to reduce its file size
  • Format and indent SVG markup for readability

Also searched as

  • svg cleaner online
  • reduce svg file size
  • remove svg metadata
  • remove comments from svg
  • pretty print svg
  • format svg code
  • svg viewer online
  • strip inkscape metadata from svg
  • combine svgs into a sprite sheet
  • svg symbol sprite generator
  • clean svg exported from illustrator
  • svg to css background image

Frequently asked questions

How do I reduce the size of an SVG file?

Paste or load the SVG in the Clean & Export tab and pick a preset. It removes comments, editor metadata and namespaces, and the aggressive preset also drops title/desc and default attributes, with a before and after size shown. It does not rewrite or compress path data.

How do I combine several SVGs into a sprite sheet?

Use the Sprite Sheet tab to combine multiple SVG files into one symbol-based SVG sprite, which you can then reference with <use>.

Can I pretty-print minified SVG?

Yes, the SVG source pane has a format button that indents the markup so it is readable, and the preview shows the rendered result.

Can I turn an SVG into a CSS background?

Yes, the Generate CSS Background button creates a background-image snippet from the cleaned SVG.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.