Border Radius Generator
Create complex CSS border-radius shapes with independent corner controls — from rounded buttons to organic blobs.
Last updated: March 25, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Border Radius Generator?
CSS border-radius is the property that rounds the corners of an element's border box. At its simplest, border-radius: 8px rounds all four corners identically. But the full syntax is far more powerful: each corner can be set independently using border-top-left-radius, border-top-right-radius, border-bottom-right-radius, and border-bottom-left-radius. Furthermore, each corner can receive two values (horizontal radius / vertical radius using the shorthand border-radius syntax with a slash), creating elliptical corners that unlock organic, blob-like shapes.
The shorthand notation border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% defines horizontal radii for all four corners before the slash, and vertical radii after — enabling the irregular, asymmetric shapes common in modern "squircle" and organic blob UI trends. This generator provides a visual editor where you drag sliders for each corner value and see the shape update in real time, then copies the exact CSS needed for your project.
How to Use Border Radius Generator
Use "Uniform" mode to set all corners to the same radius, or switch to "Independent" mode to control each corner separately
For each corner, adjust the horizontal radius slider (0–50%) and optionally the vertical radius for elliptical corners
Select the element type preview: Button, Card, Avatar, or Custom to see your shape in context
Toggle percentage vs pixel units — percentages are relative to the element size and stay proportional at any dimension
Click "Copy CSS" to get the complete border-radius shorthand ready to paste into your stylesheet
Common Use Cases
- Creating pill-shaped buttons (border-radius: 9999px) that visually adapt to any button width
- Generating organic blob shapes for hero section decorative backgrounds
- Creating a squircle avatar shape (popular in iOS since iOS 7 for app icons)
- Designing a card component with only top corners rounded and square bottom corners
- Building tabs with rounded top corners but flat bottom edges
- Creating asymmetric rounded chat bubbles with one flat corner pointing towards the sender
- Designing callout boxes with a pointed corner indicating what they annotate
- Generating the diagonal-cut corner shapes used in cyberpunk/techy UI design
Example Input and Output
Common border-radius patterns and their CSS values:
Circle from a square element
Pill shape (width-independent)
Rounded card (8px all corners)
Top-rounded only
Organic blob shape.circle { border-radius: 50%; }
.pill { border-radius: 9999px; }
.card { border-radius: 8px; }
.tab { border-radius: 8px 8px 0 0; }
.blob { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }Client-Side Processing
All shape computation and preview rendering happen in your browser. No data is sent to our servers.
CSS Custom Properties
Store your border-radius values as CSS custom properties for easy theming: :root { --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 9999px; }. This makes it trivial to change your design system's corner style globally. Design systems like shadcn/ui expose a single --radius variable that all components scale from.
Overflow and Border Radius
Add overflow: hidden to a parent with border-radius to ensure child elements are also clipped to the rounded shape — useful for image cards (where the image should respect the card's rounded corners) and for clipping absolutely-positioned children that extend beyond the corners.
Frequently Asked Questions
What does the "/" (slash) in border-radius mean?
When should I use pixels vs percentages?
How do I make a perfect circle?
What is a "squircle" and how is it different from a circle?
Can different corners have different radii?
Why does border-radius clip my box-shadow?
How This Tool Works
The generator maintains state for 8 radius values (horizontal and vertical radius for each of the 4 corners). An SVG or Canvas preview renders a rectangle with the current border-radius values applied. The CSS output assembles the optimal shorthand: if all 8 values are equal, the shorthand is a single value; if the 4 horizontal values are equal and 4 vertical are equal, it uses the slash notation; otherwise the full 8-value notation is generated.
Technical Stack