What gets removed
The cleaner removes script tags, event handler attributes, unsafe href values, unsupported tags, and attributes that are not part of the conservative SVG allowlist.
SVG cleaner
Use this SVG cleaner to paste SVG markup, remove risky tags and attributes, preview the result, and download a cleaned file. The SVG stays on your device.
Runs locally
The core file work happens in your browser where possible.
No upload
SVG and PDF files are not sent to a server for the browser tools.
Editable output
Preview, copy, clean, or download the result before you use it.
Clear limits
Complex print files, scans, and unsupported SVG features may need another workflow.
Paste an SVG document below. The sanitizer runs locally and keeps a conservative set of SVG tags and attributes.
SVG is code. A file copied from an export tool, icon pack, or unknown source can contain scripts, event handlers, external links, or markup your app does not need. Cleaning it makes the file easier to review and safer to paste into a project.
Use this SVG cleaner when you need to remove script from SVG files, strip unsafe attributes such as onclick, or prepare SVG markup before using it in a website or React component. The cleaner keeps a conservative set of SVG tags and attributes so the output stays readable.
Working with React? Start with cleanup, then use the SVG to React converter or read the React SVG cleanup guide.
The cleaner removes script tags, event handler attributes, unsafe href values, unsupported tags, and attributes that are not part of the conservative SVG allowlist.
Common shapes, paths, text, gradients, fills, strokes, masks, clip paths, viewBox, accessibility labels, and basic typography attributes are kept when they are safe.
Review animation, complex filters, custom CSS, external images, and SVG from untrusted uploads. A browser cleaner is a helpful pass, not a full upload security policy.
Need a review list before you ship the file? Use the SVG cleanup checklist. If the SVG carries meaning in a button or interface, check its name and ARIA references with the SVG accessibility checker.
No. The cleaner runs in the browser. Your pasted SVG is not sent to a server for cleaning.
It removes scripts, event attributes such as onclick, unsafe links, unsupported tags, and other markup that can cause security or rendering problems.
Yes. Clean the SVG first, then use the SVG to React tool to convert common SVG attributes into JSX-friendly names.
No. Treat user-uploaded SVG as untrusted content. Use server-side validation, strict storage rules, and safe rendering policies for production upload flows.