Updated

How to edit an SVG file

An SVG is a text file that describes shapes, so you can edit it visually in a vector editor or directly as code. Pick the method that matches the change you need:

MethodBest forCostInstall
Online SVG editor (Vectopea)Moving, reshaping and recolouring shapes; editing paths node by nodeFreeNone
Code editorSmall precise tweaks: one colour, a stroke width, an attributeFreeNone
InkscapeHeavy illustration work, PDF/EPS, bitmap tracingFreeDesktop app
Adobe IllustratorPrint workflows and existing .ai projectsSubscriptionDesktop app

Method 1: Edit an SVG online

This works on any computer, including school or work machines where you can't install software.

  1. Open the free online SVG editor and drop your .svg file on the page, or choose File → Open SVG in the editor.
  2. Move, scale or rotate a shape: press V, click it, and drag it or its handles. Type exact values in the Properties panel.
  3. Recolour it: with the shape selected, click the fill or stroke swatch in the top bar.
  4. Reshape a path: press A for direct selection, then drag anchor points and Bézier handles. Double-click a segment to add a point, Alt-click a point to switch between smooth and corner, and press Delete to remove selected points.
  5. Edit text: double-click a text object and type.
  6. Export: use Export SVG (readable or minified) or Export PNG from the File menu.

The SVG tab in the right panel shows the exact markup being exported. You can edit it there and apply it back to the canvas.

Quick edits without opening an editor

Method 2: Edit the SVG code

Open the file in any text editor, or paste it into the SVG code editor for a live preview. The attributes you'll change most often:

To changeEdit thisExample
Fill colourfillfill="#7c4dff"
Outlinestroke, stroke-widthstroke="#000" stroke-width="2"
Displayed sizewidth, height on <svg>width="48" height="48"
Visible areaviewBox on <svg>viewBox="0 0 24 24"
Positionx/y, cx/cy or transformtransform="translate(10 0)"
TextThe content of <text><text x="10" y="20">Hello</text>

Path shapes live in the d attribute of <path>. Editing those numbers by hand is slow; paste the value into the SVG path editor to see every point.

Method 3: Edit an SVG in Inkscape

  1. Install Inkscape from inkscape.org and open the file with File → Open.
  2. Use the Select tool (S) to move shapes and the Node tool (N) to edit paths.
  3. Save with File → Save As → Optimized SVG or Plain SVG to avoid Inkscape-specific metadata.

Method 4: Edit an SVG in Adobe Illustrator

  1. File → Open the SVG. It opens as editable vector artwork.
  2. Edit with the Selection (V) and Direct Selection (A) tools.
  3. Save with File → Export → Export As → SVG. Choose "Presentation Attributes" styling for the most compatible output.

Common problems

The file opens as a blank or black shape

Shapes without a fill render black, and shapes outside the viewBox are invisible. Open the file in the SVG viewer to check the viewBox and the rendered result.

Fonts look different after editing

SVG text uses fonts installed on the viewer's device. Embed the font or convert the text to outlines in your design tool before sharing.

The file got much bigger after saving

Desktop editors add metadata. Run the final file through the SVG optimizer.

Edit SVG in your browser

Free, no sign-up, files stay on your device.

Open the SVG editor

Frequently asked questions

Can I edit an SVG file for free?

Yes. Vectopea runs in your browser and is free with no account. Inkscape is a free desktop app. You can also edit SVG markup in any text editor.

Can I edit an SVG in Word or Photoshop?

Word can recolour and resize an inserted SVG but can't edit its paths. Photoshop opens SVG as a flattened bitmap, so the file stops being vector. Use a vector editor instead.

How do I edit the text in an SVG?

If the text is a <text> element, double-click it in a vector editor or change the words in the markup. If it was converted to outlines (paths), it is no longer editable text; retype it with the text tool.

How do I change the colour of an SVG without an editor?

Use a colour-swap tool such as Vectopea's SVG color changer, or search the markup for fill and stroke values and replace them.