Developer

CSS Border Radius: 15 Copy-Paste Examples

CSS border-radius is one of the most versatile properties in modern web design. 15 modern CSS border radius examples: rounded cards, pills, circle avatars, asymmetrical organic blobs, and fancy 8-value border radius shapes. Applying these recommended techniques ensures high visual quality, faster page load speeds, and reliable performance across modern desktop and mobile web browsers.

Awais 3 min readPublished
CSS Border Radius: 15 Copy-Paste Examples

CSS border-radius is one of the most versatile properties in modern web design. Beyond standard rounded corners on cards and buttons, the CSS border-radius specification supports asymmetrical corners, percentage scaling, and 8-value organic blob shapes.

Here are 15 ready-to-use CSS border radius examples you can copy and paste directly into your stylesheets or UI components.

1. Standard Card Corners

/* Modern subtle rounded card */
.card {
  border-radius: 12px;
}

2. Extra-Soft Pill Button

/* Fully rounded pill button */
.btn-pill {
  border-radius: 9999px;
  padding: 10px 24px;
}

3. Perfect Circle (Avatars / Icons)

/* Element must have equal width and height */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

4. Diagonal Rounded Corners (Modern Badge)

/* Top-left and bottom-right rounded only */
.diagonal-badge {
  border-radius: 20px 0 20px 0;
}

5. Chat Bubble (Left Tail)

/* Speech bubble with pointed bottom-left corner */
.chat-bubble {
  border-radius: 18px 18px 18px 0px;
}

6. Organic Blob Shape (8-Value Syntax)

/* Fluid organic shape */
.blob-shape {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

7. Smooth Organic Egg Shape

/* Smooth egg / pebble shape */
.egg {
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

8. Tab Navigation Top Corners

/* Rounded top edge for browser-style tabs */
.tab-item {
  border-radius: 8px 8px 0 0;
}

9. Leaf / Petal Shape

/* Pointed opposite corners creating a leaf */
.leaf {
  border-radius: 0 40px 0 40px;
}

10. Asymmetrical Hero Card

/* Distinctive asymmetrical landing hero */
.hero-card {
  border-radius: 32px 8px 32px 8px;
}

11. Rounded Triangle / Teardrop

/* Teardrop indicator */
.teardrop {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

12. Floating Action Button (Squircle)

/* iOS-style super-ellipse / squircle effect */
.squircle {
  border-radius: 35%;
}

13. Bottom Sheet Modal

/* Mobile slide-up modal with rounded top */
.bottom-sheet {
  border-radius: 24px 24px 0 0;
}

14. Ticket Coupon (Inward effect pairing)

/* Corner badge */
.ticket-header {
  border-radius: 16px 16px 4px 4px;
}

15. Morphing Blob (Animation Ready)

/* Keyframe-friendly organic blob */
.morph-blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transition: border-radius 0.5s ease;
}
Want to preview these shapes in real-time? Open the Border Radius Generator to interactively adjust all 8 corner values and copy clean CSS code instantly.

Frequently asked questions

The 8-value syntax uses a slash (/) to define horizontal radii on the left and vertical radii on the right: border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%. This creates organic, asymmetrical blob shapes.

Ensure the element has equal width and height (e.g., width: 100px; height: 100px;), then set border-radius: 50% or border-radius: 9999px.

Set border-radius: 9999px (or border-radius: 50rem). This rounds the left and right ends into smooth half-circles regardless of button width.

Yes! Use ToolOrbit's free Border Radius Generator to adjust all corners visually and copy the CSS in one click.


Tools mentioned

More reading

View all guides
Free Developer Tools Online: 2026 Developer Toolkit & Guides
Developer

Free Developer Tools Online: 2026 Developer Toolkit & Guides

Explore 30+ free browser-based developer tools: JSON formatters, Base64 converters, cron generators, regex testers, SQL formatters, and hash generators.

3 min readPublished
Percent Encoding Reference Table (Every Character)
Developer

Percent Encoding Reference Table (Every Character)

Complete percent encoding ASCII reference table: quick lookup for spaces, slashes, ampersands, punctuation, and UTF-8 special characters in URLs.

3 min readPublished
URL Encoding Explained: %20 vs +, Reserved Characters & Rules
Developer

URL Encoding Explained: %20 vs +, Reserved Characters & Rules

Complete guide to percent encoding in URLs: learn when to use %20 vs +, how reserved characters like & and ? work, and how to avoid encoding bugs.

3 min readPublished
Cron Every Hour, Day & Midnight: All Daily Schedules
Developer

Cron Every Hour, Day & Midnight: All Daily Schedules

Master standard daily cron schedules: cron every hour, every day at midnight, twice a day, and custom hourly intervals with copy-paste examples.

4 min readPublished
Cron Expression Cheat Sheet — Copy-Paste Schedule Examples
Developer

Cron Expression Cheat Sheet — Copy-Paste Schedule Examples

Free cron expression cheat sheet with copy-paste examples for every 5 minutes, hourly, daily at midnight, weekdays only, and more.

5 min readPublished
Cron Every 10 Minutes — Syntax, Examples and Best Practices
Developer

Cron Every 10 Minutes — Syntax, Examples and Best Practices

Use the cron expression */10 * * * * to run jobs every 10 minutes, plus examples for common schedules and troubleshooting tips.

3 min readPublished
Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers
Developer

Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers

Why CSV files are harder to read correctly than they look, how to choose the right JSON shape, and the mistakes to avoid.

2 min readPublished
YAML vs JSON: Differences That Matter When Converting
Developer

YAML vs JSON: Differences That Matter When Converting

Why YAML is not just indented JSON, the types the two formats disagree on, and best practices for converting config files.

2 min readPublished