ViewBox Inspector
malformed SVG
Visualize and edit the viewBox with draggable crop handles and preserveAspectRatio. Runs 100% in your browser — your file never leaves your device.
Preview
preserveAspectRatio
The graphic is centered and scaled to fit entirely inside the viewport (letterboxed if the ratios differ).
Fit
Output SVG
86 B<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 12h16"/></svg>
viewBox
Paste valid SVG markup to edit its viewBox.
Your files stay on your computer. Dad promised.