Skip to content
OddsockLocal
Local

No files yet.

Waiting for inputRuns in this browser. Nothing is uploaded.

How to use

  1. Drop one SVG.
  2. Read the viewBox before the width. The viewBox is the coordinate system.
  3. Compare path count with how simple the icon should be.
  4. If the markup needs to be saved, run the optimizer or the viewer and download that file.

What is SVG inspector?

A logo labeled 24 by 24 sometimes has a viewBox of 0 0 512 512 and a width set in percent, which is why it blows up in one layout and vanishes in another. The inspector parses the file, drops unsafe content the same way the viewer does, and reports width, height, viewBox, the number of elements, and the number of paths. Missing width or height is filled from the viewBox when that box has a positive size, otherwise from a small default, so the report shows a number you can lay out.

Read more

Element count is a complexity smell. A path-count in the thousands means an icon that was traced from a photo and will be heavy to paint. A count of a handful of paths is a logo. The report is JSON, not a cleaned file. Download the cleaned SVG from the viewer or the optimizer if you need the markup.

The safety pass runs first, so a script tag will not appear as an element in the count. You are inspecting what would actually be safe to inline.

Use cases

  • A design system checks that every icon shares one viewBox.
  • A performance pass flags an illustration with thousands of paths.
  • A developer sees a percent width before it collapses in a flex row.
  • An exporter bug is confirmed because the viewBox does not match the stated pixel size.
  • A review notes how many elements survive the safety pass.

An icon that claims to be 24 pixels

icon.svg with a viewBox and a width attribute.

JSON listing width, height, viewBox, element count, and path count, measured after unsafe nodes are removed.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

A missing or percentage width is replaced from the viewBox so the document has a concrete size. The report tells you what the safe copy will claim.