Core CSS

Sculpt organic asymmetric pebbles and fluid contours with 8-value border-radius math

Equal four-corner border radiuses result in predictable, rigid cards that look like default template boxes. Unlocking the lesser-known 8-value diagonal slash syntax allows you to carve flowing river-stone contours that break modern layouts out of rectangular monotony.

Border Radius Generator

How to Use the Border Radius Generator (3 Simple Steps)

1

Adjust Corner Sliders

Independently control horizontal and vertical radii for all four corners: top-left, top-right, bottom-right, and bottom-left.

2

Preview Responsive Shape

Inspect the resulting contour on cards, avatar circles, organic blob buttons, or asymmetric interface badges in real time.

3

Copy Minimalist Shorthand

Copy the shortest possible standard CSS border-radius declaration using the slash (/) syntax for horizontal and vertical radii.

Features & CSS Best Practices

✓

8-Value Elliptical Syntax

Unlock advanced CSS geometry using the slash syntax (e.g., border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%) for non-circular organic curves.

✓

iOS-Style Squircles & Pills

Easily design modern Apple-inspired squircles and fluid pill badges that feel more natural and human than rigid geometric rectangles.

✓

Shortest Shorthand Output

Automatically simplifies redundant corner values to produce the cleanest, most concise CSS syntax possible.

✓

100% Universal Compatibility

Border-radius is supported natively across 100% of modern web browsers with zero runtime overhead or vendor prefixes required.

Frequently Asked Questions

How does the 8-value border-radius slash syntax work?

Values before the slash define the horizontal radii of the 4 corners (top-left, top-right, bottom-right, bottom-left), while values after the slash define the vertical radii. This allows corners to form smooth ellipses rather than simple circles.

How do I create a perfect pill-shaped button?

Set border-radius: 9999px;. Any value exceeding half the element height ensures the ends round into a perfect semicircle regardless of dynamic text width.

Does border-radius clip background images and child content?

To ensure child images or backgrounds do not bleed outside the rounded corners, add overflow: hidden; to the container element.

What is the difference between a squircle and a standard rounded rectangle?

A standard rounded rectangle uses circular corner arcs with abrupt transitions where the straight line meets the circle. A squircle uses continuous curvature (hyperellipse) with gradual curvature transitions, creating a softer look.

How do I make a perfect circle or pill button with border-radius?

To make a perfect circle, set an equal width and height with border-radius: 50%. For a flexible pill button that expands with text, set border-radius: 9999px, which automatically caps curvature at half the element height.

What is an Apple-style squircle and how is it created with CSS?

A squircle uses an 8-value border-radius with different horizontal and vertical radii (e.g., border-radius: 40px / 30px;). This creates continuous curvature (G2 curvature) that eliminates the sharp transition point between straight edges and circular corners.

Why does overflow: hidden fail to clip child images with border-radius?

In WebKit browsers, transformed child elements can bleed outside a rounded container. Adding transform: translateZ(0); or isolation: isolate; to the parent forces hardware acceleration and clips child content cleanly to the rounded border boundary.