SVG Editor
SVG Editor lets you write and preview SVG code live on white, dark or transparent backgrounds. Format it, fix a missing namespace or viewBox, set an exact size, add space around the drawing and export SVG or PNG. It runs in your browser.
How to use SVG Editor
- Paste SVG code or drop a file, or start from the sample.
- Edit the code and watch the preview. Use the checks to fix a missing viewBox or namespace.
- Download the SVG, or a PNG at the scale you need.
Frequently asked questions
Is my SVG uploaded?
No. It is parsed and drawn in your browser. The preview uses an image element, so scripts inside the file cannot run.
Why does my SVG not show in some places?
The usual cause is a missing xmlns or viewBox. The checks list this and the Fix button adds them.
How do I set an exact size without stretching it?
Type a width and press Set size. The height is worked out from the viewBox so the shape keeps its proportions.
Why is the PNG blank on a transparent background?
It is not blank: the PNG keeps the transparency. A transparent picture looks empty on a white page only if its shapes are white. Choose a white or dark backdrop to export with that colour behind it.
Does it edit paths or colours?
This tool edits the code. For paths use SVG Path Tools, and for colours use SVG Recolor.
Next step
Done editing? Shrink the file with the SVG Optimizer. Open SVG Optimizer.
Related tools
- 112