Visual SVG Shape Maker
Add shapes, drag the numbers and colors, and see the result live. Get valid SVG markup without learning the syntax first.
Design shapes, stars and text visually and get clean SVG code instantly. Copy it or download it as SVG or PNG. Fast, free and no signup.
Pick a rectangle, circle, star, polygon, line, text or path.
Change size, position, colors, stroke, opacity and rotation.
Copy the SVG code, CSS or Base64, or save an SVG or PNG file.
An SVG code generator lets you design vector graphics visually and get the finished SVG code without writing a single tag by hand. This free online SVG generator helps you create rectangles, circles, ellipses, lines, regular polygons, stars, text and custom paths, then adjust the size, position, fill color, stroke, opacity and rotation of every shape while a live preview updates instantly. When your design is ready, copy the clean SVG code, grab it as a CSS background data URI or a Base64 string, or download it as an SVG file or a high-resolution PNG. Because SVG stands for Scalable Vector Graphics, the image stays perfectly sharp at any size, from a tiny 24 pixel icon to a full-width hero banner, and the files are usually much smaller than PNG or JPG images. Web developers use an SVG maker to build icons, logos, badges, shapes, dividers, placeholders and decorative backgrounds, designers use it to prototype quick vector shapes, and bloggers and marketers use it to create lightweight graphics that load fast and help pages score better on speed. You can start from a size preset such as an icon, a standard canvas or a social media image, stack as many layers as you need, reorder them with one click and minify the output for production. Everything runs in your browser, so your design is never uploaded or stored, and there is no signup, no watermark and no limit on how many SVG files you can create.
Whether you need a simple icon, a logo placeholder, a badge, a divider or a social image background, this free online SVG maker gives you clean code without opening a design program. Pick a canvas size, add shapes, style them with colors and strokes, then copy the SVG, CSS or Base64 code or download an SVG or PNG file. It runs in your browser on Windows, Mac, Linux, Android and iPhone, needs no signup and never uploads your design.
Add shapes, drag the numbers and colors, and see the result live. Get valid SVG markup without learning the syntax first.
Copy plain SVG code, a ready CSS background-image data URI, or a Base64 string for embedding in HTML, CSS or JavaScript.
Save a crisp SVG file for the web, or export a PNG at 1x, 2x or 3x when you need a regular image.
SVG (Scalable Vector Graphics) is an XML-based image format that describes shapes with code instead of pixels. Because a browser draws the shapes mathematically, an SVG never gets blurry when it is scaled, and it can be styled with CSS, animated and even changed with JavaScript. SVG is supported in all modern browsers and can be used inline in HTML, as an image file or as a CSS background.
| Feature | SVG | PNG | JPG |
|---|---|---|---|
| Type | Vector (shapes) | Raster (pixels) | Raster (pixels) |
| Scales without blur | Yes | No | No |
| Best for | Icons, logos, shapes, diagrams | Screenshots, graphics with transparency | Photographs |
| Transparency | Yes | Yes | No |
| Editable with code or CSS | Yes | No | No |
| Shape | SVG element | Main attributes |
|---|---|---|
| Rectangle | <rect> | x, y, width, height, rx |
| Circle | <circle> | cx, cy, r |
| Ellipse | <ellipse> | cx, cy, rx, ry |
| Line | <line> | x1, y1, x2, y2, stroke |
| Polygon and star | <polygon> | points |
| Text | <text> | x, y, font-size, font-family, text-anchor |
| Custom path | <path> | d |
This is what a basic SVG with a rounded rectangle and a circle looks like:
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"> <rect x="10" y="10" width="180" height="100" rx="12" fill="#eef2ff" stroke="#4f46e5" stroke-width="3"/> <circle cx="100" cy="60" r="30" fill="#4f46e5"/> </svg>
<img> tag, like any other image.background-image data URI, which saves an extra file request.Start from a preset and change it later, or enter your own width and height. The viewBox is set for you, so the graphic scales cleanly.
| Preset | Size | Good for |
|---|---|---|
| Icon | 24 x 24 or 64 x 64 | UI icons, buttons and small symbols |
| Square | 100 x 100 | Avatars, badges and simple logos |
| Standard | 400 x 300 | Illustrations and diagrams |
| Large | 800 x 600 | Hero graphics and detailed artwork |
| Social | 1200 x 630 | Link preview and social sharing images (export as PNG) |
The SVG maker works in any modern browser, so you can design on a phone, tablet or computer. Add shapes with a tap or a click, copy the code into your project, or download the SVG or PNG file to your device.
Your design is created inside your browser and is not uploaded, saved or shared by this tool. If you paste SVG code from an unknown source into your own website, review it first, because SVG files can contain scripts.
SVG work often touches images, colors and markup. These free tools can help:
Find answers to common questions about creating SVG code online.
An SVG code generator is a tool that lets you design vector shapes visually and gives you the SVG code for them. You choose shapes, colors and sizes, and the tool writes the markup for you.
Yes. It is free with no signup, no watermark and no limit on the number of SVG files you can create.
Paste the SVG code directly into your HTML to use it inline, or save it as a file and load it with an image tag. For CSS, copy the data URI from the CSS tab and use it as a background-image value.
Yes. Use Download PNG and choose 1x, 2x or 3x to get a sharper image. You can also download the original SVG file.
You can create rectangles, circles, ellipses, lines, regular polygons, stars, text and custom paths. Each shape can have its own fill, stroke, opacity and rotation.
No. Everything is created in your browser, so your design and code are not uploaded or saved by this tool.
SVG stays sharp at any size, usually has a smaller file size for icons and simple graphics, and can be styled with CSS. PNG and JPG are better for photographs and complex images.
Create SVG code, format XML and SVG, convert images to Base64 or build CSS gradients in seconds. Explore free developer tools to design, convert and debug your code in one place.
Explore All Developer Tools →