Tools

Home
Tailwind ShadowTailwind GradientTailwind ButtonCSS BeautifierTailwind ColorsTailwind Flexbox

CSS Border Radius Generator

Create rounded corners, ellipses, and organic shapes with live visual preview

Your files never leave your browser
Link corners
Advanced (elliptical)

Preset Shapes

Generated CSS

Drag the corner handles, slide the values, and watch the shape change in real time — no more guessing border-radius numbers and refreshing the page to check. Unlink corners for individual control, or flip on advanced mode to set separate horizontal and vertical radii when you need those organic blob shapes that the slash syntax makes painful to write by hand.

And everything runs in your browser. Nothing gets uploaded.

How It Works

Drag Corners or Sliders
➔
Live Preview Updates
➔
Copy CSS Code

Each corner of a CSS box has a border-radius value (or two, if you go elliptical). The generator maps slider positions and drag handles directly to those values, then writes the shorthand border-radius property in real time. Toggle the prefix option if you still support ancient Android or Safari versions, and switch to longhand output if your codebase prefers explicit per-corner properties.

Examples

Rounded Card Corners

You're building a dashboard card and want soft, even corners without going full circle.

INPUT
All four sliders: 12px Link corners: ON
OUTPUT
border-radius: 12px;

Chat Bubble Shape

Messaging apps use a shape that's rounded on three corners but almost flat on the bottom-left, so it looks like it's "attached" to the sender's avatar.

INPUT
Top-left: 18px Top-right: 18px Bottom-right: 18px Bottom-left: 4px
OUTPUT
border-radius: 18px 18px 18px 4px;

Organic Blob with Elliptical Radii

Landing pages sometimes use blobby, asymmetric shapes as decorative backgrounds. Circular radii won't cut it — you need the horizontal and vertical values to differ on each corner. That slash syntax is brutal to write by hand.

INPUT
Advanced mode ON TL: 70/30 TR: 30/70 BR: 60/40 BL: 40/60
OUTPUT
border-radius: 70px 30px 60px 40px / 30px 70px 40px 60px;

Who Uses This

👨‍💻 Front-End Developers

Prototyping card and button shapes before committing values to a design system.

🎨 UI Designers

Getting exact pixel values for rounded corners instead of eyeballing in Figma.

🎓 Students

Learning how the four-value and slash syntax actually maps to corner shapes.

📨 Email Developers

Testing border-radius values that work across Outlook, Gmail, and Apple Mail rendering.

Common Mistakes

Using 50% on a rectangle and expecting a circle

A 50% radius on a non-square box produces an ellipse, not a circle. If you want a perfect circle, make the width and height equal first. For a pill shape on a rectangle, use a large fixed value like 9999px instead of a percentage.

Mixing up the corner order

The shorthand goes top-left, top-right, bottom-right, bottom-left — clockwise from the top-left. People often guess it follows a different order and end up with the wrong corners rounded. This generator labels each corner, so check the preview before copying.

Adding -webkit- prefix when it is not needed

Every browser released after 2012 supports unprefixed border-radius. Keeping the prefix adds dead code. Only turn it on here if your analytics show traffic from Safari 4 or Android Browser 4.3 and below — which, for most projects, they don't.

Technical Details

Frequently Asked Questions

What is border-radius in CSS?

It's the CSS property that rounds the corners of any element. You give it a pixel or percentage value and it curves the edges. One value rounds all four corners equally; four values let you control each corner separately, going clockwise from top-left.

How do I make a perfect circle with CSS?

Set border-radius: 50% on a square element. The width and height must be equal — otherwise you get an ellipse. If you're working with a rectangular image, crop or constrain it to a square first, then apply the radius.

What does the slash mean in border-radius?

The slash separates horizontal radii from vertical radii. Values before the slash control the horizontal curve; values after control the vertical curve. This creates elliptical corners instead of circular ones. For example, border-radius: 50px / 25px makes all corners wider than they are tall.

Is the -webkit-border-radius prefix still needed?

Almost certainly not. The unprefixed property has been supported since Chrome 5, Firefox 4, Safari 5, and Edge 12. Unless your project targets browsers from before 2012, skip the prefix. It just adds bytes to your stylesheet for no benefit.

Can I animate border-radius?

Yes. The border-radius property is animatable with CSS transitions and keyframe animations. A common trick is morphing a square into a circle on hover by transitioning from border-radius: 0 to border-radius: 50%. Keep durations short — around 200-300ms — so it feels snappy.

Share: