CSS Generators

Border Radius

All tools

Shape each corner independently and get the border-radius shorthand in the right order.

How it works

Four simple steps

1

Start with the sample box

The preview opens with one corner rounded more than the rest.

2

Drag each corner

Adjust top-left, top-right, bottom-right and bottom-left from 0 to 80 px.

3

Check the shape

The block redraws on every change so you can judge the curve.

4

Copy the shorthand

Copy the clockwise four-value rule or download radius.css.

Border Radius

About Border Radius

A chat bubble needs three rounded corners and one tight corner pointing at the avatar. Writing border-radius: 16px 16px 4px 16px from memory means guessing which value maps to which corner. Here you drag the corner you mean and read the result.

Four sliders control top-left, top-right, bottom-right and bottom-left, each from 0 to 80 px. A sample block updates as you drag, and the output is a .card rule with the four-value shorthand in clockwise order starting at the top left. That order is the part most people mix up, so it helps to see it written out for the shape you just built.

Values are in pixels, which makes radii consistent across components of different sizes. If you want a pill shape, set every corner to at least half the element height (80 px covers buttons and tags up to 160 px tall). For a perfect circle on a square element, swap the copied value for 50% by hand. When the rounded box also needs depth, pair it with the box shadow builder, or check the softer look made by the neumorphism CSS generator.

Nothing is uploaded; the rule is built in the page and can be saved as radius.css.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Clockwise from the top left: top-left, top-right, bottom-right, bottom-left. The generator always outputs all four, even when they match.

No. Each slider sets a single circular radius. For elliptical corners, edit the copied value into the form 40px / 20px.

When adjacent radii add up to more than the element side, the browser scales all of them down proportionally. On small elements, big values hit that limit quickly.

View more FAQs

Related tools

View all

Tailwind Class Sorter

Sort Tailwind classes and detect conflicting utilities with a winner explanation.

Open

Design System Diff Lab

Diff design tokens and inspect CSS @layer order and selector specificity locally.

Open

SVG Path Inspector

Parse SVG path commands, preview on canvas, round and minify coordinates.

Open

Flexbox Generator

Build flex layouts visually.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools