SiteAssets SiteAssets
§01 SVG Icon Checker

Are your SVGs clean, safe and optimised?

Analyze SVG structure, security and optimization — then fix what's wrong in one click.

Upload → Analyze → Score → Fix → Download
SVG analysis Score 91
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2L2 22h20L12 2z" />
</svg>
viewBox ✓ Present
currentColor ✓ Used
Scripts ✓ None
Metadata ⚠ Remove
Structure · Security · Size ✓ Clean
§02 — Analysis

What the checker inspects.

Every property that determines whether your SVG is correct, safe and optimised.

№01

SVG structure analysis

Check viewBox, xmlns, width/height attributes and overall SVG structure for correctness.

№02

Security audit

Detect inline scripts, external references and other potential XSS vectors in your SVG files.

№03

Optimization check

Identify unnecessary metadata, editor junk and optimization opportunities to reduce file size.

№04

Scored results

Get a 0–100 score with critical issues, warnings and passed checks for your SVG icons.

§03 — Verdict

One number. No fluff.

A single score summarises your SVG quality. Drill into the issues, the warnings, and the checks that already pass.

  • Critical — security risks or missing viewBox.
  • Warnings — unnecessary metadata or hardcoded colours.
  • Passed — best-practice checks already met.
SVG score

91/100

Clean, minor improvements

Sample

0

Critical

1

Warnings

1

Notes

10

Passed

§04 — Checks What we analyze
№01

viewBox check

Verify viewBox attribute is present and correctly formatted for responsive scaling

№02

currentColor usage

Ensure icons use currentColor for fill/stroke to inherit text colour

№03

Security scan

Detect inline <script>, <foreignObject>, event handlers and external hrefs

§05 — FAQ

Questions, briefly answered.

Everything you need to know before you check.

01 What does an SVG Icon Checker do?
+

It analyzes SVG files for correct structure (viewBox, xmlns), security risks (inline scripts, external references) and optimization opportunities (unnecessary metadata, editor junk). It helps you ship clean, safe, optimised SVG icons.

02 Why is currentColor important?
+

currentColor lets your SVG inherit the text colour of its parent element. This means one SVG file works in light mode, dark mode and any coloured context — no need for separate files for each theme.

03 Are SVGs a security risk?
+

Yes — SVGs can contain inline JavaScript, external resource references and event handlers that execute in the browser. The checker flags these security risks so you can sanitize your SVGs before deploying them.

§06 — Start

Check your SVG icons
now.

Upload your SVG. Get a full analysis in seconds.

— free, no login required.