Resize SVG

SVG is a vector format, so it is resolution-independent and stays razor-sharp at any size. “Resizing” an SVG does not rasterize it or change the artwork: this tool simply sets a new width and height in pixels on the root <svg> element, which is its declared display size. The viewBox, the paths and every coordinate are left exactly as they are, so the drawing keeps its proportions and loses no quality. Paste your markup, set the width and height, preview the result, then copy or download it.

How to resize an SVG

  1. 1

    Paste the SVG

    Paste the full `<svg>...</svg>` markup into the text box.

  2. 2

    Set width and height

    Enter the new width and height in pixels.

  3. 3

    Preview live

    The tool rewrites the `width` and `height` on the root `<svg>` (or adds them if they are missing) and shows the result immediately.

  4. 4

    Copy or download

    Copy the updated markup to the clipboard or save it as an `.svg` file.

Display size vs the viewBox

An SVG has a display size (width/height) and its own coordinate system (viewBox).

<svg width="200" height="200" viewBox="0 0 100 100">
    <circle cx="50" cy="50" r="40" />
</svg>

This SVG is 200 x 200 pixels on screen, while its internal coordinates run 0 to 100. The circle at r="40" fills about 80% of the viewBox, so it renders roughly 160 px wide. This tool changes only the width and height, the declared display size. It does not touch the viewBox or the coordinates, which is exactly why the drawing keeps its proportions and stays sharp: you are telling the browser to draw the same picture at a different size, not redrawing it.

Why an SVG can look the same after you change the size

If the SVG is placed with something like <img src="icon.svg" width="500"> or sized by CSS, the surrounding page controls the display size and overrides the width/height in the file. In that case, change the size where the SVG is used (the <img>, the CSS, or the container), not only inside the markup.

Strokes and text stay crisp

Because nothing is rasterized, text stays as real vector text and lines stay smooth at any size. Stroke widths are defined in the coordinate system, so they scale together with the drawing. If you want a stroke to keep the same visual thickness regardless of size, add vector-effect="non-scaling-stroke" to that element in your source before resizing.

Keep the markup clean

SVGs exported from Figma, Illustrator or Sketch often carry extra weight: editor namespaces (sodipodi:, inkscape:), hidden metadata and unused <defs>. This tool leaves your markup as it is apart from the size. To strip the junk, run the file through an optimiser such as SVGO before or after resizing.

Frequently Asked Questions

No. It only sets the width and height on the root <svg>. The viewBox, the paths and every coordinate are left untouched, so the artwork keeps its exact proportions.

Usually the page controls the size: an <img> width, a CSS rule or a container is overriding the file’s own dimensions. Change the size where the SVG is used, not only in the markup.

Yes. SVG is a vector format, so nothing is rasterized and text and strokes stay sharp at any size. If the source already converted text to paths, it scales like any other shape, which is still crisp.

Yes. Only the width and height are changed; <animate>, <script>, event handlers and CSS inside the SVG are left alone.

The markup is sent to our server to render the resized preview and is not stored after the request. It is not saved or shared.

Related Tools

Tool available in other languages