What Is a Border Radius Generator?
The CSS border-radius property rounds the corners of any element. While simple rounded corners are easy to write by hand, complex organic shapes with asymmetric elliptical corners require 8 separate values — that's where this tool becomes essential. Drag the corner handles to create any shape from simple rounded rectangles to organic blobs.
Understanding the Syntax
A single value like border-radius: 12px rounds all four corners equally. Four values set each corner individually: top-left, top-right, bottom-right, bottom-left. The advanced slash syntax (border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%) creates elliptical corners where horizontal and vertical radii differ — enabling truly organic shapes.
How to Use This Border Radius Lab
- Set each corner independently — Adjust the border-radius for top-left, top-right, bottom-right, and bottom-left corners individually.
- Try the 8-value syntax — Toggle advanced mode to control horizontal and vertical radii separately using the
border-radius: TL TR BR BL / TL TR BR BLsyntax. - Use presets — Start from common shapes — pill, circle, leaf, blob — and customize from there.
- Preview on different elements — See your border-radius applied to buttons, cards, images, and avatars.
- Copy the CSS — Click Copy for the complete border-radius declaration.
Tips and Best Practices
- → Use 50% for perfect circles. Setting
border-radius: 50%on a square element creates a perfect circle. On a rectangle, it creates an ellipse. - → Use large fixed values for pill shapes. A border-radius of 9999px (or a very large value) on a rectangular element creates the pill/capsule shape common in tags and buttons.
- → The 8-value syntax creates organic shapes. Using different horizontal and vertical radii per corner creates leaf shapes, blob-like forms, and other organic CSS shapes without SVG.
- → Be consistent across your design. Pick 2–3 border-radius values for your design system (e.g., 4px for inputs, 8px for cards, 9999px for pills) and use them consistently.
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools