Skip to content
toolavix

SVG Editor, Optimizer & PNG Exporter

Edit SVG code with a live preview, shrink it with SVGO and export to PNG.

  • Free
  • No sign-up
  • 100% private

Runs in your browser — your files never leave your device.

What is an SVG editor and optimizer?

SVG is a vector image format written as XML, so it can be edited as text and scales without losing quality. This SVG editor shows a live preview next to the code, validates your markup, optimizes it with SVGO to remove metadata, comments and unneeded precision, and exports a PNG at 1x, 2x or 4x resolution with transparent or white background. Files are processed in your browser and never uploaded.

How to edit and optimize an SVG

  1. 1

    Paste SVG code into the editor, drop an .svg file or press “Try an example”.

  2. 2

    Edit the code and watch the preview update; an error message appears if the XML is invalid.

  3. 3

    Press Optimize to run SVGO and see how many bytes you saved.

  4. 4

    Download the SVG, or export a PNG with the scale and background you need.

Key features

Live preview

See changes instantly on a checkerboard, light or dark background, with the detected pixel size.

SVGO optimization

Remove comments, metadata, empty groups and extra precision while keeping the viewBox so the image still scales.

PNG export

Rasterize the SVG at 1x, 2x or 4x with a transparent or white background for use where SVG is not accepted.

Private

Your artwork is processed locally. The preview is rendered as an image, so scripts inside an SVG never run.

Frequently asked questions

How do I reduce the size of an SVG?

Run it through SVGO with the Optimize button. It removes editor metadata, comments, hidden elements and unnecessary decimals, often reducing file size by 30% to 70%.

Why keep the viewBox when optimizing?

The viewBox lets the SVG scale to any size. Removing it can make an image render at a fixed size or crop incorrectly, so it is kept by default.

How do I convert SVG to PNG?

Open or paste the SVG, choose a scale such as 2x and press Download PNG. The PNG size is the SVG’s width and height multiplied by the scale.

Why is my SVG blank in the preview?

The SVG needs the xmlns="http://www.w3.org/2000/svg" attribute and a size from width and height or a viewBox. Check for XML errors such as unclosed tags.

Are scripts in an SVG executed?

No. The preview shows the SVG as an image, and browsers do not run scripts in SVG images. Still, avoid opening untrusted SVG files directly in a browser tab.

More Developer tools

View all →