Edit an SVG file

Change a color, a word or a path in the file and save it again.

How to Use

Open an SVG and it is on the canvas with the Selection tool ready and its structure in the Layers panel. Click a shape and change its fill, drag an anchor with the Direct Selection tool, retype a word with the Type tool, then export it as an SVG again with the options you want.

  1. Click Open an SVG file, drop the file anywhere on the page, or paste the SVG code with Ctrl+V. It opens on an artboard at its own size, and the Layers panel lists its groups and paths.
  2. Click a shape with the Selection tool (V) and pick a new fill or stroke in the Swatches or Color panel. To reshape it, switch to the Direct Selection tool (A) and drag an anchor or a handle; the Pen tool (P) adds and removes anchors.
  3. Double-click text with the Type tool (T) to retype it; the Character panel changes the font and size. Combine or cut shapes with the Pathfinder panel (Window > Pathfinder).
  4. Choose File > Export > Export As…, pick SVG (svg) and click Export. SVG Options sets how styles are written (presentation attributes, inline or internal CSS), whether type stays text or is converted to outlines, the decimal places and Minify. File > Save As… writes an .ai file or a PDF instead.
Is my SVG uploaded?
No. The file is read and edited in your browser, and the exported file is written straight to your computer. An SVG opens unless it holds more than 120 MB of drawing (embedded pictures don't count) or 250,000 elements; past that it is refused with a message instead of freezing the tab.
Can I edit the path nodes, or just the colors?
Yes. With the Direct Selection tool (A) you drag anchors and handles one at a time; the Pen tool (P) adds or removes an anchor, and Object > Path has Simplify, Offset Path, Outline Stroke and Add Anchor Points. This is the difference from editors that only recolor.
Can I see or copy the SVG code?
There is no code panel. Select the artwork and press Ctrl+C: the clipboard carries the SVG code (Include SVG Code in Preferences > Clipboard Handling is on by default), so you can paste it into a text editor or an HTML file. The other way round, paste SVG code onto this page with Ctrl+V and it opens.
How do I make the exported SVG smaller?
In SVG Options tick Minify and lower the decimal places (3 is the default; 1 or 2 is enough for icons), and choose Internal CSS so repeated styles are written once. Object > Path > Simplify removes anchors a path does not need.
Why convert the text to outlines?
An SVG with text needs its font on the viewer's machine, or the browser substitutes one. Setting Font to Convert to Outlines in SVG Options (or Type > Create Outlines before exporting) turns the letters into paths that look the same everywhere; keep a copy with live text for later edits.
Can I save it as an .ai file?
Yes: File > Save As… and choose .ai (PDF-compatible) (in Safari and Firefox: AI file (.ai)). It opens elsewhere as plain artwork with the paths, colors and text. The SVG to AI page does it in one step.