SVG Analyzer

Look inside any SVG - size and viewBox, elements and paths, fonts, colours, embedded images, scripts, external links and editor junk you can safely remove. Want it lighter? Use Compress SVG.

How to analyze an SVG file

  1. Add your SVG. Drop one or more SVG files into the box, paste one, or try a sample. The code is read in your browser.
  2. Read the checks. Security, size, fonts, embedded images and editor junk are checked and explained.
  3. See the elements. The Elements tab counts every tag, lists fonts, images and external links; Colours lists every colour in the code.
  4. Optimize or convert. Compress the SVG, convert it to PNG, or save the report.

Need a raster copy for a site or app that does not take SVG? SVG to PNG renders it at any size.

Why check an SVG?

An SVG is code, not just a picture.

It can carry scripts, links to other servers, fonts that are missing on other computers, and kilobytes of editor data.

  • Scripts and on* handlers - harmless inside an <img>, but they run when the file is opened directly or inlined into a page.
  • External images and fonts - break offline and leak visits to another server.
  • Text with custom fonts - looks different on machines without that font. Convert text to paths before sharing.
  • No viewBox - the graphic will not scale cleanly.

How much smaller can it get?

Design apps add metadata, comments, editor attributes and over-precise numbers.

The analyzer adds those up as removable bytes - typically 20-60% of an Inkscape or Illustrator export.

Compress SVG removes them without changing the look.

SVG size units

UnitPixels at 96 dpi
px1
pt1.333
mm3.78
cm37.8
in96
% or nonefrom the viewBox

An SVG with only a viewBox has no fixed size - the analyzer reports the viewBox size and flags it.

Frequently Asked Questions

Drop it in. The checks list every script, event handler (onload, onclick...), javascript: link, foreignObject and external reference. Opened through an <img> tag, scripts never run.

The Elements tab lists every font family in the text elements and styles. Common system fonts are fine; others may look different elsewhere.

It has no width and height, only a viewBox - or neither. The analyzer shows the size it would take and how to fix it with the SVG Resizer.

Check Removable bytes, then run Compress SVG. Embedded PNG or JPG images are often the biggest part.

A compressed .svgz is recognised; unzip it or open the plain SVG for the full analysis.

No. The SVG is read in your browser and never leaves your device.

Guides & Tutorials

All 42 guides
Guide How to Tell What Format an Image File Is (5 Easy Ways) Jul 8, 2026 · 9 min read Read Comparison ICO vs SVG: Which Icon Format Should You Use? Jun 2, 2025 · 4 min read Read New Tutorial How to Use Twitter (X) GIFs on Discord Nov 4, 2026 · 4 min read Read