Mode
Unit:
All Corners 12px
Presets
Shape Color
Background fill of the preview shape
border-radius: 12px;

How to Use the Border Radius Generator

Use Simple mode to quickly round all four corners at once, or switch to Advanced mode to control each corner's horizontal and vertical radius independently for organic, elliptical shapes. Select a unit (px, %, rem) and pick a shape preset to get started instantly.

Use % for Responsive Shapes

Percentage-based border-radius scales with the element size, so a 50% radius always produces a perfect circle or ellipse regardless of dimensions.

50% Makes a Circle

Apply border-radius: 50% to a square element to get a perfect circle. Works great for avatars and icon containers.

Elliptical Radii

The slash syntax (border-radius: Xh Xh / Xv Xv) defines different horizontal and vertical radii per corner, enabling organic blob shapes.

9999px = Pill

A large px value like 9999px guarantees fully rounded ends on any element width, creating the classic pill/capsule button shape.

Frequently Asked Questions

The CSS border-radius property rounds the corners of an element's outer border edge. You can specify one to four values for each corner, and optionally a second set of values after a slash for elliptical radii.
Set equal width and height on an element, then apply border-radius: 50%. The 50% value rounds each corner enough to turn a square into a perfect circle.
The shorthand follows the pattern: border-radius: top-left top-right bottom-right bottom-left. With the slash syntax for elliptical corners it becomes: border-radius: tl tr br bl / tl-v tr-v br-v bl-v.
Apply border-radius: 9999px (or any very large value) to a button. The browser clamps it to half the element's height, producing fully rounded ends regardless of the button's width.
Design Pro Tips

5 Things Experts Know

01
Use 60-30-10 Rule

Structure your palette: 60% dominant background, 30% secondary color, 10% accent. This ratio keeps designs balanced and hierarchy clear.

02
Layer Shadows, Not Just One

Real depth comes from 2–3 stacked box-shadows: a large soft outer glow + a tighter crisp inner shadow. Single flat shadows look artificial.

03
Never Use Pure Black (#000)

Instead of #000, use dark-saturated hues like #1a1a2e or #0d1117. Pure black creates harsh contrast that feels digital, not designed.

04
Consistent Spacing Tokens

Define a spacing scale (4px, 8px, 16px, 24px, 40px, 64px) and stick to it. Random spacing steps are the #1 reason designs feel "off" to designers.

05
Gradient Angle Trick

Gradients at 120–145° read as more natural than 90° or 180°. That slight diagonal mirrors how natural light falls on surfaces.