Border Radius Lab

What Is a Border Radius Generator?

The CSS border-radius property rounds the corners of any element. While simple rounded corners are easy to write by hand, asymmetric shapes take some trial and error, because percentages and the corner-overlap rule change what you see on different box sizes. Set each corner with a slider (in px, %, em or rem), start from one of 12 presets, and preview the result on four box shapes.

Understanding the Syntax

A single value like border-radius: 12px rounds all four corners equally. Four values set each corner individually: top-left, top-right, bottom-right, bottom-left. The advanced slash syntax (border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%) creates elliptical corners where horizontal and vertical radii differ — enabling truly organic shapes.

How to Use This Border Radius Lab

  1. Set each corner independently — Adjust the border-radius for top-left, top-right, bottom-right, and bottom-left corners individually.
  2. Link or unlink corners — With Link Corners on, one slider sets all four; turn it off to set each corner separately. (The tool writes one radius per corner; it has no slash syntax.)border-radius: TL TR BR BL / TL TR BR BL syntax.
  3. Use presets — Start from one of 12 shapes (Rounded, Pill, Circle, Leaf, Drop, Ticket, Dialog, Blob, Pebble, Squircle, Notch Top, Half) and adjust from there.
  4. Preview on different box shapes — Switch between square, rectangle, wide and circle previews, with an optional border, to see how the same value changes with the box size.
  5. Copy the CSS — Click Copy for the complete border-radius declaration.

Worked example: what the presets turn into on each preview shape

Every value this tool writes is a single radius per corner, but percentages are resolved twice: against the width for the horizontal radius and against the height for the vertical one (CSS Backgrounds 3). So on any non-square box a % value already gives elliptical corners. And when two neighbouring corners add up to more than the side between them, the browser scales all four radii down by the same factor (section 5.5). We worked the presets through those two rules for the tool's Wide (300 × 140) and Rectangle (180 × 260) previews on October 12, 2026, and checked three of them pixel by pixel in Chromium (first filled pixel on row 10 within 1 px of the prediction).

PresetCSS copiedOn Wide 300×140On Rectangle 180×260
Pill999px all70 px circular (scaled by 0.07)90 px circular (×0.09)
Circle50% all150 × 70 px ellipses: an oval90 × 130 px ellipses: an oval
Blob30% 70% 30% 70%90×42 and 210×98 px corners, no flat edge left on top or bottom54×78 and 126×182 px
Leaf0% 50% 0% 50%two 150×70 px corners, two squaretwo 90×130 px corners, two square
Rounded / Squircle16px / 24px allunchangedunchanged

Frequently Asked Questions

What is CSS border-radius?
The border-radius property rounds the corners of an element. You can set a single value for all corners, or four individual values. Each value can use px, %, or em units. The slash syntax allows elliptical corners with different horizontal and vertical radii.
How do I make a circle with CSS?
Set border-radius: 50% on a square element (equal width and height). The 50% value rounds each corner by half the element's dimensions, creating a perfect circle.
Can I make irregular rounded shapes?
Yes. CSS accepts two radii per corner separated by a slash (horizontal / vertical), which gives elliptical corners. This tool writes one radius per corner, but a % value is already elliptical on any non-square box because it resolves against the width horizontally and the height vertically. For full 8-value control, edit the copied value by hand.
What is the 8-value border-radius syntax?+
The full syntax is border-radius: TL TR BR BL / TL TR BR BL, where the first four values set horizontal radii and the last four set vertical radii. This creates elliptical corners — enabling organic shapes like leaves, eggs, and blobs using pure CSS.
Does border-radius affect the content area?+
Border-radius only rounds the visual border and background — it doesn't clip child content by default. To clip overflow content to the rounded shape, add overflow: hidden to the element. This is commonly needed when rounding images or containers with backgrounds.

📖 Learn More

Related Article How to Use CSS Border Radius for Rounded Corners →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service