How to Use the CSS Border Radius Generator: Steps and a Worked Example
Generate a CSS border-radius for all four corners. This guide shows what to enter, a worked example, and the limits to keep in mind. The CSS Border Radius Generator tool is free, needs no account and runs in your browser.
What you need
- Top-left (px), for example 12
- Top-right (px), for example 12
- Bottom-right (px), for example 12
- Bottom-left (px), for example 12
Step by step
- Open the CSS Border Radius Generator tool.
- Fill in Top-left (px).
- Fill in Top-right (px).
- Fill in Bottom-right (px).
- Fill in Bottom-left (px).
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- Top-left (px): 12
- Top-right (px): 12
- Bottom-right (px): 12
- Bottom-left (px): 12
the tool returns:
border-radius: 12px;
A second example
Changing Top-left (px) 12 to 24 gives:
border-radius: 24px 12px 12px 12px;
Comparing two runs like this is a quick way to see how much each input moves the result.
How it works
Enter a radius for each corner. When all four match, the shorthand single value is used.
Things to keep in mind
Check your inputs, units and any local rules before you rely on the result.
Related tools
If this is not quite what you need, try CSS Box Shadow Generator, CSS Color Extractor or CSS Flexbox Generator.