← All text tools

Resize SVG

Change the width and height of an SVG file without distorting it, fix the viewBox when it is missing, and export a PNG at the new size.

  • Free
  • No sign-up
  • Works on any device

About Resize SVG

SVG pictures scale without losing sharpness, but the width, height and viewBox attributes must agree or the drawing is cropped or squashed. Paste SVG code or open a file, type a new width or height with the proportions locked, and the tool rewrites those attributes in the opening tag, adding a viewBox from the old size when one is missing. You get the new code to copy, an SVG download and a PNG exported at the new size, with an optional white background.

How to use Resize SVG

  1. Paste your SVG code or choose an SVG file.
  2. Type the new width or height; the other follows when the proportions are locked.
  3. Copy the new code, or download the SVG or a PNG at that size.

Why use this tool?

Also known as

Frequently asked questions

What is the viewBox for?

It defines the drawing's own coordinate box. With a viewBox the browser scales everything to the width and height; without it the drawing is only clipped.

Why did a viewBox appear in my code?

Your file had none, so the tool added one from the old size. That is what lets the drawing scale instead of being cut off.

Does resizing lose quality?

No, SVG is made of shapes. Only the PNG export is a fixed grid of pixels, so export it at the size you need.

Is Resize SVG free?

Yes. Resize SVG on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools