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 →CSS Box Shadow: A Complete Guide with Examples (2026)
Master CSS box-shadow: every value explained, layering multiple shadows for realistic depth, inset shadows, the spread trick, and copy-paste examples for cards, buttons, and more.
How to Create Glassmorphism in CSS: The Complete 2026 Guide
Learn how to build the frosted-glass effect with CSS backdrop-filter. Real code, the accessibility traps nobody mentions, browser support, and performance tips from production.
The Complete Guide to CSS Gradients (2026)
Master linear, radial, and conic CSS gradients. Learn color stops, angles, hard stops for stripes, multi-layer gradients, and the tricks behind smooth, professional results.