SVG Optimizer
v1.0SVG Optimizer shrinks SVG files in your browser. Paste an SVG, drop a file or load one of four samples, and the optimized file appears beside it with the size before and after and the share saved. Two previews, original and optimized, sit side by side so you can check the drawing still looks the same.
The options are a short, grouped list. Fifteen safe cleanups start on, such as removing comments, metadata and descriptions, shortening IDs and colors, merging paths and minifying styles. Five that change the file's structure start off, each with a warning about what it can break: removing the viewBox breaks responsive scaling, and removing <title> takes away the SVG's accessible name. A precision control sets how many decimals path data keeps, which is often the biggest saving. The output is minified onto one line by default, and Indent the output puts one element per line so it's easier to read.
Broken markup is reported once you stop typing, with the line and column, and the last good result stays on screen until then. Both previews are sanitized, so a script in an SVG never runs, and anything that would load from the network is dropped.
Copy or download the optimized file, or share a link that carries the SVG and your settings. Your SVG and settings are remembered on this device.