Guide
Shape a card, button, avatar or decorative panel with a CSS border-radius declaration. Basic mode offers four corner values with independent pixel or percentage units. Advanced organic mode exposes four horizontal and four vertical percentage radii. The preview uses the same generated value as the code block and clipboard. Generation runs in your browser without sending radius values to a processing service.
1Choose a mode or preset
Start with Basic corners or Advanced organic shape, or apply one of eight presets. Circle sets a square preview and Pill sets a wide preview. Presets replace both modes' values and preview proportions.
2Adjust corner values
Use sliders or numeric inputs in top-left, top-right, bottom-right, bottom-left order. Basic mode supports 0–200px and 0–100% per corner. Organic mode uses separate horizontal and vertical percentages.
3Link corners and inspect the shape
In Basic mode, link corners to apply your next value or unit edit to all four. Linking alone keeps existing values. Change preview proportions to see how percentages and overlapping radii behave on different boxes.
4Copy the border-radius CSS
Copy the declaration into a CSS rule for your element. Match its intended dimensions, especially for circles and pills. Reset restores the linked 24px rounded rectangle and default organic values.
The border-radius property rounds the corners of an element's border box. One value applies to all corners; four values describe top-left, top-right, bottom-right and bottom-left in that order. The generator shortens four identical basic values to one value. Otherwise it keeps all four values explicit, including their units. It does not change the element's layout dimensions.
Unlink the basic controls to edit each corner independently. For example, border-radius: 12px 24px 36px 48px; gives every corner a different radius. Set three corners to zero to round only one corner. Linking does not immediately replace your values; your next numeric or unit edit applies that corner's complete value and unit to all four. Unlinking retains the current values.
A pixel radius is a CSS length, while a percentage depends on the element's dimensions. Horizontal percentages resolve against width and vertical percentages against height. A single 50% value on a non-square box can therefore form an ellipse. Basic mode allows mixed px and % units across corners. Switching a unit keeps the number without converting it to a visually equivalent radius. If a retained value exceeds the new unit's range, reduce it before copying.
The Circle preset combines border-radius: 50%; with an equal-width-and-height preview. Applying 50% to a rectangle produces an ellipse. The Pill preset uses a 200px radius on a wide preview; the browser reduces overlapping circular radii to half its height, producing rounded end caps. For the same pill effect on your own element, use a sufficiently large length radius relative to its height. A fixed 200px radius may not fully round elements taller than 400px.
A slash separates horizontal radii from vertical radii: border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;. Both sides follow the same four-corner order. The first top-left value controls the horizontal part of that corner's ellipse; the first value after the slash controls its vertical part. Advanced mode exposes all eight percentages independently and always writes both groups explicitly.
Vary horizontal and vertical percentages to create asymmetric blobs and leaf-like shapes using ordinary CSS rounded corners. Organic Blob and Leaf Shape load editable advanced values and a square preview. This CSS Blob Generator produces a rounded rectangular boundary; it does not create arbitrary paths or a vector file. Switching between Basic and Advanced retains each mode's values so you can compare them without rebuilding the controls.
If adjacent corner radii would overlap, CSS applies a common scale factor so their sums fit the box's width and height. This can make a large entered pixel radius render smaller. The generator keeps your authored values in the declaration and leaves the fitting calculation to the browser. It does not adjust the preview with a separate shape approximation.
Preview square, rectangular and wide boxes, then test the declaration on the actual element at different screen sizes. Percentages scale with the element, while pixel values remain CSS lengths until the overlap rules reduce them. A shape that looks balanced as a square may look stretched in a banner. Preview proportions are separate controls and are not included in the copied border-radius declaration.
Paste the complete declaration inside a selector such as .card { ... }. Border radius alone does not set width, height or background color, and it does not automatically clip all child content. Add clipping separately when your layout requires it, considering focus outlines and shadows. Invalid inputs pause the preview and disable copying. Clipboard failures leave selectable CSS available for manual copying.
- Rounding individual card and dialog corners
- Styling an avatar as a circle with equal dimensions
- Creating rounded end caps for a wide button
- Exploring organic background shapes without an image asset
- Edit four basic corners or eight organic radii with live browser rendering.
- Mix px and % units in Basic mode without silently converting values.
- Keep values when switching modes or toggling linked corners.
- Apply eight working presets and copy validated CSS locally.
What is CSS border-radius?
It controls the rounded corners of an element's border box. You can set one value for all corners or separate values for each corner.
How do I round only one corner?
In Basic mode, unlink the corners, set the desired corner's radius and leave the other three at zero. The four values follow top-left, top-right, bottom-right, bottom-left order.
Can I set different radii for each corner?
Yes. Unlink the basic controls and edit each corner independently, including its px or % unit. Advanced mode offers separate horizontal and vertical percentage values for every corner.
How do I make a circle with CSS?
Apply border-radius: 50%; to an element with equal width and height. The Circle preset sets both the radius and square preview proportions. The copied declaration only sets border radius; size the element in your own stylesheet.
What is the difference between px and %?
px specifies a CSS length. Percentage radii depend on the box: horizontal radii use its width and vertical radii use its height. Percentage radii are not fixed pixel measurements.
How do I create a pill-shaped button?
Use a wide element and a length radius large enough to round its short ends. The Pill preset uses 200px on a wide preview. Test your button's actual height because a fixed radius may not make a very tall element into a pill.
What does the slash mean in border-radius?
Values before the slash are horizontal radii and values after it are vertical radii. Each group follows the same top-left, top-right, bottom-right, bottom-left order, allowing elliptical corners.
Can I create organic shapes using CSS?
Yes. Advanced organic mode provides eight percentage controls and editable Organic Blob and Leaf Shape presets. These shapes use CSS rounded corners rather than arbitrary SVG paths.
Is the generated CSS compatible with modern browsers?
Standard border-radius syntax, including percentages and the elliptical slash syntax, works in modern browsers. Test the resulting shape with the actual dimensions and layout in your target browsers.
Is the CSS Border Radius Generator free?
Yes. Both modes, all presets, live previews and CSS copying are free without signup.