SVG Editor

Edit SVG with a live two-way link between code and canvas — click any shape to jump straight to its code, click code to highlight the shape on canvas, and nudge selected shapes with the arrow keys. Export as JSX, data URI or PNG — everything runs locally in your browser.

Export

Source

638 B

Preview

100%
Click any shape to select it and jump to its code — drag, or use arrow keys (Shift = ×10) to move it.

About this tool

  • Two-way selection — click any shape in the preview to select it and jump straight to its line of code; put your cursor on an element in the code to highlight the matching shape on the canvas.
  • Keyboard nudging — select a shape and press the arrow keys to move it by 1px (hold Shift for 10px steps). Dragging works too.
  • Truly local — parsing, editing and export all run in your browser; nothing is uploaded.
  • Export anywhere — copy as JSX or data URI, rasterize to PNG, or clean up the source with SVGO.

Frequently asked questions

How does the two-way linking between code and canvas work?

Click any shape in the preview and the editor selects it and jumps to its line of source; click into an element in the code and the matching shape lights up on the canvas. The link is live, so it keeps working as you edit.

Can I move shapes without editing coordinates by hand?

Yes — select a shape and press the arrow keys to nudge it by 1px, or hold Shift for 10px steps. Dragging a shape on the canvas works too, and the source updates to match.

What export formats does it support?

Copy the raw SVG, convert it to a React JSX component, copy it as a Base64 or URL-encoded data URI for CSS and img tags, or rasterize to PNG at 1×, 2× or 3× scale. There's also one-click SVGO optimization that reports how many bytes it saved.

What does Optimize do?

It runs SVGO, the standard SVG minifier: it strips metadata, comments and redundant attributes and rewrites paths more compactly, without changing how the image renders. The status line shows the before/after size and the percentage saved.

Is my SVG uploaded to a server?

No. Parsing, editing, optimization and PNG rasterization all run locally in your browser, and your working file is auto-saved in local storage on this device. Nothing leaves your machine.

Can it open an SVG file from disk?

Yes — drag and drop an .svg file anywhere onto the page, or paste its markup into the code pane. The editor keeps the source as text, so round-tripping through the tool never silently rewrites your file.