Remove Width And Height From SVG

Drop root width/height so viewBox controls scaling

Set size from viewBox? Set size from viewBoxAdd viewBox? Add viewBox

FAQ

Quick answers

Why remove width and height from SVG roots?
viewBox-only roots scale cleanly in CSS without fighting fixed pixel sizes.
What if my SVG has no viewBox yet?
Add viewBox first with Add viewBox, then remove width/height.
Can I set width/height from viewBox later?
Yes. Use Set Size From viewBox when you need explicit dimensions again.
Is removing width/height free without upload?
Yes. Free browser tool.
Set size from viewBox → 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