Skip to content
🔷

Icon Generator

Build a clean SVG icon from geometric shapes, a letter or a glyph, and copy the markup or download the file. No account, no watermark.

Runs in your browser

Updated

Shape

24%

2px
52%

At every size

icons must stay legible when small

The output is a single SVG path-free shape plus text, so it scales to any size and inherits currentColor if you swap the fill for it. A glyph-based icon is a <text> element, which means it needs that font available on the machine that renders it; for a production icon set, convert the glyph to a path first.

How the SVG is composed

Twelve shapes are offered as path data: squircle (the default), rounded, square, circle, hexagon, octagon, diamond, blob, arch, pill, chat and tag. The output is a text SVG with a 24-unit viewBox and width and height set from a size dropdown of 16, 24, 32, 48 (default), 64, 128 or 256. A shape path is filled with the chosen colour, and with Outline shape ticked the stroke colour and a width slider running 0 to 8 in half-steps are added as attributes in those 24 units, so the default width of two is one twelfth of the icon.

A worked example

At the defaults the markup carries the squircle path with fill #2563eb, stroke #ffffff and stroke-width 2, plus a text element holding the star glyph at font-size 12.48, the slider's 52 percent of the 24-unit box, centred at 12, 12 in the stroke colour. Downloading saves it as icon.svg.

Outputs beyond the file

Copy SVG puts the markup on the clipboard. Copy as CSS mask instead builds a fixed 24-pixel version, base64-encodes it and emits an .icon rule using mask with background-color as the fill, so the icon can be recoloured in CSS. A strip renders the icon at 16, 24, 32, 48 and 64 to test legibility.

Where it stops

  • Corner radius applies to Square and Rounded only; for every other shape the slider is disabled and the note says so.
  • The glyph is a text element in a system font, so the star can render differently or vanish where that font is missing; production sets need it converted to a path.
  • Glyph input is capped at two characters and has no positioning controls.
  • The glyph sits in a text element with no baseline or position controls, so small glyphs can look off-centre.

Questions people ask

Why do stroke sizes look chunky at 16 pixels?

Stroke width lives in the 24-unit coordinate space, so two units scale to roughly one and a third pixels at 16 and keep their relative weight at every size.

Can the CSS mask output be recoloured?

Yes, change the rule's background colour and the mask paints that colour through the icon shape.

Turn a finished mark into favicons with the favicon generator, rasterise the SVG through svg-to-png for platforms that refuse vectors, and pick the two colours with the colour picker.