CSS Tools
CSS Border Radius Generator
CSS Border Radius Generator is part of Toolspire and is ready as soon as this page loads. The order is top-left, top-right, bottom-right, bottom-left. Eight on every corner becomes a single 8px. Mixed corners stay as four lengths.
On this page
What you can do here
Shorthand only when it is true
Equal corners use one length. Unequal corners never pretend to be a circle.
The clockwise order
The detail names the order so a 0 on the last box is the bottom-left, not the top-left.
A declaration you can paste
The headline includes the property name and the semicolon.
The sequence
How to use the CSS Border Radius Generator
- 1
Set the corner you want square to 0
A zero is valid. It is not the same as leaving a corner off the shorthand.
- 2
Match all four if you want one number
The moment one corner differs, the declaration expands to four lengths.
- 3
Paste into a rule, not into a HTML attribute by accident
The output is a CSS declaration. It is not a Tailwind class.
Worth knowing
- CSS Border Radius Generator on Toolspire: four equal corners collapse to border-radius: 8px; rather than repeating the value.
- Mixed corners stay in CSS order: top-left, top-right, bottom-right, bottom-left.
- 8, 16, 8, 0 becomes
border-radius: 8px 16px 8px 0px;. - Each corner must be 0–999. Negatives are rejected. The unit on the declaration is px.
Why equal corners collapse
CSS allows one, two or four lengths. One length is the honest form when every corner is the same, and it is what most stylesheets should keep. Four lengths are required as soon as the corners disagree, and the order is fixed by the specification: top-left, top-right, bottom-right, bottom-left. This generator does not emit elliptical radii (a slash and a second set) and it does not convert px to rem.
FAQ
Questions about CSS Border Radius Generator
Where does CSS Border Radius Generator run?
What is the order of the four values?
Why did my 8px become a single value?
Can a corner be zero?
Does this make a pill or a circle?
Keep going
Related tools
Last updated Report a problem or suggest a feature