Diagnostic
SVG inspector
Choose, drop or paste an SVG. It is read in your browser and nothing is uploaded; the preview appears only after the file passes. The inspection uses the same SVG allowlist the archive applies to submitted and imported SVG files.
Or drop an SVG here. It is read in this browser and not uploaded. Up to 2 MB.
Results appear here. Everything runs in your browser; nothing is uploaded.
How to check an SVG logo
- Choose or drop the .svg file, or paste its source code.
- Read the result line: rejected, passed with warnings, or passed.
- Fix blocking items in the design application and export again; review the warnings.
- Download the sanitized copy when the file passes, and keep your original master.
Worked example: the unsafe sample
Select “Load an unsafe sample”. The inspector rejects it and lists a script element, an onload event handler, an @import stylesheet and a linked image from another domain, a javascript: link, a foreignObject, live text and an embedded image. “Load a clean sample” shows a two-shape mark that passes every check.
What each check looks for
| Check | Why it matters |
|---|---|
| Well-formed XML and SVG root | A file that does not parse, or is not an SVG document, is rejected before anything else is read. |
| Supported passive SVG | Only drawing elements and attributes on the archive’s allowlist are kept; anything else rejects the file. |
| Size | Files over 2 MB are not inspected. |
| viewBox present | Without a viewBox the drawing may not scale or crop correctly (warning). |
| No <script> or event handlers | Scripts and on* attributes can run code when the SVG is opened directly or inlined in a page. |
| No external references | Links to remote images, stylesheets or fonts can track viewers and break when the remote file changes. |
| No javascript: URLs or foreignObject | Both can carry script or HTML into a page that inlines the SVG. |
| Text converted to outlines | Live <text> depends on fonts installed on the viewer’s device (warning). |
| Pure vector | An embedded <image> means part of the “vector” file is a raster picture (warning). |
Questions about SVG inspection
Is my SVG uploaded?
No. The file or pasted source is read and checked by scripts in this browser tab. Nothing is sent to SimilarLogo, and the preview appears only after the file passes.
What does the sanitized copy change?
It keeps only supported drawing markup, removes everything else and renames IDs so they cannot clash with other SVGs on the same page. It is not a minifier and does not convert text to outlines or redraw raster images.
Does a pass mean the SVG is safe to publish?
It means the file uses only the supported SVG vocabulary the archive accepts. It is not a malware scan, a full security review or a check of publication rights. A rejection can also mean the file uses design features outside that vocabulary.
Why is a compressed .svgz file rejected?
Compressed SVG has to be unpacked before it can be read. Export an uncompressed .svg file from your design application and inspect that.
Continue