Miscellaneous Tools

CSS Border Radius Generator

Generate custom CSS border-radius code visually. Configure uniform corners, independent four-corner radii, or advanced 8-value organic blob shapes with real-time preview, copy, and download.

Radius Unit:
0px to 200px
px

Individual Corner Values:

16px
px
16px
px
16px
px
16px
px

Live Shape Preview

Preview Appearance Controls
#
#
CSS Output Code
/* Calculating CSS... */
Standard W3C CSS3 Syntax

Curated Shape Presets

16 Styles

Click any preset to instantly apply its corner curvature settings:

CSS Border Radius Syntax & Shorthand Guide

CSS3 Specification

The CSS border-radius property rounds the corners of an element's outer border edge. CSS supports both simple 1-to-4 value circular corner radii and advanced 8-value elliptical radii with slash notation.

Standard Shorthand Clockwise Rule: border-radius: <top-left> <top-right> <bottom-right> <bottom-left> [ / <horizontal> / <vertical> ];

1-to-4 Value Shorthand

• 1 value: All 4 corners identical (16px).
• 2 values: Top-Left & Bottom-Right, Top-Right & Bottom-Left (12px 24px).
• 3 values: Top-Left, Top-Right & Bottom-Left, Bottom-Right (10px 20px 30px).
• 4 values: Clockwise from Top-Left (10px 20px 30px 40px).

8-Value Elliptical Syntax

When a slash (/) is included, values before the slash dictate the horizontal radii, and values after dictate the vertical radii. This enables dynamic fluid organic blobs and asymmetric pill contours.

Pill vs Circle Rules

• A Circle requires 50% on an element with an exact 1:1 aspect ratio (equal width & height).
• A Pill Button uses 9999px, capping curvature at half of the shorter dimension automatically.

CSS Sub-Property Target Corner Supported Units Usage Example
border-top-left-radius Top Left Corner px, %, em, rem border-top-left-radius: 16px;
border-top-right-radius Top Right Corner px, %, em, rem border-top-right-radius: 16px;
border-bottom-right-radius Bottom Right Corner px, %, em, rem border-bottom-right-radius: 16px;
border-bottom-left-radius Bottom Left Corner px, %, em, rem border-bottom-left-radius: 16px;
border-radius (Shorthand) All 4 Corners Combined px, %, em, rem border-radius: 12px 24px 36px 48px;

Frequently Asked Questions

FAQ & Troubleshooting

The CSS border-radius property rounds the corners of an element. It can accept between one and four values to customize individual corners, or eight values separated by a slash (/) to create elliptical and organic blob shapes. It clips borders, background colors, and child content (when overflow: hidden is set).

When specifying four distinct corner values (e.g., border-radius: 10px 20px 30px 40px;), CSS applies them clockwise starting from the top-left corner: Top-Left (10px), Top-Right (20px), Bottom-Right (30px), and Bottom-Left (40px).

Pixels (px) establish an absolute radius independent of the element dimensions. A 16px radius remains constant whether the box is 50px or 500px wide. Percentages (%) calculate the radius relative to the element width and height. For example, 50% on a square yields a circle, whereas on a rectangle it creates an ellipse.

To render a circle, the element must have equal width and height (a 1:1 aspect ratio, e.g., width: 100px; height: 100px;) and a border radius of 50% (border-radius: 50%;). If the width and height are unequal, 50% will produce an ellipse.

Set border-radius: 9999px; or border-radius: 999px;. Because CSS caps the corner radius at 50% of the element’s shorter dimension (the button height), the left and right ends will always form smooth semicircles regardless of button length.

By default, corners are rounded using circular arcs (equal horizontal and vertical radii). With the slash syntax (e.g., border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;), values before the slash define the horizontal radii and values after define the vertical radii. This technique is used to create modern organic blobs and morphing fluid shapes.

No. All major browsers (Chrome, Edge, Firefox, Safari, and mobile engines) have fully supported unprefixed standard border-radius since CSS3 was standardized. Our generator includes a convenient prefix toggle for developers supporting legacy embedded WebViews or older iOS releases.

Yes. PaceTools CSS Border Radius Generator is 100% free and client-side. You can preview corner geometry in real time, copy clean CSS rules, or download a .css file directly to your project without creating an account.
Copied CSS to clipboard!