CSS Border Radius Generator

Free CSS Shape Tool

CSS Border Radius Generator

Create rounded corners and custom CSS shapes visually. Drag the handles, adjust each corner radius and copy clean CSS border-radius code for your project.

1

2

3

4

5

6

7

8

Drag the handles to adjust corner radius values and generate CSS code.

Generated CSS Code

How to Use the CSS Border Radius Generator

  1. Drag the corner handles on the canvas to change the shape.
  2. Adjust individual corner values to create rounded or asymmetric corners.
  3. Use percentage values to create circles, ovals or organic blob shapes.
  4. Preview the generated shape in real time.
  5. Copy the generated CSS code and paste it into your stylesheet.

What Is This CSS Border Radius Generator?

This CSS Border Radius Generator is a free visual tool that helps you create rounded corners and custom shapes using the border-radius property. You can use it for buttons, cards, images, profile avatars, containers, decorative shapes and organic blob-style UI elements.

The tool lets you control each corner visually and generates the CSS automatically. This is useful when you want more than a simple uniform radius and need custom, asymmetric or elliptical corner values.

CSS Border Radius Examples

Rounded Card

Use a moderate border radius to soften cards, panels and content containers without making the design feel too playful.

Pill Button

Use a large border radius such as 999px to create pill-shaped buttons, tags, badges and call-to-action elements.

Circular Avatar

Use border-radius: 50% on a square image to create a circular profile photo or icon frame.

Organic Blob Shape

Use asymmetric and percentage-based radius values to create fluid blob shapes for hero sections, backgrounds and decorative UI elements.

Image Mask

Combine border-radius with overflow: hidden to crop images into rounded rectangles, circles or custom shapes.

CSS Border Radius Guide

What Is border-radius?

The border-radius property controls how rounded the corners of an HTML element are. It can be applied to boxes, buttons, cards, images, inputs and many other UI elements.

Basic Syntax

A single value applies the same radius to all four corners.

.box {
  border-radius: 20px;
}

Individual Corner Radius

You can control each corner separately using individual border radius properties.

.box {
  border-top-left-radius: 10px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 50px;
  border-bottom-left-radius: 5px;
}

Border Radius Shorthand

The border-radius shorthand can accept one, two, three or four values.

.box {
  border-radius: 10px 30px 50px 5px;
}

How Shorthand Values Work

  • One value applies to all four corners.
  • Two values apply to opposite corner pairs.
  • Three values apply to top-left, top-right/bottom-left and bottom-right.
  • Four values apply to top-left, top-right, bottom-right and bottom-left.

Elliptical Border Radius

You can use the slash syntax to create elliptical corners with different horizontal and vertical radius values.

.box {
  border-radius: 50% / 20%;
}

Creating a Circle

To create a perfect circle, use border-radius: 50% on an element with equal width and height.

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

Creating a Pill Shape

For buttons, badges and tags, a very large value such as 999px creates a pill-shaped element.

.button {
  border-radius: 999px;
}

Border Radius and Overflow

When rounding images or containers with child content, use overflow: hidden if you want the inner content to follow the rounded shape.

.image-frame {
  border-radius: 1rem;
  overflow: hidden;
}

Best Practices

  • Use small radius values for subtle professional UI design.
  • Use large radius values for pills, badges and soft modern buttons.
  • Use 50% for circular avatars and icons.
  • Use asymmetric values for organic shapes and decorative elements.
  • Keep radius values consistent across your design system.
  • Use overflow: hidden when cropping images into rounded shapes.

CSS Border Radius Generator FAQ

What is border-radius in CSS?

The border-radius property rounds the corners of an HTML element. It can be used on cards, buttons, images, inputs and containers.

How do I make a circle with border-radius?

Use border-radius: 50% on an element with equal width and height.

How do I make a pill-shaped button?

Use a large value such as border-radius: 999px. This creates fully rounded ends on buttons, tags and badges.

Can each corner have a different radius?

Yes. You can use individual properties such as border-top-left-radius, border-top-right-radius, border-bottom-right-radius and border-bottom-left-radius.

What does border-radius: 50% do?

On a square element, border-radius: 50% creates a circle. On a rectangular element, it creates an oval shape.

What is elliptical border radius?

Elliptical border radius uses slash syntax, such as border-radius: 50% / 20%, to define different horizontal and vertical radius values.

Can border-radius crop images?

Yes. Apply border-radius to the image or its wrapper. Use overflow: hidden on the wrapper when needed.

Last update: 03. 07. 2026.