Skip to content
hateitall

Border Radius Generator

Shape cards, tabs, pills and speech bubbles corner by corner and get the shortest correct shorthand.

Processed locallyIn: Number, ColourOut: CSS, Tailwind classes

Loading tool…

How to use border radius generator

  1. Choose px or percent and pick a preset such as Card, Pill, Tab, Speech or Egg.

  2. Drag each corner's slider, or tick Same value for every corner to move them together.

  3. Turn on separate horizontal and vertical radii for elliptical corners.

  4. Resize the preview shape, then copy the CSS or the rounded-[...] Tailwind class.

What this tool does

  • Edits all four corners on their own or together, in px or %.
  • Supports the full eight-value elliptical syntax with the slash between horizontal and vertical radii.
  • Collapses the result to the shortest equivalent shorthand, from one value up to four.

How the result is verified

The preview uses the generated border-radius value. The shorthand is only shortened where corner values are identical, so the short form and the long form draw the same shape.

Frequently asked questions

Why does 999px make a pill shape?

When two neighbouring corners add up to more than the side they share, the browser scales every corner down by the same factor. A huge value therefore becomes exactly half the height, which gives round ends.

What does the slash in border-radius mean?

Values before the slash are horizontal radii and values after it are vertical radii. Different pairs give elliptical corners, which is how egg and leaf shapes are made.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Organic blob shapes from border-radius, gradient fill and morph animation

Number · Colour→ CSSLight on device

Layered box-shadow builder with presets, inset and Tailwind output

Number · Colour→ CSSLight on device

Solid, outline, soft, ghost and gradient buttons with every state

Number · Colour · Text→ CSSLight on device

Thick borders, hard shadows, press states and a text contrast check

Number · Colour · Text→ CSSLight on device