CSS Border Radius Generator
About this tool
About Border Radius Generator
border-radius can do far more than round corners. Each corner takes two radii, one horizontal and one vertical, and when they differ you get elliptical curves that turn a plain box into a leaf, an egg, a drop or an organic blob. This generator gives you a slider for every one of those eight values, in percent or pixels, with switches to link all four corners or keep each curve circular. Presets cover the common shapes (rounded, pill, circle, leaf, drop, egg, ticket) and a Random blob button makes new organic shapes in which opposite edges add up to 100%, so the outline stays smooth. Resize the preview box and change its fill to see how the shape reacts to different proportions. The output is the shortest correct shorthand, using the slash syntax only when needed, plus a Tailwind arbitrary class. It all runs locally in your browser. Choose from 21 shape templates such as cards, pills, bottom sheets, chat bubbles, tickets, squircles, arches and organic blobs.
Built and maintained by Abhi JainUpdated
How to Make a Custom Border Radius
- 1
Choose a starting shape
Pick a preset or press Random blob.
- 2
Adjust the corners
Choose % or px, then drag the Horizontal and Vertical sliders for each corner. Tick Same for all corners to change them together.
- 3
Copy the code
Copy the border-radius CSS or the Tailwind class.
Border Radius Generator: questions and answers
What does the slash in border-radius mean?
Values before the slash are the horizontal radii and values after it are the vertical radii, listed top-left, top-right, bottom-right, bottom-left. border-radius: 30% 70% / 70% 30% gives elliptical corners.
How do I make a perfect circle with CSS?
Give an element equal width and height and set border-radius: 50%.
How do I make a pill-shaped button?
Use a very large pixel radius such as 9999px. The browser caps it at half the element's height, so the ends are always fully round whatever the width.
Should I use % or px for border-radius?
Pixels keep the same curve at any size, which suits cards and buttons. Percentages scale with the element and are needed for circles and blob shapes.
Can I animate border-radius?
Yes. border-radius transitions smoothly, so morphing blobs are often made by animating between two eight-value radii.
Which border-radius templates are included?
21 shapes in four groups: UI components (input, card, modal, pill, bottom sheet, tab, corner cut), chat and badges (message bubbles, ticket, price tag), avatars and media (circle, squircle, arch, pebble) and organic shapes (leaf, drop, blob, egg, petal).
Related Tools
- Box Shadow GeneratorLayered CSS box shadows with inset, presets and a live preview.
- Neo-Brutalism GeneratorBold borders, hard offset shadows and flat colour, as CSS or Tailwind.
- CSS Button GeneratorDesign a button with hover, active and focus states; get CSS, Tailwind and HTML.
- CSS Gradient GeneratorLinear, radial and conic CSS gradients with a live preview.