Border Radius Generator

Create rounded corners visually and copy the matching CSS border-radius code.

Free, no sign-upRuns in your browserWorks on any device
0px
Max Corner
0
CSS Length
Rectangle
Shape Type

Individual Corners

Top-Left 0px
Top-Right 0px
Bottom-Right 0px
Bottom-Left 0px

Link Corners

Unit & Presets

Hover to see
border-radius effect
CSS Code
border-radius: 0px;

About the Border Radius Generator

Rounded corners soften interfaces and can create shapes like pills, circles and blobs. This generator lets you set each corner separately, link them together or use elliptical radii, with a live preview.

Copy the generated CSS in px or percent.

How to use the Border Radius Generator

  1. Drag the sliders for each corner.
  2. Link corners or adjust them individually.
  3. Choose units such as px or %.
  4. Copy the CSS.

Key features

  • Per-corner control
  • Elliptical radii
  • Presets for common shapes
  • Copy-ready CSS

How border-radius works

Each corner's radius defines the size of the curve. A single value applies to all four corners, four values go clockwise from top-left, and a slash introduces elliptical radii, so border-radius: 50% / 30% creates curves that are wider than they are tall. Setting 50 percent on a square element makes a circle, and a radius larger than half the height makes a pill shape.

Using different values on each corner can create organic blob shapes for backgrounds and illustrations without any images.

Common uses

  • Rounding buttons, cards, inputs and images.
  • Making circular avatars and pill-shaped tags.
  • Creating blob shapes for hero sections and illustrations.
  • Matching a design system's corner radius tokens.

Tips for the best results

  • Use the same radius across similar components for a consistent look.
  • Pair rounded corners with overflow: hidden when the element contains images.

Frequently asked questions

How do I make a circle?

Use border-radius: 50% on an element with equal width and height.

What is a pill shape?

Use a very large radius such as 999px on a wide element.

Can I make organic blob shapes?

Yes. Use different elliptical radii on each corner.

Can I animate border-radius?

Yes. Transitions between radius values work in all modern browsers and are great for morphing shapes.

Should I use pixels or percentages?

Pixels give the same curve on elements of any size, which suits buttons and cards. Percentages scale with the element, which is needed for circles and ellipses.

Does border-radius work on images?

Yes. Apply it directly to an img element, or to its container with overflow: hidden.

Related developer tools

View all →