toolqik

190 · CSS

Border Radius Generator

Round each corner separately, make elliptical corners and organic blob shapes.

Runs in your browser
Unit
Options
Preview shape
CSS

  

About this tool

Drag the sliders to round each corner of a box, or turn on Same for all corners to move them together. Switch on Elliptical corners to set a separate horizontal and vertical radius for each corner, which is how CSS makes blobs, leaves and egg shapes. The shortest valid CSS is generated for you.

Reading border-radius values

  • border-radius: 12px: all four corners.
  • border-radius: 12px 0: top-left and bottom-right 12px, the other two square.
  • border-radius: 10px 20px 30px 40px: clockwise from top-left.
  • border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%: horizontal radii before the slash, vertical after. This is the “blob” syntax.

Pixels or percent?

Pixel radii stay the same size whatever the box size, which suits buttons and cards. Percentages are relative to the box’s width (horizontal radius) and height (vertical radius): 50% turns a square into a circle and a rectangle into an ellipse. For a pill-shaped button whose ends are always perfect semicircles, use a large pixel value such as 9999px instead.

FAQ

How do I make a circle in CSS?

Give an element equal width and height and border-radius: 50%.

How do I make a pill-shaped button?

Use a very large pixel radius, such as border-radius: 9999px. The ends stay perfect semicircles at any width.

How do I round just one corner?

Use the longhand property, such as border-top-left-radius: 16px, or set four values in border-radius with zeros for the square corners.

What does the slash in border-radius mean?

Values before the slash are horizontal radii and values after it are vertical radii, giving elliptical corners.

Why is my image not rounded?

Put border-radius on the image itself, or add overflow: hidden to the rounded container so its contents are clipped.

esc
↑↓ navigate↵ open