Dev TooloraLocal dev tools

> CSS & Design

CSS Border Radius Generator

Adjust linked or independent corners on a real card and export the exact four-corner border-radius rule.

Runs locallyWorks offline
Auto-run
Back to results
Input

Source data

px
px
px
px
Output

Result

Live preview

Waiting for valid CSS…

Order: top-left, top-right, bottom-right, bottom-left. Visible arcs depend on box size.

Your result will appear here.

Tool guide

About this tool.

  • border-radius rounds the corners of an element’s border and background. This generator writes four circular radii in pixels, in the order top-left, top-right, bottom-right, bottom-left.
  • Link corners is an editing aid: while it is on, moving one corner sets all four to the same value. Turn it off to give each corner its own radius.
  • When neighboring radii add up to more than a side of the box, browsers scale all radii down proportionally, so a very large value can look the same as a smaller one.

  • Pick consistent rounding for cards, buttons, inputs and dialogs on a live preview.
  • Round only some corners, such as the top of a panel or a tab, without remembering the four-value order.
  • Compare square, softly rounded and capsule shapes on the same box.
  • Copy an .element rule and check it on your real element size.

Pick a sample from Apply sample, or keep Link corners ticked and drag any corner to round all four together.

Untick Link corners to set Top left, Top right, Bottom right and Bottom left separately; ticking it again copies the Top left value to every corner.

Compare the live card with the CSS, whose values follow the order top-left, top-right, bottom-right, bottom-left.

Copy the CSS or download border-radius.css and the css-radius-report.json audit.

  • All corners 16 → border-radius: 16px 16px 16px 16px;
  • Top left 24, Top right 8, Bottom right 24, Bottom left 8 → border-radius: 24px 8px 24px 8px;
  • Top left 32, Top right 32, Bottom right 0, Bottom left 0 → border-radius: 32px 32px 0px 0px; only the top corners are rounded.
  • All corners 0 → border-radius: 0px 0px 0px 0px; square corners.
  • All corners 200 → border-radius: 200px 200px 200px 200px; on a 300 × 120 px box browsers scale this to 60 px, a capsule.

  • Each corner accepts a whole number of pixels from 0 to 200. Empty, fractional and out-of-range values show an error instead of being rounded or clamped.
  • The output always lists all four corners in px, even when they are equal. Write percentages or elliptical slash syntax such as 40px / 20px by hand when you need them.
  • Link corners only affects editing. The CSS contains the four values shown, and the audit records the Link corners setting with them.
  • Rounded corners do not clip child content on their own; add overflow: hidden when images or children should follow the curve.
  • The preview card’s size is not exported, and the visible curve depends on the size of your element.

FAQ

Questions about CSS Border Radius Generator

What order are the four border-radius values in?

Clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. border-radius: 24px 8px 24px 8px rounds the top-left and bottom-right corners more than the other two.

How do I make a pill or circle shape?

For a pill, use a radius of at least half the element’s height, such as 200 px; browsers scale it down to a half circle at each end. For a circle, use a square element with border-radius: 50%, written by hand.

Why does a bigger radius stop making a difference?

When two radii along one side add up to more than that side’s length, browsers scale every corner down by the same factor. Beyond that point, larger values look the same.

Why is the image inside my rounded card still square?

border-radius rounds the element’s own border and background, not children that overflow it. Add overflow: hidden to the card, or give the image the same radius.

Can I make elliptical corners?

Not with these controls: each corner gets one circular pixel radius. For elliptical corners, edit the CSS to the slash form, such as border-radius: 40px / 20px.

Continue with

CSS Box Shadow GeneratorBuild one to five editable shadow layers with a real card preview, opacity, inset mode and exact CSS export.CSS Clip-Path GeneratorClip an element to a polygon, circle, ellipse or rounded inset with draggable points and 28 presets, then export clip-path CSS.