Files stay on your device Use SVG Minifier ↓

SVG Minifier Online — Free & Private

Remove XML comments and insignificant document-edge whitespace from SVG. Free, private, and processed entirely in your browser — no upload, no account, no file ever leaves your device.

No sign-up required Files stay on your device Works offline once loaded

Remove XML comments and insignificant document-edge whitespace from SVG.

Inputs and example for SVG Minifier

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><!-- comment --><rect width="10" height="10"/></svg>

Supported scope: Conservative comment removal only; geometry, IDs and text spacing are preserved. This is not an SVG sanitizer. Downloaded SVG can still contain source scripts or links.

Remove XML comments and insignificant document-edge whitespace from SVG.

  1. Enter the labeled values or edit the example.
  2. Run the operation and inspect the result.
  3. Review and copy or download the result.

Privacy proof for SVG Minifier

This tool processes input in your browser. Open DevTools → Network while you run it to check the requests. Some tools need downloaded libraries on their first use.

Popular available tools for everyday tasks. Browse categories or search the full catalog.

Star any tool — it appears under Favorites on this device.

Available tools process your files and text on your device. Choose the operation you need, check its supported inputs and limits, and keep the original file until you have reviewed the result. PDF compression offers a lossless mode and optional image-based modes; image-based exports lose selectable text. Scanned PDFs need OCR for text extraction. OCR language models may need an initial download. Some catalog operations are still being completed and are clearly marked as unavailable. A current browser and sufficient device memory are required. Optional sign-in stores activity metadata, not your documents.

What inputs and assumptions does this operation use?

Conservative comment removal only; geometry, IDs and text spacing are preserved. This is not an SVG sanitizer. Downloaded SVG can still contain source scripts or links.

Is my input uploaded?

No. The operation runs in this browser tab.

From our blog: How to Use SVG Minifier Online (Free & Private)