Does optimizing change how the SVG looks?
No. The SVG Optimizer cleans and minifies the markup without changing how the file renders, so the optimized SVG should look the same as the original.
Can I paste SVG code instead of uploading a file?
Yes. The tool supports both file upload and paste-first SVG markup, so you can optimize code copied directly from an editor.
Does it upload my SVG to a server?
No. The SVG Optimizer runs entirely in your browser, so your file stays on your device and is never uploaded.
Is the SVG Optimizer free?
Yes. It is completely free with no signup, and it works fully offline in your browser once the page is loaded.
Why is the output all on one line?
The serializer is set to no pretty printing and zero indentation, so whitespace between attributes and elements is gone. That is the right shape for a file you ship, because gzip and Brotli work on the compact form. If you need to read a diff, run it through your formatter after export.
Will the optimized SVG look identical?
Visually yes for static artwork, because the plugin set is limited to lossless cleanup plus 3-decimal numeric rounding. The two cases where behaviour can change are ids that other code depends on, and inline styles converted to presentation attributes that external CSS can now override.
Is my file uploaded anywhere?
No. The markup is parsed, sanitized, and optimized entirely in your browser tab. Nothing is sent to a server, which also means it is safe to paste unreleased brand assets into the textarea.
How much smaller should I expect the file to get?
It depends almost entirely on where the SVG came from. Editor exports from Illustrator, Figma, Sketch, and Inkscape carry metadata, comments, editor namespaces, and empty groups, and those often make up a large share of the bytes. An SVG that was already hand-written or already passed through SVGO may barely shrink.
Does it remove the width and height attributes?
No. The optimizer keeps width, height, and viewBox. If you want width and height gone so the icon sizes itself from CSS, use the Inline SVG Cleaner, which runs the same optimization and then drops those two attributes.
Can I paste markup instead of uploading a file?
Yes. Paste into the SVG markup box and press Use pasted SVG. The paste path is the faster one when you are copying straight out of a design tool or a component file.