Skip to content
T
Tools.Town
Free Online Tools for Everyone
Design Tools

How to Use Border Radius Generator — Complete Guide

Learn how to visually design CSS border-radius values for buttons, cards, and containers using Tools.Town's free Border Radius Generator.

8 May 2026 4 min read By Tools.Town Team Fact Checked

Key Takeaways

  • Uniform sets all four corners to the same value
  • CSS border-radius shorthand goes clockwise from top-left: top-left, top-right, bottom-right, bottom-left
  • Use 50% for perfect circles/ellipses on any element size
  • Set border-radius to 9999px (or any value larger than half the element height)

What is Border Radius Generator?

Border Radius Generator lets you visually control the rounding on all four corners of an element and instantly copies the CSS border-radius property. Stop guessing pixel values — drag sliders and see the result live on a preview box.

border-radius is one of the most used CSS properties in modern UI design. Cards, buttons, avatars, inputs — almost every element benefits from controlled corner rounding.


Corner Radius Concepts

Uniform Radius

All four corners share one value. The most common case — e.g. border-radius: 8px for a card.

Per-Corner Control

Each corner has its own value. Great for tab shapes, speech bubbles, or asymmetric cards.

Percentage Values

50% creates a perfect circle from any square element. Values above that become ellipses.

Pill Shape

A very large px value (9999px) forces full rounding on the short axis — the classic pill button.


How to Use Border Radius Generator

Drag the sliders

Use the corner sliders to set the radius for each corner independently or all at once.

See the live preview

The preview box updates in real time showing exactly how your element will look.

Type exact values

Click any value field to type a precise px or % number.

Copy the CSS

Click 'Copy CSS' to get the full border-radius property ready to paste into your stylesheet.


Common Border Radius Patterns

PatternCSS ValueUse Case
Subtle card8pxContent cards, modals
Rounded button6pxStandard CTAs
Pill button9999pxTags, badges, capsule CTAs
Circle avatar50%Profile images, icons
Tab shape8px 8px 0 0Navigation tabs
Speech bubble8px 8px 8px 0Chat messages

Tips & Common Mistakes

Pick a scale and stick to it. Most design systems define 2–3 radius values (e.g. 4px, 8px, 16px). Using the same set everywhere keeps the UI visually consistent.

Don’t mix % and px on the same element unless you understand the elliptical behavior. 50% 8px 50% 8px creates an unexpected shape on most elements.

Large radius on tall elements is not a pill. border-radius: 50px on a 200px-tall card will create rounded sides, not a pill. Use 9999px to guarantee a pill regardless of height.


Advertisement

Try Border Radius Generator — Free

Apply what you just learned with our free tool. No sign-up required.

Try Border Radius Generator

Frequently Asked Questions

What is the difference between uniform and individual corner radius?
Uniform sets all four corners to the same value. Individual lets you set each corner (top-left, top-right, bottom-right, bottom-left) independently for asymmetric shapes.
What does the shorthand like '8px 16px 4px 20px' mean?
CSS border-radius shorthand goes clockwise from top-left: top-left, top-right, bottom-right, bottom-left. Four values set each corner independently.
When should I use % vs px for border-radius?
Use 50% for perfect circles/ellipses on any element size. Use px for consistent rounding regardless of element dimensions — e.g. always 8px rounded corners on buttons.
What is the border-radius for a pill/capsule shape?
Set border-radius to 9999px (or any value larger than half the element height). This creates a fully rounded, pill-shaped element.

Was this guide helpful?

Your feedback helps us improve our content.

Continue Reading

All Design Tools Guides

Get the best Design Tools tips & guides in your inbox

Join 25,000+ users who get our weekly design tools insights.