Skip to content

Menu

Border Radius Generator

Visual border-radius editor with per-corner control and shape presets.

Runs entirely in your browserDesignFree, no sign-up
Loading tool

01What is Border Radius Generator?

Rounded corners look simple until you need four different values and can't remember which order CSS reads them in. Border Radius Generator gives you sliders for each corner, a live preview and a ready-to-paste border-radius line, so you stop guessing. Here is how it works. With Link corners ticked, a single All Corners slider moves every corner together. Untick it and you get four sliders: Top Left, Top Right, Bottom Left and Bottom Right. A unit menu next to the checkbox switches between px, %, rem and em. In px the sliders run from 0 to 200 in whole pixels. In rem and em they run from 0 to 12.5 in steps of 0.125. In % the linked slider stops at 50, and each separate corner can go up to 100. The preview is a fixed 160 by 160 pixel square, so what you see is the shape on a square box. The output follows the CSS Backgrounds and Borders Level 3 spec from the W3C. When all four corners match, the tool writes the one-value shorthand, like border-radius: 16px. When they differ, it writes all four values in the order the spec defines: top-left, top-right, bottom-right, bottom-left. That's clockwise from the top left, and it's the order people mix up most. A quick example. Untick Link corners, set Top Left and Top Right to 24, and drop the two bottom corners to 0. The CSS panel shows border-radius: 24px 24px 0px 0px. That's a card or tab rounded only along the top edge. Switch the unit to % with corners at 120, 120, 20 and 20, and every value above 50 gets clipped, so you get 50% 50% 20% 20%. Switching between px and rem or em converts at 16px per rem, so 16px becomes 1rem and 1.5rem becomes 24px. There are honest limits. Each corner is a single circular radius, so the elliptical slash syntax (such as 50% / 30%) isn't generated. The preview only shows a square, and percentages behave differently on rectangles. Your settings live only in the page's state. Nothing about the shape is uploaded. Copy puts the whole declaration on your clipboard, and Reset puts every corner back to 16px with Link corners on and px selected.

Front-end developers turning a design file's corner values into CSS, especially when only some corners are rounded. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Border Radius Generator

  1. Pick a unit from the menu: px, %, rem or em
  2. Leave Link corners ticked and drag All Corners, or untick it to get Top Left, Top Right, Bottom Left and Bottom Right sliders
  3. Watch the 160px preview square change as you drag
  4. Read the border-radius line in the CSS panel and press Copy
  5. Press Reset to return to 16px on every corner

03Worked examples

Input: Link corners on, 16 px
Result: border-radius: 16px;
Input: Link corners off: Top Left 24, Top Right 24, Bottom Right 0, Bottom Left 0 (px)
Result: border-radius: 24px 24px 0px 0px;
The four values go clockwise from top left (TL, TR, BR, BL), which is how a card rounded only at the top is written.
Input: Link corners off: Top Left 0, Top Right 32, Bottom Right 0, Bottom Left 32 (px)
Result: border-radius: 0px 32px 0px 32px;
Rounding opposite corners gives a leaf shape.
Input: Link corners on, unit %, 50
Result: border-radius: 50%;
50% on a square element makes a circle, which is why the linked slider stops at 50 in % mode.
Input: Corners at 120, 120, 20, 20 px, then unit switched to %
Result: border-radius: 50% 50% 20% 20%;
Switching to % caps every corner at 50. Values at or below 50 keep their number.
Input: Link corners on, 16 px, then unit switched to rem
Result: border-radius: 1rem;
The value converts at 16px per rem, so the shape stays the same.

04Common use cases

  • Matching card and button corners to a pixel design token such as 8px or 12px
  • Making a circular avatar by setting 50% on a square image
  • Drawing a chat bubble with one sharp corner and three rounded ones
  • Rounding only the top corners of a tab or a modal sheet that slides up from the bottom
  • Building leaf or teardrop shapes by pushing two opposite corners toward 100% in percent mode
  • Checking the clockwise order of the four-value shorthand before writing it into a stylesheet
  • Turning a pixel radius like 8px into rem (0.5rem) for a design system that sizes everything in rem

05Tips

  • For a pill button whose height might change, use a big fixed value like 9999px. The spec scales oversized radii down so neighbouring corners never overlap.
  • Percentages use the element's width for the horizontal radius and its height for the vertical one. So 50% on a rectangle gives an ellipse, not a circle.
  • border-radius also clips background images and box-shadows, but not overflowing child content unless you add overflow: hidden.
  • Switching from px to rem assumes the browser default of 16px per rem. If your root font size differs, adjust the value.

06Related concepts

CSS shapes, clip-path, Squircle, Design tokens.

Frequently Asked Questions

What is Border Radius Generator?

Border Radius Generator is a free, browser-based developer tool on AIDToolStack. Visual border-radius editor with per-corner control and shape presets. It requires no installation or sign-up and works entirely in your browser.

Is Border Radius Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does Border Radius Generator store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe