Skip to content

CSS border-radius generator

Control the four corners of a box and see the result in real time. You can link them for uniform rounding or combine them to create asymmetrical shapes.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · Border-radius generator

Runs in your browser · 100% local
CSS generado

border-radius: 24% 24% 24% 24%;

En porcentaje, 50 % dibuja un círculo o una elipse según las dimensiones del elemento. El valor 0 elimina el redondeo.

Vista previa
border-radius
border-radius: 24% 24% 24% 24%;
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Enter the radius for each corner or enable the link to move them all at once.

02

Choose pixels for a fixed radius or a percentage for shapes relative to the element’s size.

03

Copy the `border-radius` rule and paste it into your stylesheet.

Examples

Examples

Soft card

24 px at all four corners is a common rounding for cards and panels.

Leaf shape

0 48px 0 48px creates a rounded top-right and bottom-left corner, with the other corners remaining straight.

Reference guide

What you need to know

The `border-radius` property accepts between one and four values. When four values are specified, the order is top-left, top-right, bottom-right and bottom-left. When expressed as a percentage, the value is calculated relative to the width and height, so 50 per cent produces a circle or an ellipse.

Rounding trims the background and the border of the element, but not any content that overflows unless `overflow: hidden` is specified. Bear this in mind when placing images or positioned elements in the corners.

Frequently asked questions

Frequently Asked Questions

In a square, both produce a circle. In a rectangle, the percentage generates an ellipse and the large value produces rounded, pill-shaped corners.

Related tools

Other tools that can help with similar tasks.

More at Web development→
CSS border-radius generator with preview · ByTooly