Skip to content
OddsockLocal
Local
Top left (px)8
Top right (px)8
Bottom right (px)8
Bottom left (px)8
Top left (px)8
Top right (px)8
Bottom right (px)8
Bottom left (px)8
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Type a pixel radius for each corner, clockwise from the top left.
  2. Use 0 on any corner that should stay square.
  3. Copy the declaration onto an element that has a background or a border.
  4. If the corner looks like a semicircle, the radius is at least half the side. Lower it.

What is Border radius?

A card with the same radius on every corner is one number. A card that should feel slightly different on the bottom, or a tab that is round only on top, needs four. This page writes them in CSS order: top left, top right, bottom right, bottom left. The opening values are 8 pixels on every corner, and the declaration is border-radius: 8px 8px 8px 8px;

Read more

Pixels here are absolute. A 48px radius on a button that is only 32px tall becomes a pill, because the used radius is limited by the box. A 48px radius on a large card is a gentle corner. The blob page is the other border-radius tool: percentages on two axes, with a slash, for an organic shape. Do not use that shorthand when you wanted a 12px corner on a dialog.

The preview is the declaration. Your element still needs a background or a border or you will not see the curve.

Use cases

  • A dialog is rounded 12px on every corner so it matches the rest of the product.
  • A tab is rounded only on the top two corners, with the bottom two at 0.
  • A ticket stub uses a large radius on the left and a small one on the right.
  • A design token records the four numbers even when they match, so a later change is obvious.
  • Someone checks that CSS order is top-left, top-right, bottom-right, bottom-left, clockwise from the top left.

Even 8px corners

Top left 8, top right 8, bottom right 8, bottom left 8.

border-radius: 8px 8px 8px 8px;

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Top left, top right, bottom right, bottom left. Same as the CSS shorthand when you write all four.