Border Radius Generator
Design rounded corners in pixels or percentages. Try eight shape presets, edit horizontal and vertical radii independently, and export the CSS rule.
Compare Rounded Corners at Two Box Sizes
Live preview
Export
Border Radius Generator: how to use it
- Choose Circle, then change the preview width from 144 to 240 pixels to see the 50% radius form a wider ellipse.
- Pick a unit and edit all corners, each corner or separate horizontal and vertical axes.
- Copy the border-radius rule or download the stylesheet. Use the preview dimensions again when checking the exported shape.
Limits and notes
Uses a box from 32 to 800 pixels wide and 32 to 600 pixels high. Enter radii from 0 to 400 px or 0% to 100%. The preview and export use the browser on your device.
How your privacy works →Border Radius Generator: common questions
Why is a 50% radius oval on a rectangle?
The horizontal radius is relative to the box width and the vertical radius to its height. Use an equal width and height for a circle.
Which corner comes first in CSS shorthand?
With four values, the order is top left, top right, bottom right and bottom left. The tool shortens repeating values when they describe the same four corners.
Why is a very large pixel radius smaller in the preview?
The browser scales the corner radii together when their sums exceed a box edge. Resize the target box to see how the same CSS behaves.