🔷

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

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

Seal
🔴

Stamp Generator

Lay out Chinese and international seals: 189 presets, QR and barcode marks, artwork upload, numbered batches, tiled sheets and 16 export formats
Live preview
🏷️

Label Designer

Online label layout tool with barcodes, QR codes, text and shapes, live preview and PNG, JPEG, SVG or PDF export
Icon
🎨

Favicon Generator

Generate favicons online from an uploaded image or from text and emoji, with multiple sizes and a bundled download
Certificate
🏅

Award Certificate Maker

240 award presets, 13 paper substrates, 24 realistic backgrounds and 18 exports
Avatar
🟣

Social Avatar Studio

Studio for 52 China and global platforms: 108 effects, 128 badges, 56 motion presets, six-stage pipeline plus nine timeline controls, 24 styles, 32 exports, adaptive-palette animated GIF (loop / easing / direction / particle trails), layered PSD/TIFF/Lottie and batch output
Dieline
📦

Folding Carton Dieline Generator

Build folding carton dielines from your dimensions: ten styles, editable die-cut and press values, a dozen artwork formats per face, imposition costing, press marks, fifteen exports and a 3D folding preview.
Local only
😂

Meme Generator

Upload an image or start from a blank canvas, add stroked text top and bottom, set size and position, preview live and export PNG. Everything happens in your browser, nothing is uploaded
Local
✍️

Online Signature Maker

Draw a signature by hand or generate one from a name, with smooth adjustable strokes, export transparent PNG and SVG
⏫︎