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;

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

  1. Choose a unit — px for fixed pixel sizes or % for proportional rounding.
  2. Drag each corner slider (Top-Left, Top-Right, Bottom-Right, Bottom-Left) to set the radius.
  3. Enable "Link all corners" to keep all four values in sync while dragging.
  4. Watch the live preview box update its shape in real time.
  5. Click "Copy Shorthand" to copy the compact border-radius declaration.
  6. 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