toolo.dev

SVG Viewer

View SVG online: paste code or open a file to preview it, check it for scripts and external files, fix a missing xmlns, and convert SVG to PNG at any size.

Background
After you click or type in the editor, the Tab key indents. Press Escape, then Tab, to move to the next field.

Paste or open an SVG to see it here.

Your SVG stays in this browser tab. Nothing is uploaded, and the PNG is made in your browser.

About the SVG Viewer

Paste SVG code or open an .svg file in this online SVG viewer to see the image, its size and a safety check. Fix problems in the code as you go, then download the SVG or convert it to a PNG at any width.

SVG is an image format written as XML text, which is why icons, logos and charts made with it stay sharp at any size. Because it's text, an SVG can also carry scripts and links to other sites. The preview shows your SVG the way an <img> tag does on a website, where browsers never run scripts or load outside files, and the safety check tells you what would run if you used the code inline. Nothing is uploaded: the preview and the PNG are made in your browser.

  1. Paste into the SVG code box, or click Open File or drop an .svg file onto the editor (up to 5 MB). Load Example fills in a small picture of mountains to try.
  2. The Preview updates about 0.3 seconds after you stop typing and scales the image to fit. Under it you see the size in pixels and the file size.
  3. Switch Background between Checkerboard, White and Black. Checkerboard shows which parts are transparent, and Black helps with white icons that vanish on white. Full Screen shows the image over the whole screen; press Esc to close it.
  4. If the code has an error, its line number turns red and the message under the editor gives the line and column. If the <svg> tag has no xmlns, click Add xmlns.
  5. To export, click Copy Data URI for CSS or HTML, or Download SVG for the edited code. For a PNG, type a width next to PNG width and click Download PNG. The height follows the image's proportions, up to 8192 px per side.
  6. Read the Safety check at the bottom before you paste an SVG from someone else into a web page.