ToolSphere

Border Radius Previewer

More tools

Preview and generate CSS border-radius styles with linked or per-corner controls. Switch between pixels and percentages and copy ready CSS declarations.

CSS
border-radius: 16px;

Percentages are relative to the element's own width and height, so a 50% radius always produces an ellipse however the box is resized. Pixel values stay fixed, which is what you usually want for cards and buttons.

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

How to use Border Radius Previewer

  1. 1Drag the linked slider for a uniform radius.
  2. 2Untick Link all corners to shape each corner independently.
  3. 3Switch between px and % to see how each behaves as the box resizes.
  4. 4Copy the shorthand declaration.

About Border Radius Previewer

Corner radius as a design decision

Radius carries tone. Square corners read as technical and dense — tables, code, dashboards. A small radius of 4 to 8px reads as neutral and modern. Large radii of 16px and up read as friendly and consumer-facing. Fully rounded ends (a radius at or above half the height) read as a pill, which is why tags and filter chips use them.

The one rule worth holding to is consistency: pick two or three values, use them everywhere, and make nested elements use a smaller radius than their container. A nested box with the same radius as its parent looks wrong because their curves run parallel at different offsets — the optical rule is that the inner radius should be roughly the outer radius minus the padding.

px versus %

Pixel radii stay fixed however the element is sized, which is what you want for cards and buttons. Percentage radii are computed against the element's own width and height, so 50% always yields an ellipse whatever the dimensions — useful for avatars and dots, confusing anywhere else, since resizing the box silently changes the curve.

Per-corner control

Unlinking the corners covers the cases a single value cannot: a speech bubble with one square corner, tabs rounded only at the top, or a grouped button bar where the first and last elements round outward and the middle ones stay flat. The generated shorthand lists the corners clockwise from the top left, which is the order CSS expects.

Frequently asked questions

px or percent?

Pixels for cards and buttons, where the curve should stay fixed as the element resizes. Percent for avatars and dots, where 50% always produces an ellipse whatever the dimensions.

What radius should nested elements use?

Less than their container. The optical rule is inner radius equals outer radius minus the padding; matching the parent's radius makes the curves look wrong.

How do I make a pill shape?

Set a radius at or above half the element's height — a large px value such as 999px is the common shortcut, since it is clamped to half the smaller dimension.

What order does the shorthand use?

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

Have a suggestion for Border Radius Previewer?Share your feedback ↗