Home/Set an SVG’s width and height

Set an SVG’s width and height

Set the width and height written in a safe copy of your SVG. The shapes, layers and internal coordinates stay unchanged.

Up to 500 KB. Read and rewritten locally in this browser.

Choose a file to inspect its original dimensions.

Edit either dimension. The other follows the existing viewBox ratio.

Your resized copy

The original stays unchanged. A valid viewBox is required; paths, groups, transforms, stroke widths and internal spacing stay as supplied.

Changing a canvas size does not reveal the assembled size of separate pieces. Understand width, height and viewBox.

Change the physical canvas without rewriting its geometry

Width and height set the SVG viewport. The viewBox describes coordinates inside it. This tool requires a valid existing viewBox and changes only the root dimensions; it cannot infer an assembled object, remove internal whitespace, fix paths or assign cut and score operations. With the aspect lock off, a mismatched canvas can add whitespace or crop in applications that honor preserveAspectRatio. It does not stretch the path data.