Creator

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

ToolOrbit Team 2 min readUpdated
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 readUpdated
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 readUpdated
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 readUpdated
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 readUpdated
What Is Base64? How Encoding Works and Common Mistakes
Developer

What Is Base64? How Encoding Works and Common Mistakes

What Base64 encoding actually does, where it is used, and the mistakes that cause broken or oversized output.

2 min readUpdated
encodeURI vs encodeURIComponent: Which One to Use
Developer

encodeURI vs encodeURIComponent: Which One to Use

How percent-encoding works, the difference between encoding a whole URL and a single component, and the mistakes that break links.

2 min readUpdated
What Is a UUID? Version 4 vs Version 7 Explained
Developer

What Is a UUID? Version 4 vs Version 7 Explained

What a UUID looks like, why version 4 is the safe default, when version 7 is better, and best practices for IDs.

2 min readUpdated
How SHA-256 and SHA-512 Hashes Work: Hashing vs Encryption
Developer

How SHA-256 and SHA-512 Hashes Work: Hashing vs Encryption

What a hash function does, how to choose between SHA-256 and SHA-512, and why hashing is not encryption.

2 min readUpdated