SVG minify / to PNG

Clean up SVG markup by stripping comments, declarations and extra whitespace, and export the SVG to a PNG at 1×–4× scale — all in the browser.

Clean up SVG markup by stripping comments, declarations and extra whitespace, and export the SVG to a PNG at 1×–4× scale — all in the browser.

How to use

  1. Paste your SVG source
  2. See the minified output and how much was saved
  3. Pick a scale and download a PNG
  4. Copy the minified SVG

Frequently asked questions

What does the minifier remove?

XML declarations, DOCTYPE, comments and redundant whitespace between tags — a light cleanup, not a full SVGO optimization.

How is the PNG generated?

The SVG is drawn onto a canvas at the chosen scale and exported as PNG, entirely in your browser.

My SVG has no width — will export work?

Give the SVG a width/height (or viewBox with sensible size) for reliable rasterization; otherwise a default size is used.