CSS Border Radius Generator
Drag the sliders to set each corner radius independently, toggle px or %, and copy the ready-to-use CSS border-radius shorthand or longhand declaration.
Corner Settings
Unit
Link all corners
px
px
px
px
Live Preview
Generated CSS
Shorthand
border-radius: 8px;
Four individual properties
Summary
Drag the sliders to set each corner radius independently, toggle px or %, and copy the ready-to-use CSS border-radius shorthand or longhand declaration.
How it works
- Choose a unit — px for fixed pixel sizes or % for proportional rounding.
- Drag each corner slider (Top-Left, Top-Right, Bottom-Right, Bottom-Left) to set the radius.
- Enable "Link all corners" to keep all four values in sync while dragging.
- Watch the live preview box update its shape in real time.
- Click "Copy Shorthand" to copy the compact border-radius declaration.
- Expand "Longhand" to see and copy the four individual border-*-radius properties.
Use cases
- Generating pill buttons with a high border-radius value on left and right.
- Creating asymmetric blob or organic shapes for hero section backgrounds.
- Setting consistent rounded card corners across a design system.
- Quickly testing what different corner radii look like before writing CSS.
- Producing the exact border-radius shorthand needed for CSS-in-JS or Tailwind config.
- Learning the difference between shorthand and longhand border-radius syntax.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu