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 100% in your browser

Output uses CSS shorthand — identical corners collapse automatically. Percent radii scale with the element size, so 50% makes a pill/circle.

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.

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

Is my input private?

Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.

How accurate is the result, and what are the limits?

The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.

What happens to files I open with this tool?

Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.