Skip to content

Free Technical SEO tool

SVG Optimiser

The SVG Optimiser cleans and minifies SVG code in your browser, removing the comments, metadata, editor attributes and excess decimal precision that design tools leave behind. Paste code or drop in a file, compare the live preview and byte savings, then copy or download a lighter SVG.

  • 100% free
  • No sign-up
  • Runs in your browser
Client-side SVG cleaner & optimizer
Preview will appear here
Original
0 B
Optimized
0 B
Savings
0%

How it works

How to use the SVG Optimiser

  1. Add your SVG

    Paste SVG code or drag a .svg file onto the editor.

  2. Choose what to strip

    Toggle comments, metadata, IDs and data attributes, and set the path precision.

  3. Check the preview

    Confirm the graphic still looks identical and review the bytes saved.

  4. Export

    Copy the optimised code or download the file.

Why SVGs need optimising

SVG files exported from Illustrator, Figma, Sketch or Inkscape carry far more than the shapes you see. Editor metadata, layer names, generator comments, unused definitions and coordinates with six or more decimal places can double or triple a file’s size without changing a single visible pixel.

For one icon that hardly matters. Across a logo, an icon set and a handful of illustrations loaded on every page, it adds avoidable weight, and inline SVGs also bloat the HTML document itself.

What gets removed

  • Comments and XML declarations that browsers ignore.
  • Editor metadata such as Inkscape and Sketch namespaces.
  • Auto-generated IDs like Layer_1 and path-23.
  • Redundant data attributes added during export.
  • Excess decimal precision in path coordinates.

Accessible, search-friendly SVGs

When an SVG carries meaning, such as a logo or an informative diagram, give it a text alternative. Inline SVGs can use role="img" with a <title> element, and SVGs loaded through <img> need an alt attribute. Purely decorative graphics should be hidden from assistive technology with aria-hidden="true".

Questions

SVG Optimiser FAQs

Is the SVG Optimiser free?

Yes, with no account or file limit.

Are my SVG files uploaded?

No. Parsing and optimisation happen in your browser.

Can optimising break an SVG?

It can in some cases, which is why the live preview re-renders after every change. The ID removal option uses pattern matching rather than full reference tracking, so check icons that rely on gradients, masks or <use> references, and keep your original file.

How much path precision should I keep?

One or two decimal places is usually invisible for icons and logos displayed at normal sizes. Increase it if you see curves distorting in the preview.

Should I inline SVGs or use img tags?

Inline small icons that you want to style with CSS. Use <img> for larger illustrations so they can be cached and lazy-loaded.

Work with The Search Foundry

Need the whole site checked properly?

Our technical SEO audits crawl every URL, prioritise fixes by revenue impact and come with a developer-ready action list.