b2KIT

Border Radius CSS Preview Tool

Adjust border-radius values for each corner visually and copy the CSS output.

How to Use Border Radius CSS Preview Tool

  1. 1

    Adjust the sliders

    Drag each corner radius slider to shape the border radius.

  2. 2

    Preview the result

    See the live preview update as you change each corner value.

  3. 3

    Copy the CSS

    Click copy to grab the border-radius CSS property for your code.

Tested tool guide Tested browser tools Checked August 16, 2026

What Border Radius CSS Preview Tool does, with a checked example

This tool draws a box with a control at each of its four corners. Adjust any corner, the box redraws, and a panel beside it shows the border-radius declaration ready to copy into a stylesheet. The corner most people get wrong is the order: the shorthand lists corners clockwise from the top-left (top-left, top-right, bottom-right, bottom-left), so the third value you paste belongs to the bottom-right corner, not the bottom-left. The preview shows what the declaration will render, so what you see on the box is what you get in the browser.

Worked example

A concrete input and expected output from the current implementation.

Input

Enter 24 into the top-left control, 8 into top-right, 16 into bottom-right, and 4 into bottom-left

Expected output

border-radius: 24px 8px 16px 4px;

The four-value shorthand is read clockwise starting from the top-left corner, so each number lands exactly on the corner it was set for: 24 top-left, 8 top-right, 16 bottom-right, 4 bottom-left.

How the result is produced

1

Four independent corners

Each corner has its own control, so the four radii are independent; changing one leaves the other three untouched. The preview box re-renders with every change, and the declaration beside it updates at the same time. That independence is what the tool is for: asymmetric shapes such as a chat bubble tail, a tab, or a badge, where one corner differs from the rest.

2

Copying the declaration

The panel shows the declaration in the standard shorthand, which browsers read clockwise from the top-left corner. Copying puts the text on your clipboard to paste into a stylesheet. The shorthand accepts one to four values, so four equal numbers are valid but not minimal - the corners render the same either way. All of this happens locally in the page; your values are never sent anywhere.

Good uses

  • Rounding only one or two corners of a component - a tab flush against a panel, a badge with a flat edge, or the tail corner of a chat bubble - where one uniform radius would round too much.
  • Turning a corner value from a design file or screenshot into a correct four-value declaration, using the visual box to check the corner order instead of trusting memory.
  • Comparing radii quickly on a live box - flipping between 8px, 12px, and 16px - before committing a value to the stylesheet, instead of editing and reloading the page repeatedly.

Limits and checks

  • Four-value order: the shorthand is clockwise from the top-left (top-left, top-right, bottom-right, bottom-left). If you expect the third number to be the bottom-left corner, the pasted result will put that radius on the bottom-right instead.
  • Percentages resolve against width and height separately, so border-radius: 50% on a non-square box is an ellipse, not a circle. A circle requires 50% plus equal dimensions; the preview shows the true rendering, which looks wrong only because the shape math is not a circle.
  • Extreme values clamp: when two adjacent radii sum to more than the side between them, the browser scales both down proportionally. This is why border-radius: 9999px renders as a pill rather than overflowing, and it means a very large value on the preview will not look as large as typed.

Common questions

Why does 50% not make a circle?

Percentages resolve against the box's width and height independently, so on a rectangle, 50% on every corner produces an ellipse, not a circle. A true circle needs equal width and height, or a large fixed pixel radius on a square. The tool's preview runs the same math the browser does, so the ellipse you see is the correct rendering, not a glitch.

How do I get a pill-shaped button?

Set every corner to at least half the element's height, or to a very large value such as 9999px. Adjacent radii whose sum exceeds the side length are scaled down proportionally by the browser, so the ends render as semicircles. Half the height is enough and keeps the value readable; larger values clamp to the same visual result.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools