Minifies SVG (removes comments, declarations, whitespace).
The SVG Optimizer minifies SVG markup directly in your browser, stripping out XML declarations, DOCTYPE lines, comments, and unnecessary whitespace. It's a quick way to compress and clean up SVG files before embedding them inline, shipping them in a bundle, or pasting them into code. Paste your SVG and get a smaller, single-line output without any setup.
No. The optimizer runs entirely in your browser using client-side JavaScript, and nothing is uploaded or stored on any server. The whole site is open source so you can verify this yourself.
It removes XML declarations (<?xml ... ?>), DOCTYPE declarations, and comments (<!-- ... -->), then collapses whitespace between tags and reduces any run of whitespace to a single space before trimming the result.
No. It only strips comments, declarations, and extra whitespace. Path data, attributes, and element structure are left untouched, so the rendered image stays the same.
No. This is a lightweight whitespace and comment minifier, not a full geometry optimizer. It does not round coordinates, remove unused attributes, or merge shapes.
There is no fixed limit, but because everything runs in your browser, very large SVGs depend on your device's available memory and may process more slowly.