How do I resize an SVG?
Open it above, type a new width or height (the other follows with Keep the shape on), and select Apply. Then download the SVG or save a PNG or JPG.
Set an SVG's width and height, make sure it scales, or let it fill its container, and it stays sharp at every size.
Last updated: November 2026
Any size
px, %, em, cm
Shape kept
Or not, your choice
Responsive
In one click
Private
No uploads
Drop SVG files here
Or paste SVG code anywhere on this page
Your files never leave this device
Drop the SVG above, choose it, or paste its code anywhere on the page. The size controls are first.
Type a width or a height; with Keep the shape on, the other follows. Select Apply.
Select Remove width and height, and the SVG fits the space it's placed in on a web page.
Download the SVG, or save a PNG or JPG at the new size, up to 8x for sharp images on high-resolution screens.
An SVG's width and height set how big it shows. They don't change the drawing's own coordinates (MDN); the viewBox does that, saying which area of the drawing fills that size. With a viewBox, a new width and height scale the whole drawing. Without one, no scaling happens (W3C SVG 2): a bigger SVG just shows more empty space and a smaller one gets cut off.
So this tool adds a viewBox first, made from the current size, whenever an SVG has none. Then any new size scales the drawing, and as a vector it stays sharp.
With Keep the shape on, typing a width fills in the matching height. If you set a width and height of a different shape, the drawing keeps its own proportions by default and is centered, with empty space on two sides (W3C SVG 2). To change which part is shown instead, use Crop SVG.
Width and height take any CSS length: a plain number is in pixels, and 2em, 50% or 3cm work too.
Removing width and height leaves only the viewBox. Placed in a web page's HTML, the SVG then fills the width of its container, keeping its shape: the usual way to use SVG illustrations on websites. In an <img> tag, give it a width with CSS, and the height follows its shape.
To get a PNG or JPG of a certain size, set the size here and save at 1x, or choose 2x to 8x for screens with more pixels. For many SVGs at exact pixel sizes, use SVG to PNG.
Every SVG tool here runs in your browser: nothing is uploaded, and scripts inside an SVG never run (it's shown as an image, and they're removed before you save).
Open it above, type a new width or height (the other follows with Keep the shape on), and select Apply. Then download the SVG or save a PNG or JPG.
No. An SVG is drawn from shapes, so it's sharp at any size. The tool adds a viewBox first when it's missing, so the drawing scales instead of being cut off.
It has no viewBox, so nothing scales: it just shows more empty space. This tool adds the viewBox for you before resizing.
Select Remove width and height. With only a viewBox, an SVG placed in a web page fills the width of its container and keeps its shape; in an <img> tag, set its width with CSS.
Yes, width and height take CSS lengths such as 3in or 5cm. For a PNG at a print size, set the size in pixels instead.
Set the size, then select Save PNG. Choose 1x for exactly that size, or 2x to 8x for more pixels.
Yes, keep Keep the shape on. It's on by default.
No. Everything runs in your browser and your SVGs never leave your device.
Drop an SVG above, or paste SVG code anywhere on the page.