Skip to main content

CSS Border Radius Generator

Round each corner independently, including elliptical corners, and copy the CSS. Everything runs in your browser, so your input isn’t uploaded.

Loading tool…

How to use the CSS Border Radius Generator

  1. Choose px or percent and move the sliders. Tick Link corners to change all four together.
  2. Tick Separate vertical radii for elliptical corners.
  3. Copy the CSS.

Example

Opposite corners share a value, so the tool writes the shortest form: two values instead of four.

Settings (px)
Top left: 8
Top right: 16
Bottom right: 8
Bottom left: 16
CSS
border-radius: 8px 16px;

About this tool

The border-radius property rounds the corners of an element. Set each corner on its own, link them together, or use separate vertical radii for elliptical shapes, and copy the shortest valid CSS.

Good to know

  • The corners are ordered top-left, top-right, bottom-right, bottom-left, as in CSS.
  • 50% on a square element makes a circle.
  • The tool writes the shortest equivalent form, such as 8px instead of 8px 8px 8px 8px.

Related tools

Browse all tools