DukoTools

CSS Border Radius Generator

New

Generate CSS border-radius with simple or elliptical per-corner control and shape presets.

Free Forever
No Signup Required
No Files Stored

Presets

border-radius: 8px;

Embed this tool

Add this tool to your website or blog with a single iframe snippet.

<iframe src="https://dukotools.com/tools/border-radius-generator?embed=1" width="100%" height="600" frameborder="0" allow="clipboard-write" loading="lazy" title="border-radius-generator tool"></iframe>

About CSS Border Radius Generator

CSS Border Radius Generator produces correct border-radius CSS for any shape from simple rounded corners to complex 8-value elliptical radii. Simple mode applies equal radius to all four corners with a single slider. Advanced mode gives independent sliders for each corner with a link-corners toggle. The elliptical radii toggle unlocks the second set of four values in border-radius β€” the X and Y radius per corner independently. This enables asymmetric shapes like teardrops, leaves, and organic forms. Shape presets cover: Square, Rounded, Pill, Circle, Squircle, Leaf, Teardrop, and Chat Bubble. The output shows the most compact valid CSS shorthand and the Tailwind equivalent class.

Key Features

  • Simple and Advanced Modes

    Single slider mode or independent per-corner sliders with link-corners toggle.

  • Elliptical Radii Mode

    Unlocks X and Y radius per corner for the full 8-value CSS shorthand.

  • Real-Time Preview

    Live rectangle preview showing the current border-radius applied instantly.

  • 8 Shape Presets

    Square, Rounded, Pill, Circle, Squircle, Leaf, Teardrop, and Chat Bubble presets.

  • Compact CSS Shorthand

    Generates the most compact valid shorthand using border-radius compression rules.

  • Tailwind Equivalent

    Shows Tailwind rounded-* class when applicable.

How to Use

  1. 1

    Choose Simple or Advanced mode

    Simple mode for equal corners, Advanced mode for per-corner control.

  2. 2

    Adjust sliders

    Drag the corner radius sliders and watch the preview shape update in real time.

  3. 3

    Enable Elliptical (optional)

    Toggle Elliptical Radii to get independent X and Y radius per corner for organic shapes.

  4. 4

    Or load a preset

    Click any shape preset thumbnail to load its configuration.

  5. 5

    Copy the CSS

    Copy the complete CSS rule or just the border-radius value.

Real-World Use Cases

Avatar Styling

A developer uses the circle preset to generate border-radius:50% for user avatar components.

Custom Component Design

A designer uses elliptical mode to create a leaf-shaped decorative element for a nature-themed landing page.

Card Component

A UI developer uses the Rounded preset and Advanced mode to apply larger top corners and smaller bottom corners for a stacked card design.

Frequently Asked Questions

Related Free Tools