CSS Border Radius Generator – Create Custom Shapes

Top Left
px
Top Right
px
Bottom Right
px
Bottom Left
px
Unit:
Preview color:#3b82f6

Live Preview

Generated CSS

border-radius: 20px;
Tailwind: rounded-[20px]

Preset Shapes

What Is a CSS Border Radius Generator?

A CSS border-radius generator lets you create rounded corner values visually without writing code by hand. Adjust sliders for each corner, choose a unit (px or %), preview the result in real time, and copy the CSS or Tailwind class instantly.

Common Shapes You Can Create

  • Circle: border-radius: 50% on a square element
  • Pill / Stadium: border-radius: 9999px on any rectangular element
  • Squircle: ~30% on all corners — used in iOS app icons
  • Blob / Organic: different values on each corner for a natural, flowing shape
  • Rounded rectangle: small equal values like 8px or 16px

Using the px vs % Unit

Pixel values give a fixed curve size regardless of the element dimensions. Percentage values scale with the element — 50% on all four corners always creates a circle or ellipse. Use px for cards and buttons where you want a consistent look at any size, and % for shapes that should scale with the element.

Frequently Asked Questions

What is CSS border-radius?
It rounds the corners of an element's border box. You can set all four corners equally or independently — top-left, top-right, bottom-right, bottom-left.
Difference between px and % for border-radius?
px gives a fixed corner size. % is relative to the element's dimensions — 50% on all corners of a square makes a perfect circle.
How to make a perfect circle in CSS?
Set border-radius: 50% on an element with equal width and height. Use the Circle preset in this tool.
What is a CSS pill shape?
A pill is created by setting border-radius larger than half the element height. border-radius: 9999px is a universal approach.
What is a squircle?
A shape between square and circle — like iOS app icons. Approximately border-radius: 25–30% gives a squircle look.
How to copy as a Tailwind class?
Click Copy Tailwind. For equal corners: rounded-[Xpx] or rounded-full. For different corners: separate rounded-tl, rounded-tr, rounded-br, rounded-bl utilities.

Related Developer Tools