SVG Optimizer
Make SVG files smaller without changing how they look. Before and after side by side, many files at once, and code for CSS and React.
Make SVG files smaller without changing how they look. Before and after side by side, many files at once, and code for CSS and React.
Used SVG Optimizer? Share how it went to help others.
About this tool
SVG Optimizer makes SVG files smaller while keeping the picture the same. Drawing programs write a lot into an SVG that no browser needs: comments, editor settings, metadata, layers without content, default values, and coordinates with six or more decimals. This tool reads the file as a document, removes what has no effect, and writes the rest in a shorter form. Paths are rewritten with fewer signs, numbers are rounded to the number of decimals you choose, and rounding errors in relative paths are corrected so that they do not add up along a long outline. Colors are shortened, so #FFCC00 becomes #fc0. The example on the page goes from 767 to 287 bytes, 63 percent less. You see the picture before and after next to each other, with a list of what was removed; if a detail changes, use one more decimal. Options let you remove IDs and classes that nothing refers to, drop the fixed width and height so that the picture scales with its place, and remove scripts and event handlers, which is wise for files from other people. IDs that gradients, masks, links, styles or animations use are always kept, and files that contain styles or animations are treated with extra care. Titles are kept unless you choose otherwise, because screen readers read them. Open or drop up to 100 files at once, look through them in a list, and download all of them as a ZIP. Besides the SVG you can copy a CSS background, an image tag, or a React component with attribute names already changed. Old editors sometimes need the removed data to edit the drawing again, so keep your original. Everything happens in your browser. Scripts in a file are never run, and nothing is uploaded.

Up to 100 at once.
Decimals, IDs, size and titles.
Before and after, side by side.
SVG, ZIP, CSS or React.
Before and after next to each other.
Errors do not add up.
A ZIP with all of them.
Gradients, masks and links stay intact.
Lighter pages, cleaner code
Make icons and logos load faster.
ExampleThe example goes from 767 to 287 bytes.
Keep HTML and JSX readable.
ExampleCopy the React component.
Clean files from drawing programs.
ExampleLayers and editor data are removed.
Treat a whole folder.
ExampleDrop 80 icons and download the ZIP.
Remove scripts and handlers.
ExampleBefore you put an SVG on your site.
Use a pattern in CSS.
ExampleCopy the background-image line.
Small and sharp
For icons drawn at 24 or 48 units even one will do.
Without it an SVG cannot scale.
You may want to edit the layers later.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed SVG Optimizer and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 25 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.