About this tool
Get a full report on an SVG: dimensions, viewBox, element counts, IDs, embedded images, colors and fonts. It also flags anything that could run code or load external content, such as scripts, event handlers and javascript: links, plus accessibility gaps like a missing title. The file is parsed in your browser and never uploaded.
How to use SVG Inspector
- Choose an SVG file or paste the code.
- Read the safety summary at the top.
- Review findings, elements, colors and fonts.
Frequently asked questions
Why can an SVG be dangerous?
SVG is XML that can contain scripts and event handlers. If a site inlines an untrusted SVG into its pages, that code can run. As an image element it is harmless.
What should I do with a flagged file?
Remove the flagged parts, for example with the SVG Optimizer's script removal option, or only ever display the file through an image element.