Adjust shape and color to generate simple geometric SVG icons
The SVG Icon Generator makes the simplest kind of geometric icon quickly: choose a shape (circle, square, triangle or hexagon), set the background color, the shape color and the background corner radius, and you get a piece of SVG code that you can copy or download as an icon.svg file. It makes one minimalist style only: a solid-color background with one centered solid-color shape. That suits placeholder icons, rough favicon drafts or simple markers. It can't draw custom paths, add text or icon glyphs, and it isn't a general vector drawing tool.
These examples were produced by running the tool's own generator function. The defaults (circle, background #2F5D50, shape #FFFFFF, radius 24) produce a 200×200 SVG with viewBox 0 0 200 200: first a full-size background rectangle with a corner radius of 24, then a circle of radius 60 at the center (60% of half the canvas, from the code). The square draws a 120-pixel block starting at (40, 40); the triangle's vertices are (100,40), (40,160) and (160,160); and the hexagon's six vertices are (100.0,36.0), (155.4,68.0), (155.4,132.0), (100.0,164.0), (44.6,132.0) and (44.6,68.0). All dimensions are hard-coded: the icon is always 200×200, and the inner shape always takes up about 60% of the canvas. Because of the viewBox, the graphic scales smoothly when you set its width and height with CSS.
SVG describes graphics as code. It's vector-based, stays sharp at any size, is tiny, and can be resized with CSS. PNG is a pixel-based bitmap that blurs when enlarged. SVG suits web icons and simple logos, while cases that require fixed pixel sizes, such as app store icons, need PNG.
You can paste the copied SVG code straight into an HTML file, where it becomes an inline graphic, or save the downloaded icon.svg and reference it with <img src="icon.svg">. As a favicon, point a link tag in the head at the file; modern browsers support SVG favicons, although a few older environments don't.
The tool only draws basic geometric shapes in colors you choose, and no third-party artwork is involved. Whether it works as a trademark or brand mark is for you to judge, since extremely simple geometric shapes are easily confused with other people's icons.
The triangle's apex and base sit within the 20% to 80% range of the canvas, so its bounding box is centered, but a triangle's visual center of mass is lower than its geometric center, so it appears to sit slightly low. For more precise optical centering, download it and adjust the numbers in 'points' by hand.
The SVG code is assembled in your browser from your choices and isn't sent to any server. The download uses a temporary file created locally in the browser, and 'Copy' just writes the code to the clipboard. The tool makes no network requests and doesn't save your design.