Sharp at any size

Resize SVG

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

How to resize svg

01

Open your SVG

Drop the SVG above, choose it, or paste its code anywhere on the page. The size controls are first.

02

Set the size

Type a width or a height; with Keep the shape on, the other follows. Select Apply.

03

Or make it responsive

Select Remove width and height, and the SVG fits the space it's placed in on a web page.

04

Save it

Download the SVG, or save a PNG or JPG at the new size, up to 8x for sharp images on high-resolution screens.

Width, height and the viewBox

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.

Keeping the shape, or not

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.

Responsive SVGs, and resizing to PNG

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.

More SVG tools

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).

Frequently asked questions

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.

Does resizing an SVG lose quality?

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.

Why doesn't my SVG get bigger when I change its width?

It has no viewBox, so nothing scales: it just shows more empty space. This tool adds the viewBox for you before resizing.

How do I make an SVG responsive?

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.

Can I set the size in inches or centimeters?

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.

How do I resize an SVG and convert it to PNG?

Set the size, then select Save PNG. Choose 1x for exactly that size, or 2x to 8x for more pixels.

Can I resize an SVG without changing its shape?

Yes, keep Keep the shape on. It's on by default.

Are my files uploaded?

No. Everything runs in your browser and your SVGs never leave your device.

Resize an SVG

Drop an SVG above, or paste SVG code anywhere on the page.