CSS Border Radius Generator
Link the four corners for one slider, or unlink them to set each corner. Turn on elliptical corners to set the horizontal and vertical radius separately. Presets for cards, pills, leaves and blobs are one click away.
CSS Border Radius Generator runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.
How to use it
- Choose a unit and corner values Choose px or %. With Link all four corners ticked, one slider sets every corner. Untick it to set each corner on its own, or tick Elliptical corners to set a horizontal and a vertical radius for each corner.
- Check the shape in the preview Change the width and height of the preview box to see the shape at other sizes. Use a preset, Card, Pill, Leaf or Blob, as a starting point. Radius values go up to 500 px or 100 %.
- Copy the border-radius line Press Copy to copy the border-radius declaration. Only that line is copied, so the preview box size and the preview background are not part of the code.
Questions
What does the slash in the output mean?
The values before the slash set the horizontal radius of each corner, and the values after it set the vertical radius. The slash is left out when the two sets are equal, and four values are shortened to one, two or three when corners repeat.
In what order are the corners written?
CSS reads the corners in the order top left, top right, bottom right, bottom left. The tool drops any value that repeats an earlier corner, so four equal corners become one value. For example, 10px 20px means top left 10, top right 20, and the other two corners repeat them.