Make SVG Scale With Container

Set width:100% and height:auto so the SVG follows the parent box

Fix clipping? Fix clippingMake responsive? Make responsive

FAQ

Quick answers

How do I make an SVG scale with its container?
Click Scale with container. The root gets width:100%, height:auto, and display:block so CSS parent width drives size.
How is scale-with-container different from a responsive SVG?
Scale-with-container is the CSS size contract (100% / auto). Make SVG Responsive Online adds preserveAspectRatio meet and ensures a viewBox.
Do I still need a viewBox after scaling with the container?
Yes. viewBox keeps aspect. This tool does not invent a crop; it only sets fluid CSS size.
Will fixed width and height attributes fight the container?
Root width/height attributes are stripped so they cannot override the 100% style.
Fix clipping → Make responsive → Remove width/height → preserveAspectRatio →
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