Why SVG files carry so much extra data
Drawing programs save more than the drawing: editor namespaces, layer names, comments, hidden elements, paths written with ten decimals and ids like “Layer_1-copy-3”. A browser needs none of it. The optimizer behind this page parses the file, removes what has no visible effect and rewrites the rest in its shortest form, so icons and illustrations often shrink by a third or more without any change in how they look.
Optimize an SVG in four steps
- Paste the SVG code into the left box or press Open SVG file.
- Set the number of decimal places and tick the options you need.
- Compare the two previews and read the saved size below the result.
- Press Copy or download the new file as .min.svg.
What each option does
- Decimal places rounds coordinates. Three digits are safe for icons; one or two suit large, simple shapes.
- Several passes repeats the clean-up until nothing more can be saved.
- Shorten ids renames the ids that are used and drops the rest. Turn it off for inline SVG whose ids are styled or scripted elsewhere.
- Remove width and height lets the image scale with its container, provided a viewBox is present.
- Remove scripts deletes script elements and event attributes, useful before you embed an SVG from an unknown source.
Checks before you replace the original
Optimization is safe for most files, but aggressive rounding can nudge hairlines, and removed ids can break CSS or animations that point at them. That is why the page shows the original and the result side by side. Keep the original file until you have seen the new one in its real place.
Nothing is uploaded
The optimizer is loaded once and runs inside this tab. Your artwork never reaches a server, which matters for unreleased logos and client work.