CSS Border Radius Generator

Set all four corner radii with sliders, preview live and copy CSS with automatic shorthand — px, % or rem units.

Developer Tools Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Drag each corner's slider.
  2. Pick the unit (px, %, rem).
  3. Copy the generated CSS — shorthand is automatic.

Example

Input: 16px on all corners

Output: border-radius: 16px; (collapsed from four values)

How it works

Each corner radius is applied to the preview box and written as a CSS border-radius declaration. Values can be set per corner or for all corners at once.

Each corner radius is rounded to an integer and written with CSS shorthand collapsing: four equal corners become one value, diagonally equal corners two values, and three values only when bottom-left equals top-right.

Worked example

16 px on all four corners gives border-radius: 16px; — collapsed from four identical values.

Edge cases to know

  • Units are px, % or rem; in percent mode the sliders cap at 50% — CSS clamps beyond that anyway, and 50% makes a pill or circle.
  • Elliptical (x / y) radii are not supported.
  • px and rem sliders run from 0 to 120.

Limits & compatibility

  • Elliptical (x/y) radii are not supported.
  • Percent mode caps sliders at 50% (CSS clamps beyond that anyway).
  • Values are rounded to integers.

Privacy

All processing runs locally in your browser. Nothing is transmitted, logged or stored.

Related tools

FAQ

Questions about CSS Border Radius Generator

How does the shorthand collapsing work?

The four corner values are collapsed the way CSS itself does: all four equal become one value, diagonal pairs equal become two, and three-value or four-value forms appear only when needed. So setting 16 px on every corner copies as border-radius: 16px rather than four repeated numbers.

Can I make elliptical corners?

No — elliptical (x/y) radii are not supported; every corner is a single circular radius. Percent mode caps the sliders at 50%, which is no real loss because CSS clamps values beyond that anyway — 50% is what turns a rectangle into a pill or a circle. Pixel and rem units are also available.

Which units can I use?

Pixels, percentages and rem, selected before copying — the chosen unit applies to every corner, and values are rounded to integers. The preview updates live as each slider moves, and the whole thing runs locally in the browser, so there is nothing to sign into and nothing leaves the page.