What Is CSS Border Radius Generator?
A free online CSS border radius generator. Control each corner independently with sliders, toggle between px and % units, and preview the result live. Includes presets for circles, pills, cards, and rounded shapes.
The CSS border-radius property controls the roundness of element corners, and its versatility extends far beyond simple rounded rectangles. By adjusting each corner independently, you can create pills, circles, asymmetric shapes, and complex organic-looking forms — all with a single CSS property. CSS Border Radius Generator provides individual slider control for all four corners with a live preview that updates instantly.
Each corner — top-left, top-right, bottom-right, bottom-left — has its own slider, letting you create completely asymmetric shapes. The unit toggle between pixels (px) and percentage (%) changes the behavior significantly. Pixel values create fixed-radius corners that stay the same size regardless of the element dimensions. Percentage values tie the radius to the element size, which is how you create perfect circles (border-radius: 50% on a square).
Four presets cover the most common use cases. Circle creates border-radius: 50% for a perfect circle (or ellipse on non-square elements). Pill creates a shape with fully rounded ends (border-radius: 9999px), useful for button badges and tags. Card applies a subtle 8px rounding suitable for card components and containers. Rounded applies an 8px rounding on all corners, appropriate for buttons and form inputs.
The generated CSS code shows the shorthand syntax. If all four corners have the same value, it outputs a single value (e.g., border-radius: 8px). If corners differ, it outputs the four-value syntax in clockwise order (top-left, top-right, bottom-right, bottom-left). The code is copy-ready for your stylesheet.