CSS Border Radius Generator — Corners & Blobs
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Corners
Shape
border-radius: 16px;
About this tool
Adjust all four corners together or unlink them to shape each one separately, in pixels or percent. Presets cover common shapes: rounded, pill, circle, leaf and ticket, plus a few blobs and an egg. The preview shape can be resized and recoloured so you can judge it at the size you will actually use.
Turn on elliptical mode to set horizontal and vertical radii independently — the eight-value border-radius syntax — which is how smooth, organic blob shapes are made with nothing but CSS. The Blob button picks random values for a new shape each time, which is a quick way to find a starting point to refine by hand.
The output is collapsed to the shortest equivalent value, ready to paste, along with a Tailwind class. For example, four equal 16px corners become border-radius: 16px, while a leaf shape is written as 0 50% for the four corners. Sliders go up to 200px or 100%, and when you switch from px to % values above 50% are brought down to 50%.
Some things to remember. Percentages are relative to the element’s own width and height, so 50% gives a circle only on a square and an ellipse on a rectangle, whereas px values stay constant at any size. Browsers scale all radii down proportionally when two neighbouring corners would overlap, so a very large value will not break the layout. Border-radius also clips the background and the border, but not child content unless you add overflow: hidden. Everything is generated in your browser.
Frequently asked questions
How do I make a perfect circle?
Give the element equal width and height and set border-radius: 50%.
What does border-radius with a slash mean?
Values before the slash are horizontal radii and values after it are vertical radii, one for each corner. Different values make elliptical corners.
Why is my pill shape not fully rounded?
Use a radius at least half the element’s height — a very large value like 999px is a common trick that always works.
In what order are the four values applied?
Clockwise from the top left: top-left, top-right, bottom-right, bottom-left. With two values, the first is top-left and bottom-right, and the second is top-right and bottom-left.
Should I use px or percent?
Use px for a fixed corner size, such as buttons and cards that should look the same at any width. Use % for shapes that must scale with the element, such as circles and blobs.
Why does my image still have square corners?
The radius clips the element’s own box, so an img tag should get the radius itself. For a container holding an image, add overflow: hidden so the content is clipped too.
Does it give Tailwind classes?
Yes. Under the CSS there is a Tailwind version, using rounded-[…] for custom values, which you can copy next to the plain CSS.