Add ViewBox to SVG

Insert a missing viewBox so the graphic scales correctly

Remove width/height? Remove width/heightSet size from viewBox? Set size from viewBox

FAQ

Quick answers

How do I add a viewBox when my SVG is missing one?
Paste the file and click Add viewBox to write a root viewBox.
Should I remove width/height after adding viewBox?
Often yes for responsive CSS — use Remove Width/Height next.
Can I crop after adding viewBox?
Yes. Crop SVG Online works well once framing exists.
Is adding viewBox free in the browser?
Yes — free, no upload.
Remove width/height → Set size from viewBox → Crop SVG → Crop canvas →
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