How to Use the CSS Border Radius Generator: Steps and a Worked Example

By 1 min read

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

  1. Open the CSS Border Radius Generator tool.
  2. Fill in Top-left (px).
  3. Fill in Top-right (px).
  4. Fill in Bottom-right (px).
  5. Fill in Bottom-left (px).
  6. 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.

If this is not quite what you need, try CSS Box Shadow Generator, CSS Color Extractor or CSS Flexbox Generator.

More from the blog