SVG Viewer & Editor

Paste or edit SVG code to preview it live. Changes update the preview instantly.

Back to all tools on ToolForge

More in Images & Colors

SVG Code

Preview

About SVG Viewer & Editor

This SVG Viewer and Editor lets you paste or edit SVG markup and see the result live. Useful for debugging icons, tweaking vector graphics and validating SVG before embedding.

SVG Element Reference

ElementPurposeKey Attributes
<svg>Root containerviewBox, width, height
<circle>Circle shapecx, cy, r
<rect>Rectangle shapex, y, width, height
<ellipse>Ellipse shapecx, cy, rx, ry
<line>Line segmentx1, y1, x2, y2
<path>Complex shapesd (path data)
<text>Text contentx, y, font-size
<g>Group elementstransform, class

Frequently Asked Questions

How does the preview work?
The tool creates a Blob URL from your SVG code and renders it in an image element. Changes update the preview instantly.
Can I edit SVG attributes?
Edit the SVG code directly in the textarea. Change viewBox, colors, dimensions, or any attribute and click Preview.
What SVG features are supported?
All standard SVG 1.1 and SVG 2 features work: shapes, paths, gradients, filters, text, and animations.
Why does my SVG show an error?
Check for XML syntax errors, unclosed tags, invalid attribute values, or missing required elements.
Can I download the edited SVG?
Yes. Click Download to save the current SVG code as a .svg file to your local system.
Does it validate SVG syntax?
The preview itself acts as validation. If the SVG renders correctly, the syntax is valid. Errors show in the error panel.