ToolJutsu
All tools
Color & Design Tools

Border-Radius Generator

Craft custom CSS border-radius shapes.

Unit

Corners are linked — editing any slider updates all four together.

Top-left
Top-right
Bottom-right
Bottom-left
Generated CSS
border-radius: 24px 24px 24px 24px;
Processed on your device. We never see your files.

How to use Border-Radius Generator

What this tool does

The Border-Radius Generator builds a CSS border-radius declaration visually, so you can shape a box by dragging sliders instead of guessing numbers. Each of the four corners — top-left, top-right, bottom-right and bottom-left — has its own control, and you can switch on elliptical corners to give every corner a separate horizontal and vertical radius. A live preview box updates on every change, and the generated declaration is shown as copyable code. Everything is computed locally in your browser; there is no upload and no account.

CSS rounding is deceptively rich. Beyond the familiar single value, the property accepts up to eight numbers in the a b c d / e f g h form, where the first group sets horizontal radii and the second sets vertical radii. Writing that by hand is error-prone — this tool keeps the syntax correct and always emits the shortest valid version of what you have drawn.

Use cases

In everyday web design, rounded corners soften cards, buttons, inputs and modals; a consistent radius scale is part of most design systems, and this generator lets you dial in and copy each step. For branding work, a distinctive corner treatment — say, one sharp corner and three round ones — can become a recognisable motif across a product. Elliptical corners are the basis of organic “blob” shapes and squircle-style app tiles. Accessibility-minded teams use generous radii to make tap targets feel friendlier on touch screens, while illustrators and prototypers reach for the 50% trick to turn any image into a circular avatar without cropping.

How to use it

  1. Choose a unitpx for a fixed radius or % for one that scales with the box. Switching units rescales any value that would exceed the new range.
  2. Leave Link all corners on to round every corner equally, or turn it off to style each corner on its own.
  3. Turn on Elliptical corners when you want separate horizontal and vertical radii; each corner then shows two sliders.
  4. Drag the corner sliders and watch the preview box update in real time.
  5. When the shape looks right, click Copy CSS to copy the full border-radius declaration, ready to paste into a stylesheet.
  6. Use Reset to return every control to its defaults.

Tips

For a pill-shaped button, set a very large pixel radius such as 999px; the browser clamps the rounding to half the box height, giving fully round ends at any width. For a circle, switch to % and set all four corners to 50%. To build a soft, organic blob, enable elliptical corners and give each corner a different horizontal/vertical pair — small asymmetries read as hand-drawn. When you only want one corner squared off, unlink the corners and drop that single value to zero; it is a quick way to make a card point toward an adjacent element. Keep a small set of radius values across a project rather than picking arbitrary numbers — three or four steps usually cover everything and keep the interface coherent.

border-radius pairs naturally with box-shadow for raised cards and with overflow: hidden when you need child content — like an image — clipped to the rounded shape. For shapes the rectangle model cannot express, such as triangles or polygons, look at the Clip-Path Generator and the CSS Triangle Generator. If you are assembling a full design system, combine this with a colour converter and palette tools so corner radius, colour and spacing are all defined in one consistent place. Because the output is plain CSS, it drops into any framework — vanilla stylesheets, Tailwind’s arbitrary values, CSS-in-JS or a preprocessor — without changes.

Frequently asked questions

What is the difference between the px and % units?
A pixel radius is a fixed length — a 24px corner stays 24px wide whatever the box size. A percentage radius is relative to the box's own dimensions: the horizontal radius is a share of the width and the vertical radius a share of the height. Set every corner to 50% and a rectangle becomes a perfect ellipse, which is the standard trick for circular avatars.
When does the tool use the slash syntax?
CSS lets you give a corner separate horizontal and vertical radii using the form border-radius: a b c d / e f g h. The generator only emits that longer form when at least one corner is elliptical — that is, its horizontal and vertical radii differ. When every corner is a circular quarter, it collapses the value to the shorter four-number syntax so the output stays clean.
Why does linking corners disable the other sliders?
With Link all corners turned on, every corner must stay identical, so the tool drives all four from the top-left sliders and dims the rest to show they are mirrored. Turn the toggle off to style each corner independently — useful for tab shapes, speech bubbles and asymmetric cards.
Can I create a pill or circle shape?
Yes. For a pill, set a large pixel radius such as 999px on every corner; the corners round as far as the height allows. For a circle or ellipse, switch the unit to % and set all corners to 50%. The live preview shows the result instantly so you can confirm before copying.
Is anything I create uploaded to a server?
No. The generator is pure CSS string building done by JavaScript in your browser. Nothing about your design — values, units or the copied declaration — is sent anywhere or stored.

Related tools