SanWebCorner · CSS Tools

CSS Border Radius Generator

Round individual corners or link all four corners together. Switch between pixels and percentages, preview the shape, and copy a complete border-radius declaration.

Free · no signupInteractive controlsCopy & download

How to generate rounded corners

  1. Choose Rounded, Pill or Asymmetric, or start with custom corner values.
  2. Keep Link all corners enabled for a uniform radius, or turn it off for separate controls.
  3. Select pixels or percent and inspect the live sample card.
  4. Copy the output or download border-radius.css. Reset corners restores a linked 24px radius.

Corner order in border-radius

The four-value shorthand follows top left, top right, bottom right, bottom left. This generator always outputs all four values so the relationship is explicit. See MDN’s border-radius reference for the shorthand and percentage rules.

border-radius: 48px 8px 48px 8px;

Pixels versus percentages

A pixel radius supplies a fixed length. A percentage supplies horizontal and vertical radii relative to the box’s width and height, so a non-square box can have elliptical corners. A 50% radius on a square creates a circle; the same percentage on a rectangle creates an ellipse-like rounded shape.

If adjacent radii would overlap, the browser scales the radii proportionally to fit the box. A large input therefore does not always appear as that exact visible radius. The preview card demonstrates the result for its own dimensions; test the CSS on your actual element too.

Limits and presets

Pixel values range from 0 to 240; percentages range from 0 to 100. Switching units keeps the entered numbers and validates them under the new bounds. The Pill preset selects 50% on every corner; the Asymmetric preset uses alternating 48px and 8px corners.

Frequently asked questions

Why did all four values change?

Link all corners was enabled. Turn it off to edit one corner independently.

Will border-radius clip child content?

Rounded borders do not by themselves ensure that all overflowing child content is clipped. Set an appropriate overflow rule when your layout requires clipping.

Can I set separate horizontal and vertical radii?

This version does not generate slash-separated elliptical-radius pairs. It generates the standard four-corner form in one unit.

Local processing and downloads

The tool component runs locally in your browser without a conversion API or saved input history. Copy exports the current output; Download saves the current result. Normal website advertising and analytics still run on this page.

More CSS tools