SVG Viewer
Open and preview SVG files safely — markup is sanitized with the DOMPurify SVG profile (scripts and event handlers stripped) before rendering.
How to use
- Upload an .svg file or paste markup.
- The sanitized preview renders with reported dimensions.
- Malformed input is rejected with a clear message.
Example
Input: A 24×24 icon SVG
Output: Rendered preview · reported 24 × 24
How it works
The SVG markup is sanitized with DOMPurify using its SVG profile — scripts, event handlers and foreign content are stripped — and only the cleaned markup is rendered.
Limits & compatibility
- Sanitized rendering: scripts, foreignObject and event attributes are removed.
- Animation (SMIL/CSS) may render but is not the focus.
- Very large SVGs (MBs of paths) render slowly on old devices.
Privacy
Preview happens locally in your browser. Your file is never uploaded or stored.
Related tools
Questions about SVG Viewer
Is my input private?
Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.
How accurate is the result, and what are the limits?
The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.
What happens to files I open with this tool?
Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.