Optimise a static SVG graphic and compare the original and resulting byte sizes before downloading it. Upload an SVG file or paste its markup, then run local optimisation to simplify supported vector content. The workflow also removes active content and external references, making it best suited to self-contained icons, illustrations and simple diagrams. Review the generated preview carefully because removing unsupported features or simplifying markup can change the graphic's appearance or its behaviour when embedded elsewhere.
Step by step
How to use SVG Optimizer
Choose an SVG file below 2 MB or paste SVG markup into the text area. A selected file takes priority over pasted text. Clear the file selection or reset the tool if you want a later run to use the text area instead.
Check that the input is a complete SVG document with an svg root element. Keep an unchanged source copy. Graphics that depend on scripts, external images, animation or an embedded HTML region need a different workflow.
Choose Optimise SVG and wait for processing. The tool parses and filters the markup, then runs SVGO optimisation in a worker. Exceptionally complex input that cannot finish within the processing limit is rejected rather than left running indefinitely.
Compare the displayed input and output byte counts, then inspect the optimised preview. Look at fills, strokes, gradients, clipping and labels. A smaller byte count is useful only if the graphic still communicates what you intended.
Copy the result or download optimised.svg. Test that file in the page or application where you plan to use it. Check different display sizes and retain the original until you have confirmed both appearance and integration.
Practical tasks
Options and tips for SVG Optimizer
What optimisation changes
SVG can contain verbose editor metadata, redundant attributes and unnecessarily long path descriptions. An optimiser can simplify these while preserving a useful static graphic. The amount saved depends on the input: a large editor export may shrink considerably, while an already compact icon may change little or even grow after serialisation. Treat the byte comparison as a measurement of this specific output, not a promised compression percentage. The SVG remains vector markup rather than becoming a PNG.
Static and self-contained SVG requirements
This workflow removes scripts, animation elements, embedded HTML, style elements and external references. A graphic that gets its appearance from an internal style block can therefore look different unless its presentation is expressed in retained attributes. References to local SVG resources, such as supported gradient identifiers, may remain. Externally loaded pictures, linked fonts and scripted behaviour are outside the tool's purpose. Prepare a static export from your design application when those dependencies are essential to the original.
Check integration as well as the preview
A standalone preview cannot reproduce every embedding context. Your website may target SVG identifiers, rely on a particular structure or apply CSS to elements inside the file. Optimisation can simplify or rename parts of that structure. Check sizing, viewBox behaviour, accessible naming and any page-level references after replacement. The built-in processing limit also means very detailed traced artwork may need simplification in a vector editor first. Local processing keeps the source within this browser workflow rather than uploading it for conversion.
A little help
Frequently asked questions
Why did the optimised SVG look different?
The tool removes unsupported active, external and style content before optimisation. Some graphics depend on those features for their appearance. Compare with the source, inspect retained attributes and consider exporting a simpler static SVG from the original design application.
Why is the output not smaller?
An SVG that is already compact may offer little redundant data to remove. Parsing and serialisation can also change markup length. Use the displayed byte counts to judge this result, and keep the original if the optimised version offers no benefit.
Can I optimise an animated SVG?
This workflow deliberately removes SVG animation and scripts, so it will not preserve animated behaviour. Use it for a static version only. Keep the original animated source and choose an animation-aware workflow when movement is part of the design.
Can I paste markup after choosing a file?
Yes, but the selected file continues to take priority until you clear it or reset the form. To optimise pasted markup, make sure no SVG file is selected. This prevents accidentally processing the earlier file instead of your edited text.
Your next step