Interfaces and CSSRuns in your browser

CSS border-radius Generator

Calculate a four-corner border-radius shorthand and quickly review the geometry for a panel, button, or card.

  • 4 corners
  • 0–240 px
  • Live preview
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input

Result

.rounded-panel {
  border-radius: 24px 24px 24px 24px;
}

Your data stays here

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Enter the radius for each corner in px.

  2. 2

    Review the shape in the preview block.

  3. 3

    Copy the generated CSS shorthand.

02

What the tool can do

  • Top-left, top-right, bottom-right, and bottom-left values.
  • Bounded numeric validation from 0 to 240 px.
  • Compact shorthand output in standard CSS order.
03

Common use cases

  • Choosing a radius token for cards and modals.
  • Testing an asymmetric shape for a UI component.
  • Getting shorthand quickly instead of writing four declarations.
04

How it works inside

Output order is top-left, top-right, bottom-right, bottom-left.

Values are limited to px to keep the generator simple and verifiable.

05

Questions and answers

Can I use percentages?

No. This version supports only px values for a stable preview and simple shorthand.

Why this order?

It is the standard CSS shorthand order: top-left, top-right, bottom-right, bottom-left.