Back to Image Tools

Vector Dimensions & ViewBox

SVG Dimensions Checker

Inspect width, height, declared CSS units, viewBox coordinate system, and aspect ratio of SVG vector graphics without rasterization or script execution.

  • Processed locally
  • No upload required
  • No account required

Inspect SVG Dimensions & ViewBox

Drop an SVG file or paste markup below. Evaluates intrinsic units and viewBox geometry without script execution.

Sandboxed Declarative Parsing
Coordinate Geometry

Declared dimensions: 100 mm × 50 mm with viewBox "0 0 100 50"

Declared Width

100 mm

≈ 377.95 CSS pixels

Declared Height

50 mm

≈ 188.98 CSS pixels

viewBox Coordinate Box

0 0 100 50

100 × 50 internal units

Aspect Ratio

2:1 (2)

Standard uniform scaling

Security & Prepress Note:

Safe: Parsed purely as static declarative text; zero dynamic script evaluation.

Vector artwork in SVG does not have an intrinsic raster DPI. For print export, SVG coordinates are rendered at whatever target device DPI is chosen during RIP or PDF conversion.

Suggested next steps

Continue this workflow

Move to a practical next or previous step without transferring your entered values.

About SVG Dimensions Checker – Inspect Width, Height & ViewBox

Inspect the geometric layout, root dimensions, and viewBox coordinate system of any SVG vector graphic without executing scripts or rendering untrusted elements.

Detect declared CSS physical units (px, in, cm, mm, pt, pc), compute effective pixel bounding boxes, verify aspect ratio preservation, and evaluate responsive readiness entirely in your browser.

How the calculation works

CSS Unit to Pixel Conversion

1 in = 96 px; 1 pt = 96/72 px = 1.333 px; 1 pc = 16 px; 1 mm = 96/25.4 px = 3.7795 px; 1 cm = 96/2.54 px = 37.795 px

Aspect Ratio

Ratio = Width / Height (computed from explicit dimensions or viewBox aspect)

ViewBox Geometry

MinX, MinY, BoxWidth, BoxHeight define internal coordinate space.

How to use this tool

  1. 1Upload an SVG file or paste raw SVG markup directly into the inspector.
  2. 2Review the root width, height, and unit attributes alongside internal viewBox dimensions.
  3. 3Inspect calculated pixel dimensions, aspect ratio, and responsive scaling status.
  4. 4Copy formatted dimension summaries or export inspection reports.

Understanding the result

If an SVG defines viewBox but lacks width/height, modern browsers scale it fluidly based on its container while maintaining the viewBox aspect ratio.

If width and height are defined in real-world units like millimeters or inches, 96 CSS pixels per inch is standard for web presentation.

Any embedded script tags or event handlers are stripped during parsing, guaranteeing safe inspection of third-party vector assets.

Important limitations

  • The inspector analyzes root <svg> container attributes and viewBox geometry; it does not compute bounding boxes for arbitrary internal vector paths or nested clips.
  • SVGs with percentage widths or heights scale dynamically with the parent DOM container and cannot report absolute pixel dimensions without external context.

Explore this topic

Frequently asked questions

Why does my SVG have no width or height attributes?

Many modern SVGs rely exclusively on viewBox for fluid responsive scaling. This tool calculates effective dimensions from the viewBox aspect ratio.

Is it safe to inspect untrusted SVG files?

Yes. SVG Dimensions Checker uses a sandboxed DOMParser with script execution disabled, stripping dangerous attributes and elements.

How are physical SVG units like inches or millimeters converted to pixels?

W3C CSS standards define 1 inch as 96 CSS pixels, 1 pt as 1.333 px, and 1 mm as approximately 3.78 px.

Are SVGs uploaded to any server?

No. All SVG markup analysis runs 100% locally in your browser.

Related tools

Selected from curated relationships first, then the same subtopic and category.

Learn more

Related guides

View all guides