Back to Free Tools

FREE TOOLS

SVG Static Content Cleaner

Project supplied SVG onto a bounded static-shape vocabulary with a removal report.

Optional UTF-8 SVG file (overrides text), SVG source

SVG, JSON

Browser only

Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.

This tool needs JavaScript. If it does not load, refresh the page and try again.

How to use this tool

  • Enter the displayed example values,or choose the local input files requested by the controls. Optional source files take precedence where labelled.
  • Choose Project static SVG and inspect the complete result and any reported limitations.
  • Use Download result and each companion download link to save complete outputs. Reset clears output and restores example controls.

Examples

SVG source: <svg xmlns="http://www.w3.org/2000/svg" width="160" height="100" viewBox="0 0 160 100"><script>removed()</script><rect x="10" y="10" width="140" height="80" fill="#336699" onclick="removed()"/></svg>

Limitations

  • Make an explicit lossy static SVG shape projection using the shared existing shape vocabulary. Retain supported paths/basic shapes,groups,gradients,clip paths,title/description and closed presentation values;remove unsupported subtrees/attributes,styles/CSS,images,use,text/fonts,filters,animation,events,external resources and active embedding. Preserve complete raw removed declarations/values in the local JSON report;appearance can change. Local fragment targets must exist and match gradient/clip type. Duplicate retained IDs,cycles or excessive inherited-paint/reference expansion refuse. No uploaded SVG is injected into this UI or handed to a DOM/image decoder. This worker uses inert XML and a closed policy;it does not claim DOMPurify in a DOM-less worker or universal sanitization/visual fidelity. One UTF-8 source1 MiB,40XML levels/10,000elements/200,000numeric attribute tokens. Coordinates±1e6;dimensions/viewBox sides≤16,384. Reference expansion≤100,000visits/40levels. SVG2 MiB/report10 MiB. All processing stays in your browser.
  • Complete outputs only. Unsupported or oversized input is refused. Follow the displayed job-specific bounds and format policies.

Related tools

No items found.

More tools for your workflow

Explore the related desktop tool