Skip to content

SVG Code Editor

About the SVG Code Editor

Edit SVG source code with syntax highlighting, a live preview and live error checks. Format, minify, find and replace, undo and redo. Runs in your browser; nothing is uploaded.

How to use it

Examples

Questions

Is my code uploaded?
No. Editing, checking and previewing all happen in your browser.
Why does the preview leave things out?
The preview is a sanitized copy. Scripts, event handlers and references to other servers are removed from it, and the editor tells you what was left out. Your source is not changed.
Does Format change my SVG?
No. It only changes indentation. Comments, the XML declaration, attributes and text are kept, and nothing is removed or sanitized. A file that is not well-formed XML is not formatted; the checks panel shows the problem.
What does Minify do?
It applies the safe preset of the SVG Optimizer: comments and metadata go, paths and structure are kept, accessibility labels and license comments stay. Unsafe content is removed and reported.
How do I leave the editor with the keyboard?
Tab moves focus on to the next control. The editor does not capture Tab, so you can always move on.
Are there autocomplete and attribute help?
Not yet. The editor has syntax colors, live checks, formatting, minifying and find and replace.

Free and runs in your browser. Sign in only if you want to save your work.