Home › Image Tools › SVG Editor

SVG Editor

Open or paste any SVG and edit it right in your browser. Click a shape to select it, drag to move it, and change its fill, stroke, opacity, text and position. Add rectangles, ellipses, lines, stars, freehand paths and text, and watch the code update as you go.

Last updated:

Advertisement
Advertisement

How to use the SVG Editor

  1. Open your SVG with Open SVG, drop the file on the canvas, or paste SVG code. A sample drawing is loaded to try things out.
  2. Select a shape by clicking it on the canvas or in the Elements list, then drag it or nudge it with the arrow keys (Shift moves 10 steps).
  3. Edit its properties in the panel: fill and stroke colors, stroke width, opacity, text and exact coordinates.
  4. Add new shapes with the Rect, Ellipse, Line, Star, Draw and Text tools. Set the fill, stroke and width for new shapes on the right of the toolbar.
  5. Fine-tune the code in the SVG code box if you like; valid changes apply automatically.
  6. Save with Download SVG, Copy code or Download PNG.

Keyboard shortcuts

KeyAction
V, R, E, L, S, P, TSelect, Rectangle, Ellipse, Line, Star, Draw, Text tool (when the canvas has focus)
Arrow keysNudge the selected element by one screen pixel; with Shift, by ten
Delete / BackspaceDelete the selected element
Ctrl/Cmd + DDuplicate the selected element
] and [Bring forward / send backward within its group
Ctrl/Cmd + Z, Ctrl/Cmd + YUndo, redo (Ctrl/Cmd + Shift + Z also redoes)
Shift while drawingSquare, circle or 45° line
EscDeselect and return to the Select tool

SVG shapes and their key attributes

ElementPosition and sizeNotes
<rect>x, y, width, heightrx and ry round the corners
<circle>cx, cy, rCenter point and radius
<ellipse>cx, cy, rx, rySeparate horizontal and vertical radius
<line>x1, y1, x2, y2Needs a stroke to be visible; fill has no effect
<polygon>pointsA closed shape through a list of x,y pairs; polyline is the open version
<path>dCommands such as M (move), L (line), C (curve), A (arc) and Z (close)
<text>x, yy is the baseline; text-anchor sets start, middle or end alignment
<g>transformGroups elements; fill and stroke set on a group are inherited by its children

How the viewBox works

The viewBox attribute (min-x min-y width height) defines the coordinate system that every shape uses, while width and height set how large the image is displayed. A drawing with viewBox="0 0 400 300" can be shown at 400 × 300 or 1600 × 1200 pixels and stays perfectly sharp. If an opened file has no viewBox, the editor adds one based on its width and height so it can be scaled on screen. To crop or add margin, change the viewBox values in the Document panel (shown when nothing is selected).

Frequently asked questions

How do I change the color of an SVG?

Open the SVG, click the shape you want to recolor and pick a new Fill color (the inside) or Stroke color (the outline) in the panel. If the whole icon is one group, select the group in the Elements list and set its fill, or click each shape. You can also type values such as #ff0000, red, none or currentColor.

Is my SVG uploaded anywhere?

No. The file is read and edited entirely in your browser. Nothing is sent to a server, and the current drawing is only kept in your browser's local storage so it survives a page reload.

Why does dragging add a transform attribute?

Rectangles, circles, ellipses, lines, text and images are moved by changing their x/y or center coordinates. Paths, polygons, groups and anything that already has a transform are moved by adding or updating translate(x y) in the transform attribute, which keeps the original path data unchanged.

Can I edit the SVG code directly?

Yes. The code box shows the full SVG markup and updates whenever you edit visually. Type in it and the drawing updates after a short pause if the code is valid XML. If there is an error, a message explains it and the drawing stays as it was until you fix it.

Why can't I click a shape?

Shapes can be covered by others or have no fill, or the fill may be set to none so only the outline is clickable. Use the Elements list to select any element directly, or Send backward on the shape that is in the way.

Does it keep gradients, filters and CSS styles?

Yes. Definitions such as gradients, clip paths, masks, filters and embedded style sheets are kept and rendered. Inline style values override attributes, so when you change a color the editor removes that property from the inline style and writes it as an attribute.

Is this a replacement for Inkscape or Illustrator?

It is meant for quick edits: recoloring icons and logos, fixing text, moving and adding simple shapes and cleaning code. For complex illustration work such as boolean path operations or node-by-node editing, use a desktop vector editor, or our SVG Path Editor for path data.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

SVG OptimizerMinify SVG files: strip metadata, comments and editor junk, round numbers, compare sizes.SVG ViewerOpen or paste SVG code to preview it live with zoom, backgrounds, size info and PNG export.SVG to PNGConvert SVG graphics to PNG or JPEG at any scale.SVG Path EditorEdit an SVG path d attribute visually: drag points, edit commands, convert, scale and minify.Background RemoverRemove image backgrounds automatically with AI.Photo EnhancerOne-click auto enhance: fix exposure, contrast, color cast and sharpness, one photo or a batch.Remove Object from PhotoBrush over unwanted objects, people or text and fill the area with matching background.Make Image TransparentRemove a white or solid-color background and save a transparent PNG, right in your browser.Photo to CartoonTurn photos into cartoons with smooth colors and bold outlines. Free, private, no upload.Add Watermark to PhotoAdd a text or logo watermark to one or many photos at once.Blur Image & Face Pixelate ToolBlur or pixelate faces, plates and backgrounds in a photo.Pixelate Image & Pixel Art ConverterTurn any picture into pixel art with retro palettes and dithering.Add Text to ImageAdd styled text layers with outline and shadow to any photo, then downloadRound Corners ImageGive any picture rounded, circle or squircle corners and save a transparent PNG.Grayscale Image ConverterTurn color photos into black and white with luma, luminance or average methods and sepia.Photo FiltersApply 27 one-click photo filters like Vintage, Noir and Teal & Orange with an intensity slider.Photo EditorEdit photos online: brightness, contrast, saturation, crop, rotate, flip and filters with undo.Image SharpenerSharpen soft or slightly blurry photos with a real unsharp mask and before/after view.Invert Image ColorsTurn any picture into a color negative, with R/G/B channel toggles and an intensity slider.Screenshot BeautifierPut screenshots on gradient backgrounds with padding, rounded corners, shadow and a browser frame.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.Online PaintDraw and paint in your browser: brushes, shapes, fill bucket, text, undo and PNG export.Photo to SketchTurn any photo into a pencil, charcoal or color sketch in your browser and download it.GIF Frame ExtractorSplit an animated GIF into PNG frames with delays, a sprite sheet and ZIP download.Photo Frame MakerPut photos in polaroid, film strip, gallery, rounded or shadow frames with a caption.Duotone GeneratorTurn any photo into a bold two-color duotone image with presets, custom colors and intensity.Glitch Image EffectAdd RGB split, scanlines, slice shifts and noise to a photo for a digital glitch look.Add Date Stamp to PhotoStamp the EXIF or a custom date on photos in a retro orange camera font. Batch and ZIP download.Add Drop Shadow to ImageAdd a drop, long or reflection shadow to PNGs and photos and save a transparent PNG.Add Text to GIFPut captions on animated GIFs with outline, position and frame range, then download.Blend Two ImagesOverlay two photos with opacity, 16 blend modes, fades and free positioning, then download.Blur Photo BackgroundBlur the background of any photo for a portrait-mode look. AI subject detection, no upload.Brick Mosaic GeneratorTurn a photo into a toy-brick stud mosaic with a parts list and printable build guide PDF.Online Document ScannerTurn photos of paper into clean scans: auto edge detection, perspective fix, multi-page PDF.Add Film Grain to PhotoAdd realistic analog film grain, light leaks, fade and vignette to any photo, then download.GIF Speed ChangerSpeed up or slow down an animated GIF, or set each frame's delay, without losing quality.Halftone GeneratorTurn images into mono or CMYK halftone dots and lines; export PNG or SVG.Color Splash EffectKeep one color, or a brushed area, in color and turn the rest of the photo black and white.Old Photo Face RestorerRestore blurry and damaged faces in old photos with AI (GFPGAN) in your browser. Free, no upload.Image Opacity ChangerMake an image semi-transparent with an opacity slider or fade, and save a transparent PNG.Photo to WatercolorTurn a photo into a watercolor painting with soft washes, color bleed, wet edges and paper texture.Product Photo White BackgroundRemove the background and center products on pure white at 2000 x 2000 for marketplaces. Batch.Redact ImageBlack out or pixelate private info in screenshots; burned in, metadata stripped, PNG download.Rubber Stamp MakerDesign round or rectangular stamps with curved text, borders, stars and grunge ink; PNG or SVG.Signature Background RemoverTurn a signature photo or scan into a clean transparent PNG: threshold, ink color, auto-crop.Skin SmoothingSmooth skin in portraits with face-aware retouching that keeps eyes, lips and skin texture sharp.Straighten ImageFix a tilted photo: rotate by any angle with a grid, auto-crop the corners or level the horizon.AI Style TransferRepaint your photo in the style of any painting or pattern with AI, right in your browser.Symmetry Drawing ToolDraw mandalas and kaleidoscope art with radial and mirror symmetry, glow brushes and PNG export.Virtual Background MakerDesign 1920×1080 video call backgrounds with your name, title, logo, blur and branded templates.EXIF EditorEdit photo EXIF and IPTC: date taken, camera, GPS location, copyright and caption, in batch.Face Symmetry TestUpload a face photo to see left-left and right-right mirror composites and a symmetry score.Sports Tactics BoardDraw plays on basketball, soccer, football and hockey diagrams with players, arrows and animated frames.Add Outline to PNGAdd a stroke outline around transparent PNG cutouts: width, color, softness and double borders.Dehaze ImageRemove haze, fog and smog from photos with the dark channel prior. Free, private, in your browser.HDR Photo EffectGive any single photo an HDR look with local tone mapping, detail boost and a strength slider.Low Light Photo EnhancerBrighten dark and night photos with an adaptive tone curve plus noise reduction.Photo StackingStack photos online: star trails (lighten), noise reduction (mean) and remove passers-by (median).Image Noise RemoverRemove grain and color noise from photos with median, bilateral or non-local means filters.Image Dithering ToolDither photos with Floyd-Steinberg, Atkinson or Bayer in 1-bit, Game Boy, CGA and retro palettes.Perspective CorrectionDrag 4 corners to straighten skewed photos of signs, screens and whiteboards, then download.Photo Mosaic MakerBuild a big picture out of many small photos by color matching, then export a high-res PNG.Photo to Oil PaintingTurn a photo into an oil painting with brush size, detail, impasto and canvas texture.Red Eye RemoverClick on red eyes to fix them automatically: adjustable threshold, undo, download the photo.Tilt Shift EffectMake photos look like miniature models with an adjustable tilt-shift focus band and blur.Colorize Black and White PhotoAdd natural color to old black and white photos with AI that runs in your browser. No upload.Draw on ImageAnnotate photos and screenshots with arrows, boxes, text, highlighter and numbered steps.
See all 69 Photo Effects & Editing →