CSS border radius generator

The CSS border-radius property rounds a box's corners. Values are listed clockwise from the top left.

How to use the border radius generator

  1. Move the slider, or unlink to set each corner.
  2. Choose px or percent.
  3. Copy the CSS.

Nested corners

For a rounded element inside another, use an inner radius of the outer radius minus the gap between them, so the curves stay parallel.

Frequently asked questions

How do I make a circle?

Give a square element a border radius of 50%.

How do I make a pill shape?

Use a very large px value such as 999px.

Are elliptical corners supported?

CSS supports them with a slash syntax; this tool makes circular values.

Related tools