SVG Asset Workbench
Inspect, clean, recolor, and preview static SVG locally. Export sanitized SVG or readable React and Vue code.
How to use this toolUntrusted SVG is cleaned locally before preview. No remote assets are loaded.
Input
Sanitized preview
Paste an SVG or Load Example. Only sanitized markup reaches the image preview.
Output
Cleaned SVG and static framework exports appear here.
Prepare a static SVG for your project
Paste or choose an SVG to inspect its dimensions, viewBox, paint values, and element count. The preview updates after a brief pause and always uses cleaned SVG in an isolated image. Clean produces readable XML; Optimize also compacts serialization. Recolor a listed fill, stroke, or gradient-stop color and export the result.
Practical example
Load the example icon, choose fill and #147d78, enter a replacement color, then Recolor. Export the SVG or a React component. Normalize sizing adds a viewBox from numeric dimensions when needed and removes fixed root width and height.
Limits and interpretation
Static shapes, paths, groups, text, gradients, and clip paths are supported. Scripts, foreignObject, animation, use, images, embedded styles, CSS/style attributes, filters, links, external references, and unsupported namespaces are removed. Visual appearance can change; review the result. This is conservative security sanitization plus metadata/comment cleanup and compact output, not full SVGO-style geometry optimization. React and Vue exports cover only the cleaned static subset; no full framework conversion is claimed. Vue text is emitted as literal v-text bindings to prevent template-expression injection. Files must be UTF-8 SVG up to 1 MB; markup up to 500,000 characters, 2,000 elements, 48 levels, 64 attributes per element, and 20,000 characters per attribute. Root sizing is bounded to 4096. Editing input or normalization resets prior recoloring.
Privacy
No remote assets are fetched. Markup and generated code are handled locally in a bounded worker and are not uploaded, logged, stored, tracked, or added to page URLs. Copy requires your click. Clear or leave the page to release workers and temporary image/download URLs. Keep downloaded files and clipboard contents under your own control.
