100% FREE • NO SIGNUP

CSS Border Radius Generator

Create custom rounded corners, circles, pills, blobs, and organic shapes visually. Copy production-ready CSS.

Presets

Preview

Edit Mode

0px
0px
0px
0px

Generated CSS

border-radius: 0px;

CSS Border Radius Guide

The CSS border-radius property rounds the corners of an element. It's one of the most commonly used CSS properties for modern UI design.

Shorthand Syntax

SyntaxDescriptionExample
border-radius: 10pxAll 4 corners equal
border-radius: 10px 20pxTL+BR / TR+BL
border-radius: 10px 20px 30pxTL / TR+BL / BR
border-radius: 10px 20px 30px 40pxTL / TR / BR / BL
border-radius: 50%Perfect circle (if square)
border-radius: 999pxPill shape (any rect)

Advanced: Elliptical Corners

Use the / separator to set horizontal and vertical radii independently:

border-radius: 50% 30% 60% 40% / 40% 60% 30% 50%

The values before / set horizontal radii, and values after set vertical radii. This creates organic, blob-like shapes perfect for modern design trends.

Common Shapes

ShapeCSSPreview
Circleborder-radius: 50%
Pill / Capsuleborder-radius: 999px
Leafborder-radius: 10% 50% 10% 50%
Dropborder-radius: 50% 0 50% 50%
Blobborder-radius: 30% 70% 70% 30% / 30% 70% 70% 30%

Browser Support

border-radius is supported in all modern browsers. No vendor prefixes needed since 2012. Works in Chrome, Firefox, Safari, Edge, and all mobile browsers.

More CSS Tools

Generate box shadows, gradients, flexbox layouts, and grid layouts visually.

Browse All Free Tools →

Frequently Asked Questions

How does CSS border-radius work?

CSS border-radius rounds the corners of an element's border box. A single value like border-radius: 8px rounds all four corners equally. Four values set top-left, top-right, bottom-right, and bottom-left individually. Using 50% on a square element creates a perfect circle. The / syntax sets different horizontal and vertical radii for elliptical corners.

What is the difference between border-radius shorthand and longhand properties?

The shorthand border-radius sets all corners in one declaration. Longhands set individual corners: border-top-left-radius, border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius. The shorthand is preferred for consistent rounding; longhands are useful when only specific corners need custom values.

How do I create a pill-shaped button with CSS?

Set border-radius to 9999px or 100px — a value larger than the element's height. This creates fully rounded left and right ends while keeping the top and bottom straight, creating a pill or capsule shape. The exact value doesn't matter as long as it exceeds half the element's height.

Can I use percentages for border-radius?

Yes. Percentage values are calculated relative to the element's dimensions. 50% on a square creates a circle. On a rectangle, 50% creates an ellipse that fits the element. Percentage border-radius is useful for elements with dynamic sizes where you always want proportional rounding.

How do I create organic blob shapes with border-radius?

Use the extended border-radius syntax with / to set different horizontal and vertical radii for each corner: border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%. By assigning asymmetric values, you create irregular organic blob shapes. Animate these values in CSS keyframes to create smooth morphing blob animations.

Related Free Tools

Box Shadow Generator CSS Grid Generator Gradient Generator CSS Animation Generator Flexbox Generator