About SVG Optimizer
SVG files exported from drawing programs carry data that browsers do not need: XML declarations, comments, editor namespaces, and coordinates with many decimal places. This optimizer strips those with text rules, rounds every decimal number to the precision you choose, and collapses whitespace between tags. It does not merge paths or rewrite shapes as a full optimizer such as SVGO does. Removing the title element also removes the accessible name of the image.
How to use SVG Optimizer
- Type or paste into the "SVG code" box, or press "Use example" to try it with sample data.
- Set "Decimal places to keep" and "Remove title, description, and editor metadata" if the defaults do not fit.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about SVG Optimizer
How many decimal places are safe to keep?
Two decimals are usually invisible for icons drawn in a viewBox of about 24 units or more. Very small viewBoxes or detailed illustrations may need three. Compare the preview before and after, and raise the setting if curves shift.
Runs in your browser. Page last updated .