Home Developer Tools Border Radius Generator
Developer Tool

Border Radius Generator

Generate CSS border-radius values visually. Control each corner independently and copy the CSS property in one click.

⚡ Live preview 📋 Copy CSS in one click 🚫 No login required ✅ Free forever

📖How to Use the Border Radius Generator

  1. 1
    Adjust each corner

    Drag the sliders or type pixel values for top-left, top-right, bottom-right and bottom-left corners individually.

  2. 2
    Preview the shape

    The live preview box updates instantly as you change each corner value.

  3. 3
    Copy the CSS

    Click Copy CSS to copy the border-radius property with all four corner values.

CSS Tools in This Suite

ToolBest For
Bootstrap GridResponsive layouts
Border RadiusRounded corners
Box ShadowDepth & elevation
CSS VariablesDesign tokens
Flexbox1D layouts
Media QueryResponsive CSS

Frequently Asked Questions

What is border-radius in CSS?

border-radius rounds the corners of an element's border box. A value of 50% on a square element produces a circle. Values can be set in px, em, rem or %.

Can I set different radii for each corner?

Yes. CSS supports border-top-left-radius, border-top-right-radius, border-bottom-right-radius and border-bottom-left-radius individually, or you can use the shorthand border-radius with up to four values.

What does the shorthand border-radius: 10px 20px 30px 40px mean?

The four values apply clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. This is the same order as margin and padding shorthand.

What is the elliptical border-radius syntax with a slash?

The slash syntax (e.g. border-radius: 50px / 30px) lets you define separate horizontal and vertical radii for each corner, creating elliptical shapes instead of circular arcs.

How do I make a pill-shaped button with border-radius?

Use border-radius: 9999px (or any very large value). This produces a fully rounded left and right edge on any rectangular element, giving the pill shape commonly used on buttons and tags.

Does border-radius affect the element's clickable area?

No. border-radius is purely visual. The clickable or interactive area of the element remains rectangular regardless of the corner rounding applied.

Can I animate border-radius with CSS transitions?

Yes. border-radius is animatable. You can use transition: border-radius 0.3s ease to smoothly animate corner rounding on hover or state change.

What is the difference between border-radius: 50% and border-radius: 100%?

For most practical purposes they produce the same result on a square element (a circle). The 50% value is the standard — values beyond 50% are capped at 50% by the browser since they cannot produce a larger arc.

Does border-radius clip the content inside the element?

Yes, when overflow: hidden is set on the element. Without overflow: hidden, child elements may visually overflow outside the rounded corners.

Is border-radius supported in all modern browsers?

Yes. border-radius has universal support in all modern browsers including Chrome, Firefox, Safari, Edge and Opera. No vendor prefix is needed for modern usage.