Skip to main content

Free CSS Border Radius Generator: Elliptical Support, Auto Shorthand

Build any rounded shape — cards, pills, leaves, blobs, speech bubbles — with independent per-corner x/y radii. Auto-shortened CSS output, Tailwind v4 export, ten curated presets. 100% client-side.

Top-Left

Radius16px

Top-Right

Radius16px

Bottom-Right

Radius16px

Bottom-Left

Radius16px

Presets

Elliptical Per-Corner Control

Each corner gets independent x and y radii (`30px / 60px`), unlocking leaf, blob, and speech-bubble shapes — not just rounded rectangles.

Auto-Shortened CSS Output

We emit the shortest valid shorthand: one value when all four corners match, two/three values for symmetric patterns, four values for full asymmetry — exactly as Prettier would.

Multi-Format Export

Copy the CSS declaration, Tailwind v4 arbitrary value (`rounded-[12px_24px]`), or SCSS variable. Tailwind output is escape-safe (spaces → underscores, slashes preserved).

100% Client-Side

No upload, no save, no analytics. Your brand-radius tokens and pre-launch design experiments stay entirely on your device.

The Border Radius Generator That Goes Beyond Rounded Rectangles

Most online border-radius generators stop at the four-corner symmetric case — fine for cards and buttons but useless for the leaf-shaped CTA, the blob-shaped feature callout, or the asymmetric speech-bubble notification that defines modern landing pages. Our Free Online CSS Border Radius Generator exposes the full CSS Backgrounds Level 3 elliptical syntax, so each corner gets independent horizontal and vertical radii — and the output is auto-shortened to the smallest valid CSS shorthand so your stylesheets stay clean.

Use this generator with our CSS Gradient Generator (to fill the shape), the CSS Box Shadow Generator (to elevate the shape), the Color Palette Generator (to source brand-aligned fills), and the CSS Minifier to ship the final tokens.

CSS border-radius Shorthand Cheat Sheet

ValuesMeansExample
1 valueAll four corners equal`12px`
2 valuesTL+BR | TR+BL`12px 24px`
3 valuesTL | TR+BL | BR`12px 24px 8px`
4 valuesTL | TR | BR | BL`12px 24px 8px 16px`
x / yElliptical — horizontal then vertical radii`30px / 60px`

When Each Shape Belongs in Your Design System

Subtle (2–4px)

Forms, inputs, dense data tables. Communicates "structured" without softness. Bootstrap, GitHub.

Card (8–16px)

Content cards, modals, panels. The friendliest middle ground; works in 95% of brand systems.

Pill (= height / 2)

CTAs, tags, status badges, search inputs. Maximally friendly. Apple, Stripe, Linear.

Squircle (25–35%)

App icons, avatars, feature illustrations. Softer than circle, more interesting than rounded square.

Asymmetric (Speech Bubble)

Chat bubbles, callouts. Drop one corner to 0 to indicate "tail" direction. Slack, iMessage.

Blob (elliptical)

Hero backgrounds, decorative shapes, illustration accents. Pair with subtle CSS animation.

Production Pitfalls (and How We Handle Them)

1. Overflow Clipping

Children of a rounded element are NOT clipped to the radius unless you add `overflow: hidden`. Common gotcha with images in rounded cards.

2. Inconsistent Token Scale

Define `--radius-sm`, `--radius-md`, `--radius-lg`, `--radius-full` as design tokens. Random one-off values across components is the #1 design-system sin.

3. Pill on Variable-Width Elements

`border-radius: 9999px` is correct; using `50%` on a wide rectangular button gives you a flattened ellipse, not a pill.

4. Nested Radii

A child element inside a rounded parent should use a slightly smaller radius (parent radius − padding) to stay visually concentric.

Free CSS Border Radius Generator: Elliptical Per-Corner, Auto Shorthand | Toolk