Border Radius Previewer

A tool to create and visualize CSS border-radius effects.

Design & Code Tools

CSS Border Radius Previewer: Visual Corner Rounding & Advanced 8-Value Organic Blobs

Sharp, 90-degree box corners can make a digital product feel rigid, corporate, and uninviting. Soft, rounded corners, on the other hand, guide human eye tracking naturally, soften visual interfaces, and make buttons and mobile app cards feel comfortable and friendly to touch.

While setting a uniform border-radius: 8px; in CSS is straightforward, creating modern asymmetrical cards, speech bubbles, pill-shaped tags, or fluid organic "blob" shapes is nearly impossible through code guessing alone. CSS allows complex eight-value elliptical radii separated by a forward slash (/), but calculating horizontal and vertical curve percentages in your head is overwhelming.

Our free Border Radius Previewer gives you an interactive visual canvas. Drag corner anchor handles, sculpt custom curves, toggle between standard 4-corner mode and advanced 8-value organic blob mode, and copy clean CSS code instantly into your stylesheets.

Standard 4-Corner vs. Advanced 8-Value Elliptical Syntax

Standard (4 Values)

border-radius: 12px 24px 8px 16px;

Controls the four corners in clockwise order: Top-Left → Top-Right → Bottom-Right → Bottom-Left. Each corner forms a quarter-circle curve with an equal horizontal and vertical radius.

Advanced Blobs (8 Values)

border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;

The forward slash separates horizontal radii (before /) from vertical radii (after /). This unlocks asymmetrical elliptical curves, creating trendy fluid organic blobs used on modern startup landing pages.

Popular UI Shapes Created with Border Radius

1. Perfect Circular Avatars

Setting border-radius to 50% on an element with identical width and height produces a perfect circle:

width: 64px; height: 64px; border-radius: 50%;

2. Pill-Shaped Buttons & Badges

Using an arbitrarily high pixel radius (like 9999px) ensures full semicircular ends regardless of button text length:

padding: 8px 24px; border-radius: 9999px;

3. Asymmetrical Notification Badges

Rounding three corners while leaving one corner sharp creates dynamic speech bubble cards:

border-radius: 16px 16px 16px 0px;

Why Nested Border Radii Look Weird (And the Math to Fix It)

Have you ever placed an image inside a rounded card, gave both the same border-radius: 16px;, and noticed that the visual gap between them looks distorted or uneven in the corners?

This common design defect happens when developers forget the geometric nesting rule. For nested concentric corners to share a smooth parallel curve, the inner radius must equal the outer radius minus the intervening padding distance:

Inner Radius = Outer Radius - Padding Distance

Example: If your card has an outer radius of 20px and 8px of padding, the inner element should have a radius of exactly 12px (20 - 8).

Frequently Asked Questions

Can I animate border-radius changes with CSS transitions?

Yes! CSS transitions (transition: border-radius 0.5s ease;) smoothly interpolate both 4-corner values and 8-value organic blob shapes, creating mesmerizing morphing background effects on hover.

Does border-radius clip background images or video?

By default, child content can bleed outside rounded corners unless you add overflow: hidden; to the parent container. Adding overflow hidden guarantees all inner images, videos, and gradients conform to the rounded corners.

How do I export this to Tailwind CSS?

You can copy standard utility classes like rounded-xl or use Tailwind's arbitrary bracket notation (e.g. rounded-[30%_70%_70%_30%/30%_30%_70%_70%]) for complex custom curves.