Border Radius Generator Online — Free Tool

Configure border radius attributes intuitively and generate the accompanying CSS or Tailwind classes.

Preview
CSS
border-radius: 24px 24px 24px 24px;
Tailwind classes
rounded-[24px]
Privacy note: All processing happens entirely in your browser. No data is sent to our servers.

About this tool

Border radius rounds corners on cards, avatars, and buttons. Set per-corner values or use shorthand to copy border-radius CSS instantly.

Preview helps when matching design specs that use uneven radii on the same component.

Common use cases

  • Pill buttons and rounded cards
  • Avatar and thumbnail clipping
  • Asymmetric corners on marketing blocks
  • Matching Figma radius tokens in code

How to use

  1. Drag sliders for each corner or use a unified radius control.
  2. Toggle between uniform and per-corner editing.
  3. Preview the box with your chosen radii.
  4. Copy border-radius CSS for your component.

This page is available at /tools/border-radius-generator/.

Understanding the result

  • 50% on a square element yields a circle; on rectangles you get elliptical corners.
  • Four-value shorthand order is top-left, top-right, bottom-right, bottom-left.
  • Large radii on small elements can collapse sides into curves.
  • border-radius clips background and border but children may overflow without overflow:hidden.

FAQ

How do I make a circle?

Use 50% radius on equal width and height, or border-radius: 9999px for pills.

Can corners differ?

Yes. Per-corner values create asymmetric shapes popular in modern layouts.

Does this affect border-image?

border-radius rounds the border box; border-image behavior can differ—test in target browsers.

Tailwind equivalent?

Map values to rounded-lg, rounded-xl, or arbitrary rounded-[12px] classes.