What Is SVG Geometry Inspector?
SVG Geometry Inspector is a free online tool by TechnSols that measures any element inside an SVG file and shows its exact geometry. Paste SVG markup or open an SVG file, pick an element, and the tool shows its bounding box as x, y, width and height, so you can align shapes, fix offsets, and plan animations with real numbers instead of guesses. The check ends with two downloads, a text report and the cleaned SVG.
SVG drawings look simple on screen, yet their coordinates are easy to get wrong. A shape can sit a few units off centre, a group can be wider than it looks, or a viewBox can scale every number at once, and the eye cannot judge those errors reliably. The box is measured in SVG units, and it ignores any transform attribute, so a moved shape still reports its own untransformed box. The getBBox Method in browsers returns the true bounding box of an SVG element, and this inspector puts those numbers on screen in plain form.
This tool works on any SVG element, including rect, circle, ellipse, line, polygon, text, group, and path, because it measures each element with getBBox. That makes it different from the live SVG Path Visualizer, which is path only. When the drawing itself needs editing first, the SVG Editor and Previewer edits the markup and previews the result. Everything runs in your browser, and no file is uploaded anywhere.
How To Use SVG Geometry Inspector?
Using SVG Geometry Inspector takes three quick steps. Paste the SVG, pick an element, and read its numbers. If the finished drawing needs a raster copy for sharing, the SVG to PNG tool converts it to an image.
Step 1: Paste Your SVG Markup
Paste the SVG markup into the input box, or open an SVG file from your computer, or drop the file onto the drop zone. The tool draws the SVG in the browser and lists every element it contains, in the same order as the markup. Files up to 100 MB are accepted, and a file must carry a .svg extension and real SVG markup.
Step 2: Pick An Element To Inspect
Click a row in the element list to select it, or focus a row and press Enter or Space. The selected element gets a red dashed rectangle drawn over it in the preview, and its tag name, id, and class are shown beside the measurements. A group reports the box that contains all of its children, and each shape inside it also appears as its own row, so a nested icon is just as easy to measure as a top level shape.
Step 3: Read The Bounding Box Values
Read the bounding box values for the selected element: its x and y position, its width and height, each rounded to two decimal places. Compare those numbers with the values you expected, then use them in your code, your layout, or your animation. Select another element to compare it, and the numbers update at once. Download the text report to keep every row, or download the cleaned SVG to keep the checked drawing.
The whole check takes a minute or two, and it replaces long rounds of editing coordinates, saving, and refreshing. Real numbers make the next fix obvious.
Why Do SVG Shapes Misbehave Without Measurements?
SVG shapes misbehave without measurements because what you see is not always what the coordinates say. A stroke can extend beyond its fill, a transform can move a shape without changing its own coordinates, and a group can add its own offset on top of every child. Each effect is invisible until the numbers are checked.
The viewBox adds another layer of confusion, because it scales the whole drawing. A shape that measures 100 units inside the SVG may render at 200 pixels on the page, or at 50, depending on the viewBox and the display size. The SVG Shapes tutorial from Mozilla explains the basic shapes and their coordinates. The HTML Element Inspector helps with a related problem, because an SVG placed inside a page also needs its surrounding markup checked.
A Shape Can Look Right And Measure Wrong
A circle can look centred in its frame while its left edge sits three units too far left, because the eye forgives small errors that a grid does not. The inspector shows the x and width as numbers, so a three unit error is plain to see and easy to fix. That matters for icons, where a small offset is obvious once several icons sit in a row.
ViewBox Scaling Hides Real Sizes
The viewBox scales every coordinate in the drawing, so the numbers in the markup and the size on screen are rarely the same. A width of 24 in the markup may render at 48 pixels, and a height of 24 may render at 36, when the display size differs. The bounding box shows the measured size in SVG units, so the scale factor can be worked out and the display size predicted. Read the root svg row, then set the viewBox by hand to those four numbers, x y width height, to trim blank padding or to stop a shape being clipped, since the tool reports the numbers but does not rewrite your markup.
Overlapping Shapes Need Exact Positions
Overlapping shapes need exact positions, because a small gap or overlap changes the whole look. Two shapes that should touch need one edge to end where the other begins, and two shapes that should stack need the same x and width. Measured positions make those joins exact, where dragging by eye leaves a hairline gap.
What Can You Do With SVG Geometry Inspector?
An SVG geometry inspector fits any job where a drawing must be exact.
Align Icons Inside A Shared Grid
Icons in a set should share the same visual weight, even when their shapes differ. Measure each icon, note its bounding box, and adjust the odd ones until every icon fills the same area of the grid. When an icon also needs a colour fill, the Gradient Generator builds a smooth fill for it.
Fix A Logo That Renders Off Centre
A logo that renders off centre usually has a hidden offset: an empty group, a stray point, or a viewBox that starts at the wrong origin. Inspect the logo element by element, find the one whose bounding box extends beyond the rest, and remove or correct it.
Measure Paths Before You Animate Them
An animation that moves a shape needs its start point and its extent before it can be planned. Measure the path, note its bounding box and its x and y start corner, and use those numbers to set the animation range. A measured start point means the animation begins exactly where the shape sits, with no jump on the first frame. The tool reports the box only, not the path length, so a length driven motion still needs a separate length check.
Quality And Settings
The inspector reads bounding boxes with getBBox, which measures the element in its own coordinate space, and it shows the element tag, id, and class beside each box. The preview marks the selected element with a red dashed rectangle, so the numbers and the picture can be checked together. Values are rounded to two decimal places, and elements with no rendered box, such as defs, title, style, or a hidden element, report No measurable box instead of a false number.
- Bounding box for any SVG element, not just paths.
- Position, width, and height for every selection, to two decimals.
- Element list in markup order, with groups and their children.
- Red dashed outline drawn on the preview for the selected row.
- Two downloads: a text report of every element, and the cleaned SVG.
There are no other settings to learn, because the element and its numbers are the whole tool. Paste the SVG, pick the element, and read the box. Before the drawing is shown, scripts, frames, objects, embeds, links, meta tags, foreign objects, event handler attributes, and javascript links are stripped out. When the measured drawing needs a print copy, the SVG to PDF tool exports it as a document.
How SVG Geometry Inspector Works
The inspector draws your cleaned SVG in the browser and calls getBBox on every element at once, entirely in your browser. The browser works out the smallest rectangle that contains each element, including its fill and its geometry, and returns its x, y, width, and height. The tool lists those four numbers for every row, with the report file holding the same rows in text form. The DXF to SVG Converter turns CAD drawings into SVG, and shapes from those files can be measured here in the same way.
One honest limit is worth knowing, and it is also the tool’s main strength. The inspector works on any SVG element via getBBox, and it is distinct from the live SVG Path Visualizer, which is path only. A path visualizer shows the curve of path data, while this inspector measures the bounding box of any element, whether it is a path, a shape, a text element, or a group. A curved path can report a box wider than the visible curve, because the box follows the full extent of the curve, not just the ink you see. The PNG to SVG tool converts a raster image into SVG, and its traced shapes can be measured here too, though traced shapes often carry rough edges.
Transforms do not affect the result, which catches many people out. getBBox ignores the transform attribute, so a rotated shape reports the same box as the same shape unrotated. That is the box in the element’s own coordinate space, and it is the number to use when fixing the shape itself, while the rendered position on screen still needs the transform taken into account separately.
Privacy
Everything you inspect stays in your browser. The SVG Geometry Inspector runs on your own computer, and nothing you paste is uploaded to a server, stored, or shared with anyone. The tool does its job and shows the answer, and that is all it does.
Because no account is needed, there is no name, email, or history tied to what you do. Closing the tab ends the session, and the browser clears the drawing from memory.
Tips
A few habits make SVG Geometry Inspector work smoother, whether this is your first SVG check or your five hundredth.
- Measure the group first, then the shapes inside it.
- Note the x and y as well as the width and height.
- Check for hidden elements that widen the bounding box.
- Compare icons at the same viewBox before you judge them.
- Download the report before you edit the markup.
When the numbers match the design, the drawing is ready to ship. If the measured shapes also need readable labels, the Color Contrast Checker confirms the text stands out.
More Tools For The Same Job
These tools handle the same kinds of jobs: SVG drawings, shapes, colours, and checking how a graphic looks before it is shared.
- SVG Editor and Previewer: edits SVG markup and previews the result at once.
- SVG Path Visualizer: shows the shape of SVG path data, path only.
- SVG to PNG: converts an SVG drawing into a PNG image.
- HTML Element Inspector: shows the markup and attributes of any element.
- Gradient Generator: builds smooth colour gradients for backgrounds and buttons.
- SVG to PDF: converts an SVG drawing into a PDF document.
- DXF to SVG Converter: turns a CAD drawing into SVG format.
- PNG to SVG: converts a raster image into SVG format.
- Color Contrast Checker: checks whether text colour stands out from its background.
- Image Converter: changes an image into another format without touching the picture.
FAQ
Common questions about inspecting SVG geometry, answered plainly.
Is SVG Geometry Inspector By TechnSols Free?
Yes, SVG Geometry Inspector by TechnSols is completely free to use, with no account, no sign-up, and no usage limit. You can inspect as many SVG elements as you like, and everything runs in your browser, so nothing is uploaded or stored anywhere.
What Is A Bounding Box In SVG?
A bounding box is the smallest axis aligned rectangle that contains an SVG element, given by its x and y position plus its width and height. It is the box the browser uses to measure the element, each value rounded to two decimal places, and it ignores any transform attribute on the element.
How Is This Different From SVG Path Visualizer?
SVG Geometry Inspector works on any SVG element via getBBox, including shapes, text, and groups, and reports its bounding box. SVG Path Visualizer is path only: it shows the shape of path data. Use this inspector for measurements, and the visualizer for studying a single path.
Can I Inspect Any SVG Element?
Yes, you can inspect any SVG element, including rect, circle, ellipse, line, polygon, text, group, and path. Groups report the box that contains all of their children, so a whole icon can be measured at once, then each shape inside it can be checked separately. Elements with no rendered box report No measurable box instead of a number.
Why Do My Numbers Change After Scaling?
Numbers change after scaling because the viewBox and display size scale every coordinate. The bounding box is measured in SVG units, while the size on screen is those units times the scale factor. Check the viewBox first when a measured size looks different from the rendered size, and remember a transform does not change the reported box.
Paste the SVG, pick the element, and trust the numbers. A drawing measured properly aligns cleanly, animates smoothly, and scales without surprises.