Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Web Tools
  3. CSS Border Radius Generator
Add to favorites

CSS Border Radius Generator

Round each corner in px or percent, make elliptical blob shapes, and see the radius the browser really draws before copying the CSS.

Runs locally in your browserMore web toolsJump to full guide

Initializing in your browser…

You might also like

Mock Data Generator

Generate realistic test data as JSON, CSV or SQL: valid card numbers and IBANs, safe example e-mails, and a seed that brings the same rows back.

CSS Clip Path Generator

Cut elements into shapes with CSS clip-path: 16 presets, draggable points, circles and rounded insets, with CSS checked before you copy it.

CSS Box Shadow Generator

Design layered CSS box shadows with live preview on light or dark, twelve presets, inset shadows, and a box-shadow line to copy.

CSS Border Radius Generator: a worked example

You use the Pill preset for a button and want to know what corner the browser actually draws on a 200 by 100 pixel button.

Settings

Pill preset: border-radius: 9999px
Preview box: 200 x 100
What CSS Border Radius Generator produces

What the panel under the preview shows

These radii overlap on a 200 by 100 box, so the browser shrinks every one of them by the same factor, 0.00500.

Top Left      50.0 x 50.0 px
Top Right     50.0 x 50.0 px
Bottom Right  50.0 x 50.0 px
Bottom Left   50.0 x 50.0 px

border-radius: 9999px;

Along the 100 pixel sides, the two corners ask for 9999 + 9999 = 19998 pixels, so the browser scales every radius by 100 / 19998 = 0.005. Each corner becomes 9999 x 0.005 = 50 pixels, exactly half the height, which turns the short ends into semicircles. The same CSS on a 300 by 60 button would give 30 pixel corners, still a perfect pill, which is why the oversized value is the standard trick. The scaling is applied to all four corners together, so a single oversized corner would shrink the others too, and the panel shows that as well.

About the Border Radius Generator

Round the corners of any element and copy the border-radius line. Set all four corners at once or each one separately, in pixels or percent, add elliptical corners for organic blob shapes, and see the radius the browser will really draw on a box of your size.

Key features

  • All corners at once or each corner separately
  • Pixel and percent units, with percent capped at 100
  • Elliptical corners with separate horizontal and vertical radii
  • The shortest correct shorthand, including the slash form
  • The radius each corner is really drawn with, including overlap scaling
  • Thirteen presets, from Subtle and Pill to Blob and Squircle
  • Adjustable preview size and colour, and shareable links

How to use

  1. 1Drag the All corners slider, or press Each corner to set them one by one.
  2. 2Choose px or %, and turn on Elliptical for different horizontal and vertical radii.
  3. 3Open Preview box size and colour to match your element.
  4. 4Check the panel under the preview to see the radii the browser will really draw.
  5. 5Press Copy CSS and paste the border-radius line into your stylesheet.

How border-radius works

The shorthand. border-radius takes one to four values. One value rounds every corner the same; two values set opposite pairs (top-left with bottom-right, then top-right with bottom-left); four go clockwise from the top left. The generator always writes the shortest form that means exactly the corners you set, so a design with two rounded diagonal corners comes out as 40px 0px rather than four numbers.

Elliptical corners. A corner does not have to be a quarter circle. Turn on Elliptical and each corner gets a horizontal and a vertical radius, written with a slash: 60% 40% 30% 70% / 30% 70% 70% 30% is the Blob preset. Unequal radii make a corner curve away faster in one direction than the other, which is how organic, hand-drawn looking shapes and squircle-like cards are made in pure CSS.

Pixels or percent. Pixel radii stay the same size whatever the element. Percent radii scale with it, and they are measured against the width horizontally and the height vertically, so 50% on every corner gives a circle only when the box is square, and an ellipse otherwise. Switching to percent caps any corner above 100.

What the browser actually draws. If the two radii along one side add up to more than that side is long, CSS shrinks every radius on the element by the same factor until they fit. That is why border-radius: 9999px makes a perfect pill: on a 200 by 100 box each corner is scaled down to 50 pixels, half the shorter side. It is also why one oversized corner can quietly shrink the other three. The panel under the preview works this out for the box size you set and lists the radius each corner will really be drawn with, with a warning when scaling happens.

Working with it. Use Same for all corners for a quick result, or Each corner for full control. Change the preview box size and colour to match your element, start from one of thirteen presets (including Pill, Circle, Leaf, Blob and Squircle), and copy the CSS. The page address keeps your settings, so you can bookmark or share a design. Everything runs in your browser.

Examples

  • A pill button

    The Pill preset writes border-radius: 9999px. On a 200 by 100 box the browser scales each corner to 50px, half the height, so the ends are perfect semicircles at any width.

  • A tab that sits on a panel

    Top Only rounds the two upper corners and keeps the bottom square: border-radius: 20px 20px 0px 0px.

  • An organic blob

    Blob uses elliptical percentages, 60% 40% 30% 70% / 30% 70% 70% 30%, for a soft, uneven shape that scales with the element.

Tips & best practices

  • Use the same few radii across a design (for example 4, 8 and 16 pixels) for a consistent look.
  • Give nested elements a smaller radius than their container, by roughly the padding, so the curves stay parallel.
  • Add overflow: hidden to a rounded card that contains an image, or the image corners will poke out.

Frequently asked questions

Why does 50% not make a circle?

Percent radii are measured against the width horizontally and the height vertically. On a square box 50% gives a circle; on a rectangle it gives an ellipse. For a circle, make the element square.

Why is my 9999px radius drawn smaller?

When two corner radii on a side add up to more than the side, the browser scales all four radii down by the same factor. A huge value therefore always ends up as half the shorter side, which is exactly the pill shape most people want.

What does the slash in border-radius mean?

Values before the slash are the horizontal radii and values after it are the vertical radii. Different pairs make elliptical corners, as in 60% 40% 30% 70% / 30% 70% 70% 30%.

In what order are the four values?

Clockwise from the top left: top-left, top-right, bottom-right, bottom-left. With two values, the first is top-left and bottom-right, the second top-right and bottom-left.

Does border-radius clip the content?

It rounds the background and border. Child elements and images can still show in the corners unless you add overflow: hidden to the rounded element.

Should I use px or %?

Pixels for consistent corners on cards and buttons of any size; percent when the curve should grow with the element, as in circles, pills on fixed-ratio boxes, and blob shapes.

Related tools and how they differ

  • CSS Box Shadow Generator: Adds a soft or layered shadow to the shape you rounded here.
  • CSS Clip Path Generator: Cuts an element into polygons, circles and other shapes that rounded corners cannot make.
  • CSS Button Generator: Designs a whole button, where the corner radius is one setting among many.

Private by design

This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.