TFT

Free Online SVG Editor

Create and edit SVG vector graphics directly in your browser. No need for expensive software. Draw shapes, add text, apply colors, and export your design.

SVG Editor Online

Edit and preview SVG code in real-time

100%
SVG

SVG Editor Tips

  • Edit SVG code in the left panel and see changes in real-time
  • Use the zoom controls to adjust the preview size
  • Toggle the grid to help with alignment
  • Download your edited SVG or copy the code

How the SVG Editor Works

This online SVG editor gives you a split-screen workspace: paste or write SVG code on the left, see it render instantly on the right. No upload required, no server processing - everything runs in your browser.

The preview panel uses React's dangerouslySetInnerHTML to render your SVG markup directly. Changes trigger a re-render within milliseconds, so you can tweak coordinates, colors, or paths and see results immediately.

What you can edit:

  • Shape attributes (cx, cy, r for circles; x, y, width, height for rectangles)
  • Fill and stroke colors (hex, rgb, named colors)
  • Path data (d attribute with M, L, C, Q, Z commands)
  • Text content, font-size, font-family
  • Transform attributes (translate, rotate, scale, skew)
  • Opacity, stroke-width, stroke-dasharray

Zoom controls let you inspect details at 50%-200% scale. Toggle the grid overlay to check alignment. Download your edited SVG or copy the code directly to clipboard.

When You'd Actually Use This

Quick icon tweaks

A designer sends you an SVG icon but the stroke is 1.5px instead of 2px. Instead of opening Illustrator, paste the code, change stroke-width="1.5" to stroke-width="2", download. Done in 30 seconds.

Debugging broken SVGs

An SVG exported from Figma isn't rendering correctly. Paste it here to see if the issue is in the markup itself - maybe a malformed path or missing namespace declaration.

Learning SVG by experimentation

New to SVG? Type <circle cx="50" cy="50" r="40" fill="blue"/> and watch it appear. Change the radius, move the center, try different colors. Immediate feedback beats reading documentation.

Inlining SVGs for performance

You need to inline an SVG directly into HTML to avoid an HTTP request. Paste the file, remove any <?xml?> declarations, copy the clean markup, drop it into your HTML.

Fixing SVG export issues

Some tools export SVGs with unnecessary metadata, duplicate IDs, or bloated group structures. Paste the export here, strip out the junk manually, save a cleaner version.

Creating simple graphics without design software

Need a basic shape for a presentation? Write the SVG directly - a rectangle here, a circle there. No need to fire up heavy design software for simple graphics.

What to Know Before Using

Browser-based processing.Your SVG code never leaves your browser. This is good for privacy but means very large SVGs (thousands of lines) might cause lag when typing.

No validation.The editor shows whatever you paste, even if it's invalid SVG. Broken markup might render as nothing or partially. Check the browser console for XML parse errors.

External resources won't load.If your SVG references external images via <image xlink:href="...">, they won't display due to CORS restrictions. Inline or base64-encode images instead.

Zoom affects preview only.The zoom slider changes how you see the preview, not the actual SVG dimensions. Downloaded files retain their original viewBox and width/height.

Pro tip: If your SVG looks tiny or huge, check the viewBox attribute. A viewBox of "0 0 24 24" with width="500" will scale up. Adjust width/height or viewBox to control display size.

Common Questions

Can I edit SVG files from my computer?

Open the SVG file in a text editor (Notepad, VS Code, etc.), copy the contents, paste into this editor. After editing, click Download to save the modified file.

Why isn't my SVG rendering?

Check for XML syntax errors - unclosed tags, missing quotes around attributes, invalid characters. Also verify the SVG has a proper xmlns declaration. Open browser DevTools console to see specific parse errors.

Can I animate SVGs here?

You can write SMIL animations (<animate> elements) or CSS animations in a <style> block, but the preview may not show animation playback. Use a browser to test animated SVGs.

How do I change the SVG dimensions?

Modify the width and height attributes on the root <svg> element. For responsive SVGs, remove width/height and rely on viewBox plus CSS sizing.

What's the difference between viewBox and preserveAspectRatio?

viewBox defines the coordinate system (e.g., "0 0 100 100"). preserveAspectRatio controls how the SVG scales within its container - whether it stretches or maintains proportions. Default is "xMidYMid meet" (centered, letterboxed).

Can I convert this SVG to PNG?

This editor doesn't export PNG. Download the SVG, then use a converter tool or open in a browser and screenshot. For programmatic conversion, use libraries like sharp (Node.js) or canvas (browser).

Is there a limit to SVG file size?

No hard limit, but very large SVGs (10,000+ lines) may cause typing lag since the preview re-renders on every keystroke. For complex files, consider using a desktop editor like Inkscape.