HomeToolsBorder Radius

CSS WORKSPACE

Border Radius

Make a change, inspect the result, and take the output into your project.

How to use this tool ↓

Border Radius Generator

Horizontal Axis (%)
25
25
25
25
Vertical Axis (%)
25
25
25
25
Styling
4px
css
border-radius: 25% 25% 25% 25% / 25% 25% 25% 25%;
border: 4px solid #3b82f6;
A PRACTICAL GUIDE

Create corners that match the component

Border radius rounds an element’s border box and can use separate horizontal and vertical values. A modest radius suits a panel; a larger radius can make a pill or organic shape. The visible result depends on both the radius and the element’s width and height.

How to use this tool

  1. Link the corners for a consistent starting point, or adjust them individually when the shape needs asymmetry.
  2. Try pixel values for predictable component corners and percentages for shapes that change with element dimensions.
  3. Copy the border-radius declaration. Check nested surfaces and images so that their corners follow the same visual logic.

The image has a smaller radius to sit comfortably inside the panel’s padding. Border radius does not automatically clip every descendant. If an image extends outside the rounded edge, inspect its own radius or the container’s overflow.

Read the reference documentation ↗
Example to try in your project
.panel { border-radius: 16px; padding: 8px; }
.panel img { border-radius: 8px; width: 100%; display: block; }

Before you ship

Adding overflow: hidden to clip content can also cut off focus outlines, menus, and shadows. Keep interactive content visible and do not choose a large radius that collides with nearby text.

Explore a related tool