What is the CSS Starburst Generator?
Generate CSS starburst and sunburst shapes using clip-path polygons. Set point count, depth, rotation, and colour, then copy the CSS.
Everything runs locally in your browser. Adjust the controls above, preview instantly, and copy clean, production-ready CSS — no account, no upload.
Using the CSS Starburst Generator
Everything lives in the panel at the top of this page. There is nothing to install — it all runs right here in your browser.
Set point count and depth
Choose the number of points (4-16) and the inner radius percentage. Higher inner radius = shallower points. Lower = sharper star points.
Set rotation and colour
Rotate the starburst to point straight up or at any angle. Pick the fill colour.
Copy the CSS
Click Copy to get the clip-path polygon with all calculated coordinates.
What the generated code looks like
Clean, production-ready CSS — no vendor bloat, no unnecessary declarations.
/* 8-point starburst using clip-path */
.starburst {
width: 120px; height: 120px;
background: #f97316;
clip-path: polygon(
50% 0%, 61% 35%, 98% 35%, 68% 57%,
79% 91%, 50% 70%, 21% 91%, 32% 57%,
2% 35%, 39% 35%
);
}Stars and bursts can also be created with CSS transforms (overlapping rotated squares) or SVG for more control over precise point shapes.
Pro tips for better results
4-6 points look like decorative badges, 8-16 look like sunbursts
4-point stars are bold callout shapes. 8-12 points create sunburst backgrounds. 16+ points start to resemble circles.
Combine with animation for a spinning sunburst
animation: spin 20s linear infinite gives a slow-rotating background effect. Use will-change: transform to keep it on the GPU.
Frequently asked questions
From the blog
Read more →Modern CSS techniques every developer should know
A practical tour of the CSS features that replaced yesterday’s hacks.
From design to code without the friction
How visual generators speed up the build without sacrificing clean output.
Writing CSS that scales with your project
Tokens, naming, and structure that keep large stylesheets maintainable.