CSS Border Radius Generator — Create Rounded Corners Online

Create CSS border radius values visually — circles, pills, and custom per-corner rounded corners with live preview.

Also add depth with our Box Shadow Generator or convert colors with the Color Converter.

🔒 All generation runs locally in your browser — nothing is stored or uploaded.

8px 8px 8px 8px
CSS Code
How to Use

How to Use the Border Radius Generator

1
Choose a preset — click Square, Rounded, Circle, or Pill for common shapes, or adjust the sliders manually.
2
Adjust per-corner sliders — drag Top Left, Top Right, Bottom Right, and Bottom Left sliders independently for custom shapes.
3
Check the live preview — the shape updates instantly as you move each slider so you can see the result before copying.
4
Copy the CSS — click Copy CSS to grab the border-radius value ready to paste into your stylesheet.
About

CSS Border Radius Syntax Explained

The CSS border-radius property controls the rounding of an element's corners. It accepts 1 to 4 values — one applies to all corners, two values set top-left/bottom-right and top-right/bottom-left pairs, and four values set each corner individually in the order top-left, top-right, bottom-right, bottom-left. This CSS border radius generator works as a rounded corner tool, CSS circle generator, and CSS pill shape tool for front-end developers and UI designers who need precise rounding values without guessing.

Front-end developers use border radius on almost every UI component — cards, buttons, badges, avatars, modals, input fields, and image thumbnails. The challenge is finding the right value for each context. A card might use 12px, while a pill button might use 999px, and an avatar needs 50% to become a circle. Switching between these and previewing the result in a live generator is much faster than editing CSS, saving the file, and refreshing the browser repeatedly.

UI designers transitioning from design tools to code often encounter a mismatch between the corner radius values in Figma or Sketch and what CSS produces. Design tools apply border radius symmetrically from the slider — the same as the sliders in this tool — making it straightforward to read a Figma component's corner radius and enter the same value here to generate the exact CSS needed. The four-corner independence option also handles asymmetric shapes like speech bubbles, folded paper effects, and custom icons that need different rounding on each corner.

The circle preset (border-radius: 50%) and pill preset (border-radius: 999px) are two of the most commonly searched CSS snippets — both are available as one-click options in this generator. All values generate instantly in the browser with no data sent to any server.

FAQ

Frequently Asked Questions

Yes, completely free with no account or signup required. Open the page and start generating border radius values immediately.
The border-radius property accepts 1 to 4 values. One value applies to all corners. Two values set top-left/bottom-right and top-right/bottom-left. Four values set each corner individually: top-left, top-right, bottom-right, bottom-left.
Set border-radius: 50% on an element that has equal width and height. This creates a perfect circle from any square element.
A pill shape is created with border-radius: 999px (or any very large value). This fully rounds both ends of a rectangular element, creating an oval or capsule shape.
Related tools

Related Free Tools