CSS Border Radius Generator

Build CSS corner-radius declarations with independently selected corner sizes.

Your workspace

Server processing

Review the example values, then run the tool.

This tool generates a CSS border-radius declaration by applying specific pixel values to each of the four corners of an element.

How to generate border-radius code

  1. Enter the desired pixel size for the Top left, Top right, Bottom right, and Bottom left corners.
  2. Submit the form to generate the corresponding CSS property string.
  3. Copy the resulting border-radius declaration for use in your stylesheet.

Understanding the output

The tool outputs a standard CSS border-radius property. The values are ordered clockwise starting from the top-left corner: top-left, top-right, bottom-right, and bottom-left. This shorthand syntax ensures your element corners render exactly as configured.

Handling large values

While the tool accepts values up to 1000 pixels, note that browser rendering of extremely large radii may be constrained by the actual dimensions of the target HTML element. Ensure your chosen pixel values align with the intended layout size.

Example output

Top left: 10, Top right: 20, Bottom right: 30, Bottom left: 40

border-radius: 10px 20px 30px 40px;

Frequently asked questions

Can I use units other than pixels?

This tool is specifically designed to output pixel-based values. For other units like percentages or ems, you would need to manually adjust the generated CSS.

Does this tool preview the shape?

No, this tool generates the CSS code string only. You can apply the generated code to your own elements to visualize the result in your browser.

Continue your workflow