UseToolSuite UseToolSuite

Border Radius Generator

Design CSS border-radius values visually with live preview. Supports simple, advanced (individual corners), and blob mode for organic shapes. Includes 8 blob presets and randomize. Free online border radius tool.

Last updated

Border Radius Generator is a free, browser-based tool from UseToolSuite's Color & CSS Tools collection. All processing happens locally on your device — your data is never uploaded to any server. Use the tool below, then scroll down for detailed documentation, frequently asked questions, and related resources.

Advertisement
16px

What is Border Radius Generator?

Border Radius Generator is a free online tool that lets you visually design CSS border-radius values with live preview. It supports three modes: Simple mode for uniform corner rounding, Advanced mode for individual corner control (top-left, top-right, bottom-right, bottom-left), and Blob mode for creating organic, asymmetric shapes using the 8-value border-radius shorthand. The tool outputs clean, copy-ready CSS with support for px, %, em, and rem units.

When to use it?

Use the Border Radius Generator when you need precise corner rounding for cards, buttons, modals, images, or any UI element. The Advanced mode is ideal when a design calls for asymmetric corners — like a chat bubble or a tag shape. The Blob mode is especially useful for creating organic, fluid shapes popular in modern design trends — decorative background elements, profile picture frames, and abstract hero section shapes that would be difficult to code by hand.

Common use cases

Developers use Border Radius Generator to create rounded card components and buttons with consistent corner values, design chat bubble shapes with asymmetric corners, build organic blob shapes for decorative backgrounds and hero sections, prototype Material Design and iOS-style rounded rectangles with specific radius values, and generate CSS for profile picture frames and badge shapes. The Blob mode with randomize feature is popular for generating unique organic shapes that would take significant trial and error to create manually.

From simple corners to the 8-value shorthand

border-radius rounds the element’s box, and it scales from trivial to expressive:

  • One valueborder-radius: 12px rounds all four corners equally.
  • Four valuesTL TR BR BL for per-corner control.
  • Eight valuesTL TR BR BL / TL TR BR BL (a slash separates horizontal from vertical radii), giving each corner an elliptical curve. This is the basis of organic blob shapes.

50% on a square makes a perfect circle; on a rectangle, an ellipse. For fully rounded pill ends, the 9999px trick above beats 50%.

px vs % — pick by intent

UnitBehaviorUse for
pxFixed radius regardless of sizeDesign-system tokens, consistent corners
%Relative to element dimensionsCircles, pills, proportional rounding

px keeps corners visually consistent across differently-sized elements (what a design system usually wants); % scales the rounding with the element.

The overflow rule for images

border-radius rounds the element’s own border and background, but child content isn’t clipped to the curve by default — an image inside a rounded card will poke square corners out past the rounding. The fix is overflow: hidden on the rounded container, which clips children (especially <img>) to the rounded shape. This is essential for rounded thumbnails, avatars, and cards.

Blobs and animation

The 8-value shorthand with varying radii produces fluid, asymmetric blob shapes popular for decorative accents and hero backgrounds — this generator includes blob presets and a randomize button. And border-radius is fully animatable: the browser interpolates each of the eight radii independently, so you can morph a rounded rectangle into a circle or between two blobs on hover. Note that if a radius exceeds half the smallest dimension the browser caps it, so very large values simply give maximum rounding rather than the literal number.

How helpful was this tool?

Click to rate

Advertisement

Key Concepts

Essential terms and definitions related to Border Radius Generator.

Border Radius

A CSS property that rounds the corners of an element's border box. The shorthand border-radius: TL TR BR BL sets all four corners. Each corner can have a circular radius (single value) or an elliptical radius (horizontal/vertical pair separated by /). Maximum rounding (50%) on a square creates a circle; on a rectangle, it creates an ellipse.

Elliptical Radius

A border-radius corner with different horizontal and vertical radii, creating an oval-shaped curve rather than a circular arc. Specified using the / syntax: border-radius: 20px / 40px creates corners that are 20px wide and 40px tall. The 8-value shorthand (4 values / 4 values) allows each corner to have a unique elliptical radius — this is the basis for blob shapes.

Blob Shape

An organic, fluid-looking CSS shape created using asymmetric border-radius values. The 8-value shorthand border-radius: a b c d / e f g h produces shapes that resemble natural forms like drops, eggs, or amoebas. These shapes are popular in modern web design for decorative elements. Unlike geometric shapes, blobs have no sharp angles and produce a soft, organic feel.

Overflow Hidden

