Skip to content
ToolZone

Border Radius Generator

Visually design rounded corners for an element, adjusting each corner independently, then copy the resulting CSS border-radius code.

Runs in your browser. Nothing you enter or upload leaves your device.

border-radius: 16px;

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Border Radius Generator

The Border Radius Generator lets you set the rounding of all four corners of a box and see the shape update live. Presets cover common shapes like pills, tabs, leaves and drops, and the output uses the shortest valid border-radius shorthand.

How it works

CSS border-radius accepts up to four values, applied clockwise starting from the top-left corner: top-left, top-right, bottom-right, bottom-left. The generator writes the shortest form that means the same thing: one value when all corners match (16px), two when opposite corners match (60px 0), otherwise all four.

In px mode each slider runs from 0 to 100; in % mode from 0 to 50, relative to the box's size. Each value is the radius used to round that corner, so larger values give gentler, wider curves. When the radii are too large for the box, the browser scales them down proportionally so they still fit.

How to use

  1. 1

    Pick a preset, or leave Link all corners checked to round every corner equally; uncheck it to shape each corner on its own.

  2. 2

    Choose px or %, then drag the Top-Left, Top-Right, Bottom-Right, and Bottom-Left sliders.

  3. 3

    Watch the preview box update as you go.

  4. 4

    Click Copy to copy the border-radius declaration, or Copy link to share the shape.

Worked examples

Default rounded card

Equal 16px corners for a card component.

Input
All corners 16
Result
border-radius: 16px;

Tab shape

A navigation tab rounded only on top.

Input
Top-Left 12, Top-Right 12, Bottom-Right 0, Bottom-Left 0
Result
border-radius: 12px 12px 0 0;

Leaf badge

A decorative shape with two opposite corners rounded.

Input
Top-Left 60, Top-Right 0, Bottom-Right 60, Bottom-Left 0
Result
border-radius: 60px 0;
Limitations
Values are limited to 0-100 px or 0-50%; other units such as rem are not available. Elliptical corners using the slash syntax (e.g. 50px / 20px) are not supported.
Assumptions
Radii are in pixels or a percentage of the box's size. The element is large enough for the chosen radii; the browser scales them down if not.
Privacy
The CSS is generated in your browser; no values are sent or saved.

Frequently asked questions

Can each corner have a different radius?+

Yes. Uncheck Link all corners and each of the four sliders can be set on its own.

How do I create a fully circular element?+

Use a square element, switch the unit to %, and set every corner to 50 for border-radius: 50%.

What does Link all corners do?+

While it is checked, moving any slider sets all four corners to the same value. Uncheck it to give each corner its own radius.

What order are the four values in?+

Clockwise from the top-left: top-left, top-right, bottom-right, bottom-left.

What happens if the radius is bigger than the element?+

The browser automatically scales all corner radii down so the curves fit, which is why a very large value turns a box into a pill or circle.

Related tools