Design Tool

Free Border Radius Generator

Create rounded corners visually. Drag the corner handles, switch between uniform and per-corner control, use ellipse syntax โ€” then copy production-ready CSS in seconds.

Draggable handles 100% offline Uniform ยท Individual ยท Ellipse Copy-ready CSS

Live preview

Preview element
border-radius applied here
Drag the corner dots to adjust

Uniform radius

All corners 20 px
px

Presets & output

Presets
Actions
CSS output
styles.css
border-radius: 20px;

About CSS Border Radius

The border-radius CSS property rounds the corners of an element. It accepts one to four length or percentage values, applied clockwise starting from the top-left corner: top-left, top-right, bottom-right, bottom-left. A single value rounds all four corners equally. Combined with the slash syntax, each corner can also be an ellipse โ€” a different radius horizontally and vertically โ€” which is how designers create organic shapes and squircle-style elements.

This generator lets you drag the corner handles directly on the preview to set radii visually, switch between three modes, and copy the resulting CSS with a single click.

How the shorthand works

ValuesApplied to
1 valueAll four corners equally
2 valuesTL & BR / TR & BL
3 valuesTL / TR & BL / BR
4 valuesTL / TR / BR / BL (clockwise)

The slash syntax (elliptical corners)

A forward slash separates horizontal and vertical radii. The four values before the slash set the horizontal radius of each corner; the four after set the vertical radius:

CSSResult
border-radius: 20px / 40pxEvery corner is an ellipse 20px wide by 40px tall
border-radius: 20px 30px / 40px 50pxTL & BR = 20ร—40, TR & BL = 30ร—50
border-radius: 50% / 30%Elliptical curve, wider than it is tall

Pixels vs percentages

Common corner values

ValueFeelTypical use
0SharpBrutalist, editorial, datatable cells
4โ€“8pxSubtleInput fields, tags, small buttons
12โ€“16pxModernButtons, cards, panels
20โ€“30pxSoftLarge cards, modals, hero panels
50%CircularAvatars, icon buttons, badges
9999pxPillPrimary CTA buttons, filter chips

Tips

Common use cases

Cards & panels

Soft 16โ€“24px corners for modern UI.

Buttons

From 6px subtle to 9999px full pill.

Avatars

50% radius makes a perfect circle.

Image thumbnails

Rounded thumbs for galleries and feeds.

Leaf shapes

Two opposite corners rounded to the max.

Blob shapes

Asymmetric ellipse syntax for organic forms.

Privacy and accuracy

This border radius generator runs entirely in your browser. All generation happens locally in JavaScript with no server calls. The values you enter are never transmitted, stored or logged.

Frequently Asked Questions

What is border-radius in CSS?
The border-radius CSS property rounds the corners of an element. It accepts one to four length or percentage values in the order top-left, top-right, bottom-right, bottom-left. A single value rounds all four corners equally. Percentages make the curve proportional to the element's size โ€” 50% on a square makes a circle.
How do the four values map to corners?
The border-radius shorthand goes clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. With one value all four corners are equal. With two values the first applies to top-left and bottom-right, the second to top-right and bottom-left. With three values the middle applies to top-right and bottom-left. With four, each corner is set individually.
What is the slash syntax in border-radius?
The slash separates horizontal and vertical radii for each corner, creating elliptical corners. border-radius: 20px / 40px makes each corner an ellipse 20px wide and 40px tall. The full form allows four values on each side: border-radius: 10px 20px 30px 40px / 5px 10px 15px 20px.
What is a squircle?
A squircle is a shape between a square and a circle with smoother transitions than a standard rounded rectangle. Apple's app icons are the most famous example. In CSS, a squircle effect can be approximated with a border-radius around 20โ€“30% of the element size, or by using SVG paths.
How do I make a perfect circle with border-radius?
Set the element to equal width and height, then apply border-radius: 50%. Because the percentage is relative to each dimension, a square becomes a perfect circle. For a non-square element, 50% produces an ellipse.
How do I make a pill shape?
Set border-radius to a very large value โ€” 9999px is the common idiom. The browser caps the radius at half the smaller dimension, so a button with 9999px radius becomes a perfect pill regardless of its width.
Does border-radius affect layout or click area?
No. Layout is computed from the element's rectangular box. The rounded corners are a visual effect. However, clicks and pointer events outside the rounded region still register on the element โ€” you cannot click through a clipped corner. Use overflow: hidden if you need child content clipped to the rounded shape.
Is this border radius generator free?
Yes, it is 100% free, requires no sign-up and runs entirely in your browser. No length limits, no watermarks, no premium tier.

Related Colour Tools

Done!