The CSS overflow: hidden property clips any content that extends beyond the element's padding box. When used with border-radius, it ensures that child elements (especially images) respect the rounded corners and do not overflow the visible rounded area. Without overflow: hidden, only the element's own border and background are rounded — child content remains rectangular.

Frequently Asked Questions

What is the 8-value border-radius shorthand?

The full border-radius shorthand supports 8 values separated by a slash: border-radius: TL-H TR-H BR-H BL-H / TL-V TR-V BR-V BL-V. The values before the slash control horizontal radii, and the values after control vertical radii. This creates elliptical corners rather than circular ones. For example, border-radius: 50% 30% 70% 40% / 60% 50% 40% 70% creates an organic blob shape. This is what the Blob mode in this tool uses.

What is the difference between px and % units for border-radius?

px values create fixed-size rounded corners regardless of the element size — border-radius: 20px always produces 20px corners. % values are relative to the element's dimensions — border-radius: 50% on a square creates a perfect circle, while on a rectangle it creates an ellipse. Use px for consistent design system tokens; use % when you want the rounding to scale proportionally with the element size.

How do I create a perfect circle with border-radius?

Set border-radius: 50% on a square element (equal width and height). The 50% value rounds each corner by half the element's dimension, and on a square, this produces a perfect circle. On a rectangular element, border-radius: 50% creates an ellipse. To create a circle from a rectangle, use clip-path: circle() instead.

What are organic blob shapes and when are they used?

Organic blob shapes are asymmetric, fluid-looking forms created using the 8-value border-radius shorthand with varying horizontal and vertical radii. They are popular in modern web design for decorative background elements, hero section accents, profile picture frames, floating accent shapes, and abstract art. The Blob mode in this tool lets you create these shapes with presets and a randomize button.

Can I animate border-radius transitions?

Yes. border-radius is fully animatable with CSS transitions and animations. You can smoothly transition between different radius values — for example, from a rounded rectangle to a circle or between different blob shapes. The browser interpolates each of the 8 radius values independently, producing smooth shape morphing effects. This is commonly used for hover effects and loading animations.

How do I make a 'pill' shaped button (fully rounded ends)?

Set a border-radius larger than half the element's height — the standard trick is border-radius: 9999px (or 999px). The browser caps the radius at half the smallest dimension, so any value bigger than that produces perfectly semicircular ends regardless of the button's actual height, and it adapts automatically if the height changes. This beats using 50% (which only makes a circle on a square, and an ellipse on a wide element) because 9999px gives you flat top and bottom edges with fully rounded left and right ends — the classic pill. Use it for tags, chips, toggle buttons, and call-to-action buttons. The same large-radius approach makes any rectangle into a stadium shape.

Why don't my rounded corners look as smooth as iOS app icons?

Because CSS border-radius draws a true CIRCULAR arc, while iOS icons use a 'squircle' — a superellipse where the curve blends more gradually into the straight edges, avoiding the subtle 'corner' where a circular arc meets the side. The circular arc has a visible point of curvature change that the eye reads as slightly less smooth; the squircle's continuous curvature looks more organic and premium. Plain border-radius can't produce a true squircle. To get that effect you need clip-path with an SVG/path superellipse, an SVG mask, or the experimental corner-shape CSS property (limited support). For most UI, a well-chosen border-radius is fine, but if you're chasing that exact iOS-icon smoothness, border-radius alone won't get you there.

Troubleshooting & Technical Tips

Common errors developers encounter and how to resolve them.

Border radius appears clipped or not fully rounded

If the border-radius value exceeds half the element's smallest dimension, the browser automatically reduces the radius to prevent overlap. For example, border-radius: 200px on a 100px-wide element is equivalent to border-radius: 50px. To ensure visible rounding, keep the radius value within a reasonable range relative to the element size. Use percentage values (50%) for proportional rounding that always works regardless of element size.

Blob shape looks different in Safari vs Chrome

Safari and Chrome use slightly different anti-aliasing for border-radius curves, which can make complex blob shapes appear subtly different between browsers. The shape itself is mathematically identical, but edge smoothing varies. For pixel-perfect blob shapes across browsers, consider using clip-path: path() or an SVG shape instead of border-radius. For most design purposes, the rendering difference is imperceptible.

Border-radius not applying to child content or images

border-radius rounds the element's border box, but child content may overflow the rounded corners. Add overflow: hidden to the parent element to clip child content to the rounded shape. This is especially important for images inside rounded containers — without overflow: hidden, the image corners will be visible outside the rounded border.

Advertisement

Related Tools