How do I get the width and height of an SVG?
Upload or paste the SVG and this checker reads the width, height, and viewBox attributes, computes the intrinsic size and aspect ratio, and flags any missing dimensions so you can copy the correct values.
Does this tool edit or change the SVG?
No. The SVG Dimensions Checker is inspection-only. It reports the geometry and lets you copy the values, but it never modifies your file.
Can I paste raw SVG code instead of uploading?
Yes. The tool supports both file upload and paste-first inspection, so you can drop in raw SVG markup and read its dimensions immediately.
Is it free and private?
Yes. The SVG Dimensions Checker is free with no signup, and it runs entirely in your browser, so your SVG is never uploaded to a server.
How do I check the size of an SVG?
Load the file here. The tool reads the width, the height, the viewBox and the intrinsic aspect ratio straight out of the markup and shows them together, and flags the values that are missing. It reads the file and changes nothing.
What does it mean when an SVG has no width and height?
It means the SVG has no intrinsic size and will fill whatever box you put it in. That is normal and often intentional. It only becomes a problem when the viewBox is also missing, because then the browser has no aspect ratio to preserve and the shape can stretch.
Why does my SVG look stretched?
Usually because the width and height on the element disagree with the viewBox. The browser scales the drawing to the viewBox, so those two fighting each other is the classic cause of an icon that only looks wrong in the page and fine in the editor.
What is a viewBox?
It is the coordinate window of the drawing: the origin and the size of the space the shapes are drawn in. Everything about how an SVG scales depends on it, which is why a missing viewBox is worth flagging.