CSS Border Radius Generator

Paste a border-radius value, tweak corners visually, and copy CSS or Tailwind. Elliptical slash syntax is available. Generated in your browser, never sent.

Loading…
CSS Border Radius Generator
Paste a CSS border-radius, tweak corners visually, and copy CSS, a custom property, or Tailwind. Elliptical slash syntax and a shareable URL, all local in your browser.

Developer notes

Output follows CSS shorthand collapse: 1–4 tokens per side, slash syntax only when any corner's horizontal radius differs from its vertical radius. Tailwind export maps a uniform px radius to the default v4 scale (2–32px, plus none/full) within ±1px; otherwise it emits rounded-[…] with underscores for spaces. Pill presets use 9999px (rounded-full), not 50%. 50% is a circle only on a square preview. Preview width/height are UI state encoded in the shareable URL; they are not exposed options and do not change the exported radius string when the unit is px.

Options

  • Link corners — When on, editing one corner updates all four, the usual card/button workflow. Turn off for independent top-left, top-right, bottom-right, and bottom-left radii.
  • Unit — Suffix applied to every corner and to the exported string. Use px for absolute values or % for values relative to the element's dimensions. Circle presets use %, card and pill presets use px.
  • Elliptical — With the option off, each corner gets one radius (up to 4 values). With it on, each corner gets a horizontal and a vertical radius, and the output uses 8-value slash syntax when any pair differs.
  • Export format — Sets the clipboard content: a CSS border-radius declaration, a --radius custom property, the nearest Tailwind rounded-* class, or a Bootstrap 5 rounded-* utility. Tailwind falls back to rounded-[…] and Bootstrap to an inline style.

Related CSS tools

Hub: Color & CSS Tools. Convert colors with Color Converter, build tint/shade scales with Color Shades & Tints Generator, or shrink and format stylesheets with Minify CSS and Beautify CSS.

CSS Border Radius Generator FAQ

Local editor for rounded corners

Can I paste an existing border-radius from DevTools?

Yes. Paste 1–4 lengths, optional 8-value slash syntax, or a full border-radius: …; declaration. Invalid input shows an error and keeps the last valid preview.

What does elliptical mode do?

It adds a horizontal and a vertical radius per corner. When any pair differs, the CSS output uses slash syntax (a b c d / e f g h).

How does Tailwind export choose a class?

A uniform pixel radius within ±1px of the default Tailwind v4 scale becomes rounded-none, rounded-xs … rounded-4xl, or rounded-full. Anything else, including %, slash syntax, and mixed corners, becomes rounded-[…].

Is my CSS uploaded anywhere?

No. Parsing and assembly run entirely in your browser. FastMinify never sends the pasted value to a server.

Check WCAG contrast, convert CSS colors and units, and generate shades, border-radius and box-shadow code in your browser.