Swelıty
Tools for everyone

Free Online SVG Playground

Write SVG code and see the picture as you type. It is drawn on a checkered background, and errors show the line and column.

Auto-run is on, so the preview updates as you type. Your SVG is drawn as an image on a checkered background. The picture can't run scripts.

SVG

Preview

How to use

  1. Write or paste SVG code in the editor. It should start with an svg element.

  2. Watch the picture in the preview update as you type.

  3. Change the shapes, colours and paths and see the change straight away.

  4. Download a zip with the .svg file and a page that shows it.

  5. Use the icons in the editor to copy the code, open a file, download a zip of your files or clear everything.

  6. Open the full screen editor for more room, and use the A buttons to resize the text.

Why use this tool

  • Live picture

    Shapes, paths, gradients and text are drawn as you type.

  • Checkered background

    Transparent parts of the picture are easy to see.

  • Safe by design

    The picture is shown as an image, so it can never run a script, even if the SVG contains one.

  • Nothing of yours is run

    Your text is only read as data and shown as a result. No scripts run, and nothing is loaded from another site.

  • Format code

    Tidy the indentation and spacing with one click or Shift + Alt + F.

  • Comfortable editor

    Resize the text, switch line wrapping on or off, or go full screen with the editor and preview side by side.

About this tool

Write SVG code and see the picture update as you type. The preview sits on a checkered background so transparent areas are easy to spot, and an invalid file shows the problem with its line and column. Use this online SVG editor to learn SVG, tweak an icon or logo, or check that a file draws the way you expect.

Frequently asked questions

The SVG must be well-formed XML and start with an svg element. If it is not, the preview shows the error and its line and column.

Scripts do not run, because the picture is shown as an image. Animations written in SMIL or CSS can play.

Yes, with the SVG Optimizer. This playground is for writing and previewing SVG.

Only to open the page. The preview is made in your browser, and nothing is loaded from another site.

Yes. Press Format, or Shift + Alt + F while you are typing, to tidy the indentation and spacing. If the code has an error it is left unchanged and the error is shown.

Your last session is kept in this browser, so it is here when you come back. Use Download to keep a copy as a file.