Calculators · Tool
SVG ViewBox Fit Calculator
Enter the viewBox and viewport sizes, then choose whether to contain or cover.
How to use it
- Enter the viewBox and viewport sizes, then choose whether to contain or cover.
- Run the tool, then copy the result if needed.
How it works
Meet fits the full drawing. Slice covers the viewport and may crop edges. Both modes preserve the aspect ratio.
Use it for
- Size a logo or icon inside an SVG viewport.
Questions
Does this run locally?
Yes. This tool processes its inputs in your browser.