Remove Embedded HTML From SVG

Clear foreignObject and embedded HTML payloads

Sanitize SVG? Sanitize SVGRemove scripts? Remove scripts

FAQ

Quick answers

Why remove embedded HTML from SVG files?
foreignObject HTML can carry unexpected content and complicate sanitizing embeds.
Does removing HTML delete native SVG text elements?
No. Native SVG text stays; HTML-inside-SVG payloads are the target.
Should I also sanitize scripts after removing HTML?
Yes. Follow with Sanitize SVG Online or Remove Scripts for defense in depth.
Is embedded HTML removal free in the browser?
Yes — free, no upload.
Sanitize SVG → Remove scripts → Remove event handlers → Remove unused elements →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina