Calculate SVG Bounding Box Online

Measure the content box and write it into <desc>viewBox stays

Crop to bounding box? Crop to bounding boxCrop SVG? Crop SVG

FAQ

Quick answers

Does calculate SVG bounding box change the viewBox?
No. It measures content, writes the numbers into <desc>, and draws a dashed overlay. Use Crop to Bounding Box to apply the box.
How is this different from Calculate SVG viewBox?
Calculate viewBox derives or shows the root viewBox string. This page measures painted content, which can be smaller than the canvas.
Can I copy the bounding box numbers?
Yes. They appear in the status line and inside <desc> in Source.
Are hidden or defs shapes included?
No. Measurement skips defs, clipPath, mask, and invisible scaffolding.
Crop to bounding box → Crop SVG → Calculate viewBox →
Open full editor →

Source

Type or paste SVG markup. The preview on the right updates as you type.

Ready

Live preview

PNG export · 2× for retina