SVG Editor
Paste SVG source to preview, recolor, resize, optimize, and export it — as SVG or PNG. Runs entirely in your browser; nothing you paste is ever sent anywhere.
Quick Learn
SVG is just XML — an <svg> element containing shapes (<rect>, <circle>, <path>, and so on) described by attributes like fill, stroke, and coordinates. That's what makes it editable as text: change a fill attribute and the color changes; change width and height and the rendered size changes, all without touching the underlying shapes.
This editor works directly on that source: it reads out the colors already used in the file so you can swap them without hunting through the markup by hand, lets you resize by changing the root width/height, and can hand the source to SVGO — the standard SVG optimizer — to strip redundant precision, comments, and metadata that design tools often leave behind. Preview rendering happens through an image element rather than injecting the markup directly into the page, which also means any script embedded in a pasted SVG never runs. Everything happens locally in your browser.
Best Practices
- •Run Optimize before shipping an SVG to production — icons exported from design tools (Figma, Illustrator, Sketch) often carry unnecessary precision, unused IDs, and editor metadata that SVGO strips safely.
- •Only colors set as direct fill/stroke attributes are detected and editable here — colors defined through CSS classes or a <style> block inside the SVG won't show up in the color list.
- •Resizing changes the width/height attributes, not the viewBox — that's usually what you want (the artwork scales to the new size), but if the SVG has no viewBox at all, add one to keep proportions predictable across different sizes.
- •Exporting to PNG rasterizes at your current width/height, so bump those up first if you need a large, crisp PNG — a vector source scales cleanly to any size, unlike a raster image.
More Image & Media Tools
QR Code Generator
Generate a QR code from text, a URL, or anything else, with adjustable size and error correction.
Barcode Generator
Generate Code128, EAN-13, and other common barcodes.
Image Compressor
Shrink image file size without leaving your browser.
Image to Base64
Convert an image to a base64 data URI, and back.
Image Format Converter
Convert between PNG, JPEG, and WebP.
Favicon Generator
Generate a full favicon set from one image.
Frequently Asked Questions
Is my SVG uploaded anywhere?
No. Parsing, editing, optimizing, and exporting all happen entirely in your browser — nothing you paste is sent to a server or stored anywhere.
Is it safe to paste an SVG from somewhere I don't fully trust?
The preview renders through an <img> element rather than injecting the markup directly into the page's DOM — browsers disable script execution and external resource loading for SVGs loaded that way, so an embedded <script> tag or event handler in a pasted SVG won't run.
What does Optimize actually change?
It runs SVGO, the standard SVG optimizer, which removes things like editor metadata, comments, unnecessary decimal precision in coordinates, and redundant attributes — shrinking the file without changing how it renders.
Why didn't a color I can see in the preview show up in the color list?
Only fill and stroke values set as direct attributes on an element are detected. Colors applied via a CSS class, an inline style attribute, or a <style> block inside the SVG aren't picked up by the current color scanner.
Can I convert a raster image (PNG/JPEG) into this kind of editable SVG?
No — that would require vectorizing a raster image (tracing its pixels into shapes), which this tool doesn't do. This editor works on SVGs you already have; use the Image Format Converter tool for raster-to-raster conversions.
Want the engineering deep-dives behind tools like this one?