Free Online SVG Editor — Live Preview, React Export & Optimizer
The most complete free SVG editor online. Write and edit SVG code with a live preview that updates every keystroke. Insert shapes from the toolbar, start from 10 built-in templates, and export as React JSX, CSS data URI, or PNG.
Make SVGs responsive, optimise away Inkscape/Figma artefacts, and insert animation code snippets instantly.
Full edit history with Ctrl+Z / Ctrl+Y keyboard shortcuts. Every toolbar action and code change is tracked with a 50-step history stack.
Converts all SVG attributes to camelCase React equivalents (stroke-width → strokeWidth, class → className) for instant paste into .jsx/.tsx files.
Encodes the SVG as a data URI and generates a ready-to-paste CSS background-image property — no external file needed.
Removes fixed width/height attributes and ensures viewBox is set, making the SVG scale fluidly in any container.
Strips Inkscape, Illustrator and Figma-specific artefacts that bloat file size by 20-40% without affecting visual output.
Insert ready-made SMIL animation code (spin, pulse, fade-in, scale) directly at the cursor position in your SVG.
Who uses this tool?
PursTech vs Method Draw vs SVGOMG vs SVG-Edit
SVG editor feature comparison
| Feature | PursTech | Method Draw | SVGOMG | SVG-Edit |
|---|---|---|---|---|
| Live split-pane preview | ✓ | ✓ | — | ✓ |
| Shape toolbar | ✓ | ✓ | — | ✓ |
| 10+ templates | ✓ | — | — | — |
| Undo / Redo (Ctrl+Z) | ✓ | ✓ | — | ✓ |
| React JSX export | ✓ | — | — | — |
| CSS Data URI copy | ✓ | — | — | — |
| Make Responsive button | ✓ | — | — | — |
| SVG optimizer | ✓ | — | ✓ | — |
| Animation snippets | ✓ | — | — | — |
| Element tree view | ✓ | — | — | ✓ |
| Color palette extraction | ✓ | — | — | — |
| Dark/light preview toggle | ✓ | — | ✓ | — |
| PNG export (multi-scale) | ✓ | — | — | ✓ |
| No install, runs in browser | ✓ | ✓ | ✓ | ✓ |
How to Use the SVG Editor
❓ Frequently Asked Questions
What is SVG and when should I use it instead of PNG or JPEG?+
How do I convert an SVG for use in a React component?+
What does 'Make Responsive' do and when should I use it?+
What SVG artefacts does the optimiser remove?+
How do I add animation to an SVG element?+
SVG on the Web — What Developers Need to Know
SVG has become the default format for icons, logos and UI illustrations in modern web development — and for good reason. Unlike raster images, SVGs can be styled with CSS (changing fill colours based on theme or user interaction), manipulated with JavaScript (animating individual paths on hover), and inlined directly in HTML (no extra HTTP request). The result is sharper graphics, smaller file sizes, and more interactive possibilities than any raster format can offer.
The most common workflow issue developers face is SVGs exported from Figma, Sketch or Illustrator that are bloated with metadata those tools add automatically. An icon that should be 500 bytes ends up as 4KB because of Figma's data-name attributes, Inkscape's namespace declarations and editor metadata. Running the optimiser in this tool strips all of that — often reducing file size by 30-60% — without touching the visible paths or colours. For large icon libraries, this adds up to meaningful performance gains.
For React developers, the React JSX export feature saves a tedious manual step. React requires camelCase attribute names (strokeWidth, not stroke-width) and className instead of class — rules that aren't always obvious to developers encountering SVG in React for the first time. The converter handles all the attribute name transformations automatically and wraps the output in a functional component with configurable width, height and className props, ready to drop into any component file.