Product Design, Manufacturing & Innovation Resources
Home » Online Tools » Online SVG Optimizer

Online SVG Optimizer

Just upload any SVG file or paste its code, and you’ll get many tools to optimize and simplify your original shape to gain the extra Octet or Ko.

Note that it worth a lot for complex SVG, but if your SVG comes from a famous icon supplier or similar, you won’t improve much as they already did it.

Also useful to inspect suspicious SVG, as it can contain a bit of anything but shapes and colors.

Disciplines: Web development, Graphic design, UI design.
Free alternative to Adobe Illustrator SVG export, Scour, SVGO CLI.
Online SVG Optimizer compared with Adobe Illustrator SVG export, Scour and SVGO CLI
Online SVG Optimizer (SVGOMG)Adobe Illustrator SVG exportScourSVGO CLI
Technical basis: The page is a graphical front end to SVGO and states that it is powered by SVGO v4.0.0. About 50 toggles cover metadata, comments, hidden elements, number rounding, path merging and style minification.Technical basis: Illustrator writes SVG from the artwork and offers export options, among them a Minify option that generates code with minimal IDs, indents, lines and spaces. It does not run a post-processing plugin chain comparable to SVGO.Technical basis: A Python optimizer that cleans and shortens SVG. It offers fewer switches than SVGO and the latest PyPI release listed is 0.38.2 of November 2020.Technical basis: A Node.js library and command line tool with a plugin architecture, a default preset, and a configuration file (svgo.config.mjs). It is the engine behind the online page.
Inputs and outputs: You open a file or paste markup, change options, and compare the original with the result. Settings include Prettify markup, Compare gzipped, Multipass, and number and transform precision.Inputs and outputs: Output is produced from the open document through File > Export > SVG, either per artboard or for a selection. Adobe advises against reopening the exported SVG in Illustrator for edits and recommends editing the original .ai file.Inputs and outputs: Input and output are files: scour -i input.svg -o output.svg. A .svgz extension on the output gives a compressed file.Inputs and outputs: Takes single files, lists of files or whole folders (recursive option), and writes to named outputs.
Control and repeatability: Settings are set by hand in the page and suit one file at a time. There is a reset-all button to return to defaults.Control and repeatability: Choices are made in the SVG Options dialog at each export, tied to the artwork workflow.Control and repeatability: Flags can be repeated in scripts and applied to batches of files.Control and repeatability: A configuration file lets a team keep identical settings, and individual plugins of the default preset can be enabled, disabled or modified.
Security handling: The page offers a toggle to remove scripts. This helps to inspect a file from an unknown source, but it is an optimization setting and not a dedicated sanitizer.Security handling: Illustrator does not claim to clean third-party SVG files for security, since it exports your own artwork.Security handling: The documentation checked does not describe script removal, so do not count on it for security.Security handling: A removeScripts plugin deletes script elements and event attributes such as onload and onclick, and collapses anchor elements. The plugin documentation warns that it breaks interactive SVG that depends on JavaScript.
Licence and cost: Free web page, MIT licence for the source code. The page does not state a privacy policy or whether files stay in the browser.Licence and cost: Needs an Adobe subscription. The Illustrator single-app plan is a paid subscription on an annual plan billed monthly, as listed on the Adobe plans page.Licence and cost: Free, Apache License 2.0.Licence and cost: Free, MIT licence.
When to choose it: Choose it to tune a single complex SVG and see the effect on size immediately. Gains are small on files that an icon supplier has already optimized.When to choose it: Choose it when the SVG is created in Illustrator and a cleaner export is enough.When to choose it: Choose it for a Python-based pipeline with simple needs.When to choose it: Choose it for build automation and repeatable team settings in a Node.js project.

Topics covered: SVG, optimization, simplification, file size, Octet, Ko, complex SVG, icon supplier, inspection, suspicious SVG, shapes, colors, web graphics, vector graphics, performance, efficiency, security ISO/IEC 29500, ISO 32000, SVG 11, ISO/IEC 14496-22, and W3C SVG..

Privacy: we have no feedback of potential problem with this tool and author. But like many online services, you are here providing them with your own data. Depending of the criticity of your data, this is your responsibility to assess author's reputation and potential misusage, and to check and accept their terms and conditions, or not.

More 2D Graphics tools

Suggest your best online tool:

Do you know a better, a complementary or a replacement website to the one listed above ?

> Suggest it here <

10th year anniversary

Full size images and downloads are only available, 100% free, for registered members.

> Login <