CSS Border Radius Generator
Corners, Pills and Organic Blobs
Drag the handles and copy the CSS. Set each corner on its own or linked, in px, % or rem, and shape organic blobs with the 8-value elliptical border-radius. The shorthand is written in its shortest form, with a Tailwind class too. 100% client-side. Zero data stored.
CSS Border Radius Generator Tool
Shape a Border Radius
Drag a handle, or focus it and use the arrow keys (hold Shift for bigger steps). On a narrow screen the preview shrinks to fit; the CSS does not change.
You can also type or paste a value here, with or without the border-radius: prefix, and the controls follow.
CSS
Tailwind CSS
Tailwind has no utility for an elliptical or per-corner mix, so this is an arbitrary value that works in versions 3 and 4. A single 9999px value becomes rounded-full and 0 becomes rounded-none.
Whole element
Presets
The box size (in px) is used to convert between units and to show when radii overlap. It is not part of the border-radius value.
Top left corner
Unit: %
Top right corner
Unit: %
Bottom right corner
Unit: %
Bottom left corner
Unit: %
Common Use Cases
Buttons and Cards
Pick a corner size for buttons, inputs and cards, and copy it as px, rem or a Tailwind class.
Pills and Tags
Use a very large px radius for fully rounded badges, tags and toggle tracks that stay round at any height.
Organic Blobs
Drag the eight handles to shape a blob for a hero background or an avatar frame, with no SVG or image needed.
Leaves and Drops
Round two opposite corners fully and leave the others square for leaf, drop and speech bubble shapes.
Unit Conversion
Switch between px, % and rem and the radii are converted using your box size, so the shape stays the same.
Shorten Existing CSS
Paste a long border-radius value and see it rewritten in the shortest equivalent form.
Border Radius Syntax Reference
How the Shorthand Reads
| Values | Example | Applies to |
|---|---|---|
| 1 | 16px | All four corners |
| 2 | 10px 20px | Top-left and bottom-right, then top-right and bottom-left |
| 3 | 10px 20px 30px | Top-left, then top-right and bottom-left, then bottom-right |
| 4 | 10px 20px 30px 40px | Top-left, top-right, bottom-right, bottom-left (clockwise) |
| With a slash | 50% / 30% | Horizontal radii before the slash, vertical radii after it |
What the Units Mean
| Unit | Relative to |
|---|---|
| px | A fixed size. 9999px is the usual way to get a pill that is round at any height. |
| % | The box: horizontal radii use its width and vertical radii use its height, so 50% on a wide box is an ellipse, not a circle. |
| rem | The root font size, normally 16px, so radii scale with the user's text size setting. |
When two radii on one side add up to more than that side, the browser scales every radius down by the same factor so the curves just touch. The preview shows the scaled result and a note tells you.
One unit at a time
All eight values share one unit. CSS allows mixing units, but this tool converts a pasted mixed value to a single unit using your box size.
Radius, not clipping
The preview is a plain box. It does not show how a radius clips child content, borders or images; add overflow: hidden to clip them. For other shapes use the Clip Path Generator.
Handles stay in bounds
Dragging stops where two radii on a side would touch, so what you see is what you set. Typing a larger value is allowed, and the overlap note appears.
Related tools
Add depth with the Box Shadow Generator and convert sizes with the REM Converter.
Pro Tip: URL Parameters
Open the generator with a shape already loaded. Use ?preset= with rounded, pill, circle, leaf, blob, blob2, egg, drop, tab or bubble, or set the numbers with ?h= (four horizontal radii), ?v= (four vertical radii), ?u= (px, pct or rem), ?w= and ?ht= (box size). For example: /border-radius-generator/?preset=pill or /border-radius-generator/?h=30,70,70,30&v=30,30,70,70&u=pct&w=320&ht=240
The four numbers run top-left, top-right, bottom-right, bottom-left. Leave out v for circular corners. Add link=1 to start with all corners linked. The Copy Link button builds the link from your current shape.
Frequently Asked Questions
Why We Built This Border Radius Generator
Rounding a corner is easy; shaping a blob is not. The eight-value form of border-radius, with a slash between the horizontal and vertical radii, can draw organic shapes in pure CSS, but nobody can picture 30% 70% 70% 30% / 30% 30% 70% 70% without seeing it. We built a generator where you drag a handle on each edge, watch the shape change, and copy the result.
The output follows the real shorthand rules: one value when all corners match, two or three when they pair up, and no slash when the vertical radii equal the horizontal ones. You can link the corners, switch between px, % and rem, paste an existing value to shorten it, and share a link that restores the exact shape. Everything runs in your browser - nothing you design is sent anywhere.
The Border Radius Generator is part of RJL.io's collection of free developer tools. Add depth with the Box Shadow Generator, cut other shapes with the Clip Path Generator, and build backgrounds with our Gradient Generator.