Toolsly
Minifier

SVG Minifier

SVG Minifier is a free online minifier that helps you minify SVG markup; strip comments, declarations and whitespace to shrink file size, all in your browser. SVG Minifier uses 2 input fields, returns 4 output values, and runs in your browser on the device.

Key facts

Inputs
2 fields: SVG markup and Aggressive (strip metadata, title/desc, editor namespaces)
Outputs
4 values: Minified SVG, Original size, Minified size, and Saved
Runtime
your browser on the device
Mode
Minifier
Privacy
Files and text stay in the browser session.
Cost
$0, no account required

How to use SVG Minifier

  1. 1

    Paste or fill in the input

    Enter your text or values into the input fields on the page.

  2. 2

    Run the utility

    Click Compute to run the utility in your browser and review the result.

  3. 3

    Copy the output

    Copy the output value you need from the result panel.

SVG Minifier details

First, enter SVG markup in SVG Minifier. Next, review Minified SVG, Original size, Minified size, and Saved. Additionally, SVG Minifier uses 2 input fields and 4 output blocks so the result is easy to scan and copy.

Paste SVG source and get a minified version with XML comments, the <?xml?> declaration and DOCTYPE removed, whitespace between tags collapsed, and attribute spacing tidied. Turn on aggressive mode to additionally strip <metadata>, <title>/<desc> blocks and editor-specific namespaces (Inkscape / Sodipodi) that bloat exported files. Reports original vs. minified size and the bytes / percentage saved. Runs entirely client-side; your markup is never uploaded.

Common searches

  • svg minifier
  • minify svg
  • svg compressor
  • compress svg
  • svg optimizer
  • optimize svg

Tools that work with the same formats — most users open one of these next.

Frequently asked

What is SVG Minifier?

SVG Minifier is a free online minifier that helps you minify SVG markup; strip comments, declarations and whitespace to shrink file size, all in your browser. SVG Minifier uses 2 input fields, returns 4 output values, and runs in your browser on the device.

What inputs and outputs does SVG Minifier use?

SVG Minifier uses 2 input fields: SVG markup and Aggressive (strip metadata, title/desc, editor namespaces). SVG Minifier returns 4 output values: Minified SVG, Original size, Minified size, and Saved.

Do my files and data stay private?

Yes. SVG Minifier runs entirely in your browser using your device's CPU. Files and text are never uploaded to our servers, so your data stays private.

How do I use SVG Minifier?

Open SVG Minifier, paste or fill in the input fields, and the result updates instantly. SVG Minifier runs in your browser with no upload and no waiting.

Which browsers does SVG Minifier support?

Any modern browser works in Chrome, Firefox, Safari, and Edge on desktop and mobile. SVG Minifier uses standard web APIs and does not require any plugin, extension, or sign-up.