Free CSS Border Radius Generator

Free border radius generator: set each corner or all at once, including elliptical radii for blob and egg shapes. Live preview with shorthand and longhand CSS.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Make Rounded Corners, Pills and Blob Shapes in CSS →

About the Border Radius Generator tool

Rounded corners soften a design and are one of the most used CSS properties, yet border-radius can do far more than a simple 8px curve. Each of the four corners can have its own radius, and each corner can even be elliptical, with a different horizontal and vertical radius. Combined, these let you create pills, leaves, speech bubbles, eggs and organic blob shapes with pure CSS. This border radius generator makes all of that visual.

Set each corner with its own slider, or link all four together to change them at once. Switch between pixels and percentages: pixels keep curves consistent across element sizes, while percentages scale with the element and make circles and blobs easy. Turn on the advanced elliptical mode to control horizontal and vertical radii separately and discover shapes that would be hard to type by hand.

The live preview lets you change the width, height and colour of the test shape, so you can see how a radius behaves on a wide button or a square avatar. The output gives you the shortest shorthand plus the longhand properties for each corner. All work happens in your browser.

How to use Border Radius Generator

  1. Choose px or % as the unit at the top of the controls.
  2. Drag the slider for Top left, Top right, Bottom right and Bottom left, or click “Link all corners” to adjust them together.
  3. Switch on “Advanced: elliptical corners” to set separate horizontal and vertical radii for each corner.
  4. Try presets like Pill, Leaf, Blob or Egg, and change the preview colour, width and height to test the shape.
  5. Click “Copy” under CSS code to copy the border-radius shorthand and longhand rules.

Features

Individual or linked corners

Edit one corner at a time or all four together with the link toggle.

Elliptical radii

Separate horizontal and vertical radii unlock blobs, eggs and leaf shapes.

Pixels or percent

Use fixed pixel curves or percentage radii that scale with the element.

Smart shorthand

Outputs the shortest valid border-radius value, with longhand properties for clarity.

Resizable preview

Test the radius on shapes of different widths, heights and colours.

When to use it

  • Make pill-shaped buttons and tags that stay perfectly round at any length.
  • Create a circular profile photo or avatar frame.
  • Design a chat bubble with one sharp corner pointing at the speaker.
  • Add organic blob shapes behind illustrations on a landing page.
  • Round only the top corners of a tab or a card header.
  • Soften the corners of image thumbnails in a gallery or product grid.

Frequently asked questions

What order are the four values in border-radius?

Top-left, top-right, bottom-right, bottom-left, going clockwise from the top-left corner. With two values, the first applies to top-left and bottom-right, the second to the other two.

What does the slash in border-radius mean?

Values before the slash are horizontal radii and values after it are vertical radii. For example 50% / 30% creates elliptical corners.

How do I make a perfect circle?

Give the element equal width and height and set border-radius: 50%. The Circle preset does this for you.

Why doesn’t a very large radius look bigger?

Browsers scale radii down when adjacent corners would overlap, so anything above half the element’s size has the same effect. That is why 999px gives a neat pill shape.

Does border-radius clip images and backgrounds?

It clips the element’s background and border. To clip child content such as an image, also add overflow: hidden to the element.

Can I animate border-radius?

Yes. border-radius can be transitioned or animated with keyframes, which is a popular way to make a blob shape gently morph. Keep the same number of values in each keyframe for smooth results.

Related tools