Creator

CSS border-radius Explained: One, Two and Four Values

Rounded corners soften interfaces and signal quality, from gently curved cards to fully pill-shaped buttons. How the CSS border-radius property works and how its one-, two- and four-value shorthand maps to each corner. Applying these recommended techniques ensures high visual quality, faster page load speeds, and reliable performance across modern desktop and mobile web browsers.

Awais 2 min readPublished
CSS border-radius Explained: One, Two and Four Values

Rounded corners soften interfaces and signal quality, from gently curved cards to fully pill-shaped buttons. The CSS border-radius property can do far more than a single uniform curve, though. The ToolOrbit Border Radius Generator lets you control every corner independently with a live preview and copy the exact CSS in one click.

How border-radius works

The border-radius property accepts up to four values, one for each corner starting at the top-left and moving clockwise. A single value rounds all corners equally, while individual values create asymmetric shapes. Using a large value like 9999px on a short element produces a perfect pill, and 50% on a square produces a circle.

  • One value: rounds all four corners equally
  • Four values: top-left, top-right, bottom-right, bottom-left
  • Percentages: scale with the element, useful for circles and ovals
  • Large pixel values: create pill-shaped buttons and badges
.card {
  border-radius: 12px;
}

.tag {
  border-radius: 12px 4px 12px 4px;
}

.avatar {
  border-radius: 50%;
}

Shaping corners with border-radius

Drag the slider for each corner, or set them together for a uniform curve, and watch the shape change instantly in the live preview. When you are happy with the result, copy the generated border-radius rule and drop it into your stylesheet.

  • Adjust each corner with its own control
  • Combine corners for symmetric or asymmetric shapes
  • Preview the live shape as you edit
  • Copy the finished CSS with one click
Keep your corner radius consistent across similar components. Mismatched radii between a button and its container is a common detail that makes a UI feel unpolished.

From subtle 8px cards to fully rounded avatars, the ToolOrbit Border Radius Generator removes the trial and error of guessing values. Experiment visually, then ship clean, copy-ready CSS that matches your design system.

One value, two values, four values — shorthand decoded

border-radius shorthand
ValuesMeaning
1 (8px)All four corners
2 (8px 16px)Top-left & bottom-right; top-right & bottom-left
3 (8px 16px 4px)TL; TR+BL; BR
4 (8px 4px 16px 12px)TL; TR; BR; BL (clockwise)

The generator collapses whatever you dial in to the shortest valid shorthand, which keeps exported CSS tidy. A slash syntax (8px / 40%) creates elliptical corners — trendy pill buttons and “squircle” cards — and is exactly the kind of thing it is easier to build visually than to type from memory.

Match the radius to the visual weight, not to a favorite number: tiny chips take 4–6px, cards take 12–16px, hero panels take 20px+, and pills go fully round. Consistent radii across components read as a system; a random radius per element reads as chaos. The same shorthand works on clip-path if you output from a generator.


Tools mentioned

More reading

View all guides
HEX vs RGB vs HSL: Which Color Format to Use
Creator

HEX vs RGB vs HSL: Which Color Format to Use

HEX, RGB and HSL describe the same colours in three ways. Here is how each one works and when each is the easier choice in CSS and design tools.

2 min readPublished
How CSS Gradients Work: Angles, Color Stops and Examples
Creator

How CSS Gradients Work: Angles, Color Stops and Examples

How linear and radial CSS gradients are built, what the angle really means, how colour stops are placed, and tips for gradients that look good.

2 min readPublished
CSS box-shadow Explained: Offset, Blur, Spread and Inset
Creator

CSS box-shadow Explained: Offset, Blur, Spread and Inset

How the CSS box-shadow property works, value by value, with tips for layered, realistic shadows.

2 min readPublished
CSS Border Radius: 15 Copy-Paste Examples
Developer

CSS Border Radius: 15 Copy-Paste Examples

15 modern CSS border radius examples: rounded cards, pills, circle avatars, asymmetrical organic blobs, and fancy 8-value border radius shapes.

3 min readPublished
GEO, AEO and AIO Explained: How to Get Cited in AI Search
SEO

GEO, AEO and AIO Explained: How to Get Cited in AI Search

Understand GEO, AEO, and AIO search optimization. Learn how AI engines discover, extract, and cite your content with our practical checklists and free tools.

5 min readPublished
Watermarking a PDF: text stamps explained
PDF

Watermarking a PDF: text stamps explained

When a CONFIDENTIAL or DRAFT stamp is worth adding, how to size and place it, and what a watermark can and cannot protect.

3 min readPublished
Page numbers in a PDF: placement, format and start values
PDF

Page numbers in a PDF: placement, format and start values

How to number a PDF cleanly for reports, theses and filing — where to put the numbers, which format to pick, and how to start from any value.

2 min readPublished
How to create a reusable digital signature image
Business

How to create a reusable digital signature image

The difference between a signature image, an electronic signature and a legally binding one — and how to draw a clean PNG you can reuse.

2 min readPublished