🔷

SVG Shape Generator

Pick a rect, circle, line, polygon, path or text, tune fill stroke and coordinates, preview and export SVG.
SVG 📂 Design 👤 ToolWorld 🏷️ v1.1.12
Loading...

SVG Shape Generator

Pick a shape · tune attributes · live preview and export SVG

SVG Source

How to Use

📖 Tool Introduction


The SVG Shape Generator is a free online tool that helps front-end and visual people produce scalable vector graphics code quickly. Hand-writing SVG tags means constantly second-guessing attribute names, coordinates and the namespace, and this tool turns the most common shapes into six visual buttons: rectangle, circle, line, polygon, path and text. You simply pick a shape and tune the fill colour, stroke colour, stroke width and the matching coordinates in the left panel, and the preview on the right draws the vector shape in real time while the standards-compliant SVG source is produced below. The text shape accepts custom content and font size, and the path shape lets you hand-write Bezier curves with commands such as M, L and C. The preview uses a checkerboard background so transparent areas are obvious, the generated code can be copied in one click, and it can also be downloaded straight away as a .svg file that stays sharp whether you drop it into a web page or a design mockup. The tool builds the SVG DOM and serialises it entirely in your browser with no network request, ships in Simplified Chinese, Traditional Chinese and English, and lets you draw on a phone just as easily as on a desktop. Because the preview and the exported code are produced from the same namespace-built DOM, what you see in the checkerboard box is byte-for-byte what you get in the downloaded file, with no drift between the visual and the markup. This makes the tool handy for icons, logos, dividers and small diagrams that must stay razor sharp at any size, since vector paths never pixelate the way a raster export would. You can tweak a rounded rectangle, swap it for a Bezier curve, or add a wordmark on top, all without leaving the page or opening a separate vector editor.

✨ Key Features


  • Six basic shapes: rectangle, circle, line, polygon, path and text switched in one tap
  • Visual attribute panel: fill, stroke and coordinates adapt to the shape, true to what you see
  • Standards-based SVG output: builds the DOM through a namespace and serialises it for direct use
  • Checkerboard preview: transparent areas are obvious, so shape boundaries are easy to check
  • Copy and download: copy the source in one click, or export a standalone .svg vector file
  • Bezier path example: a built-in smooth-curve sample helps you get started fast

📝 How to Use


  1. Click the shape type you want to draw at the top
  2. Tune the fill colour, stroke colour, stroke width and matching coordinates on the left
  3. Watch the preview on the right and confirm the shape and position look right
  4. Click generate SVG or read the auto-updated code in the source area
  5. Click copy to paste the code into your project, or download SVG to save a vector file

⚠️ Notes


  • Canvas coordinates: all coordinates are based on a 300 by 200 viewport, x grows right and y grows down
  • Stroke width: the line shape has no fill; a stroke width of 0 makes it invisible
  • Path syntax: path d uses standard SVG commands separated by spaces or commas
  • Text rendering: text content is written safely, so special characters never break the SVG structure
  • Fully local: the SVG is built and serialised in the browser with no network request at all

Related

⏫︎