Set SVG Width Height From ViewBox

Write root width/height using the viewBox numbers

Remove width/height? Remove width/heightAdd viewBox? Add viewBox

FAQ

Quick answers

How do I set SVG width and height from viewBox?
Paste markup with a viewBox and click Set size from viewBox.
When is explicit width/height useful?
Some email clients and legacy embeds prefer concrete dimensions.
Want the opposite — remove size for responsive CSS?
Open Remove Width/Height to strip root sizing.
Does this tool upload the SVG?
No — free, browser-local.
Remove width/height → Add 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