⬜

CSS Border-Radius Generator

Software · Free

⬜

CSS Border-Radius Generator

What is this tool?

Round each of the four corners on its own, with separate horizontal and vertical radii (elliptical corners) if you like, in px or per cent; the border-radius code comes in its shortest valid form, using the eight-value slash syntax when needed.

📘 Common mistakes · Worked example

Round each of the four corners on its own, with separate horizontal and vertical radii (elliptical corners) if you like, in px or per cent; the border-radius code comes in its shortest valid form, using the eight-value slash syntax when needed.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Last reviewed: · Methodology and sources

How is it calculated?

Round each of the four corners on its own, with separate horizontal and vertical radii (elliptical corners) if you like, in px or per cent; the border-radius code comes in its shortest valid form, using the eight-value slash syntax when needed.

What is this tool?

Round each of the four corners on its own, with separate horizontal and vertical radii (elliptical corners) if you like, in px or per cent; the border-radius code comes in its shortest valid form, using the eight-value slash syntax when needed.

Common mistakes

  • Assuming 50% always gives a circle. Percentages are resolved against the width horizontally and the height vertically, so on a rectangle the result is an ellipse.
  • Using a percentage for a pill shape. 50% turns the ends into ellipses; a large pixel value such as 200px gives semicircular ends.
  • Reading the values as top, right, bottom, left. margin and padding count sides; border-radius counts corners and starts at the top left.
  • Treating the slash as a separator between pairs of corners. Everything before “/” is the horizontal radius of the four corners and everything after it the vertical radius; the shorthand rules apply to each side of the slash separately.
  • Enlarging one corner a lot and wondering why the others shrink. When radii overlap, the browser scales all of them by the same factor, not only the corner that overflows.
  • Raising the radius because an image pokes out of a rounded box. The fix is overflow: hidden on the container, or a radius on the image itself.

📘 CSS border-radius Explained: 8-Value Syntax and Percentages →

Sources

Frequently Asked Questions

+CSS Border-Radius Generator — how is it calculated?

Round each of the four corners on its own, with separate horizontal and vertical radii (elliptical corners) if you like, in px or per cent; the border-radius code comes in its shortest valid form, using the eight-value slash syntax when needed.

+Is my data stored?

No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.

+Is it free?

Yes, all tools are free and require no sign-up.

Similar tools

Popular Tools

🧮

Free Calculators in One Place

Tax, finance, health, math and more — 500+ tools, all in one place.

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice