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
  1. Home
  2. Web Tools
  3. CSS Border Radius Generator
Add to favorites

Loading tool...

You might also like

CSS Clip Path Generator

Create custom CSS clip-path shapes visually. Drag points to customize polygons, circles, and complex shapes.

CSS Gradient Generator

Create stunning CSS gradients with linear/radial/conic types, angle control, position control, multiple color stops, 11 presets, and reverse/randomize features

CSS Box Shadow Generator

Design complex box shadows with multi-layer support, inset shadows, visibility toggle, layer reordering, opacity control, and 12 professional presets

About CSS Border Radius Generator

Design custom border radius values with precise visual control over corner shapes and create unique rounded designs from simple pill buttons to organic blob shapes. Border radius transforms rectangular HTML elements into visually interesting shapes, a fundamental technique in modern web design that builds brand identity and improves visual appeal. This tool provides intuitive visual editing—adjust corner values individually or link them together for uniform rounding, switch between pixel and percentage units depending on your needs, and preview changes instantly. Start from preset shapes like circles (50%), pills (9999px), and organic blob shapes, then customize to your exact design needs. The visual preview shows how your chosen border radius appears with real proportions, making it easy to achieve the exact look you want. Advanced eight-value syntax support enables asymmetric curves for complex organic blob shapes used in trendy, modern designs.

How to Use

  1. 1Adjust corner radius values
  2. 2Link/unlink corners for uniform or custom shapes
  3. 3Switch between px and % units
  4. 4Use presets for common shapes
  5. 5Copy the CSS code

Key Features

  • Individual corner control
  • Linked/unlinked modes
  • Pixel and percentage units
  • Interactive corner dragging
  • 12 shape presets
  • Live preview
  • Copy CSS

Common Use Cases

  • Rounded button styling

    Create pill-shaped buttons with 50% border radius or partially rounded buttons matching your design system.

  • Image frame and border styles

    Add rounded corners to images, creating softer frames that improve visual appeal and reduce harsh angles.

  • Card and container styling

    Apply consistent border radius to cards, containers, and content boxes throughout your design system.

  • Creative shape designs

    Design unique circular, oval, and asymmetric shapes that break from rectangular layouts and create visual interest.

  • Organic blob and abstract shapes

    Use advanced eight-value syntax to create organic, flowing blob shapes for trendy modern design aesthetics.

  • Design system consistency

    Define standard border radius values for different component types, ensuring visual consistency across your product.

Understanding the Concepts

The CSS border-radius property, introduced in CSS3, fundamentally changed web design by enabling rounded corners without images, background hacks, or JavaScript. Before its widespread adoption around 2010, creating rounded corners required elaborate techniques like nested div elements with corner images, or the use of proprietary filters. The property works by defining elliptical curves at each corner of the element's border box, replacing the sharp 90-degree angles with smooth arcs.

Mathematically, border-radius creates quarter-ellipse curves at each corner. Each corner's curve is defined by two radii: a horizontal radius and a vertical radius. When both radii are equal, the result is a circular arc; when they differ, the result is an elliptical arc. The shorthand syntax border-radius: 10px creates uniform circular arcs at all four corners. The full eight-value syntax, written as border-radius: h1 h2 h3 h4 / v1 v2 v3 v4, specifies independent horizontal and vertical radii for each corner (top-left, top-right, bottom-right, bottom-left). This eight-value form is what enables the creation of organic blob shapes where each corner has a unique asymmetric curve.

The underlying geometry connects to the concept of superellipses, a family of curves described by the equation |x/a|^n + |y/b|^n = 1. A standard ellipse has n=2, while a squircle (the smooth shape used by iOS app icons) uses n values between 4 and 5. CSS border-radius produces true elliptical arcs (n=2), which is why CSS-rounded rectangles look subtly different from iOS-style squircles. The distinction matters in design: elliptical border-radius creates a visible inflection point where the curve meets the straight edge, while a superellipse provides a smoother, more continuous transition. Some designers approximate squircle shapes using SVG clip-paths or carefully tuned border-radius values with percentage units.

Percentage values for border-radius are relative to the element's dimensions, with horizontal radii based on width and vertical radii based on height. Setting border-radius to 50% on a square element creates a perfect circle because the horizontal and vertical radii each equal half the element's dimension, creating four quarter-circle arcs that join into a full circle. On a rectangular element, 50% creates an ellipse. The value 9999px (or any very large pixel value) creates a pill or capsule shape because the browser automatically clamps the radius to half the shorter dimension of the element, rounding the short sides into semicircles while leaving the longer sides straight. This clamping behavior, defined in the specification, ensures that overlapping radii are proportionally reduced to fit the element dimensions.

Frequently Asked Questions

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

Pixel values create a fixed radius regardless of element size. Percentage values are relative to the element dimensions, making them responsive. Use 50% to create a perfect circle from a square element.

How do I create a pill or capsule shape?

Set the border radius to a value equal to or greater than half the element height (e.g., 9999px or 50vh). This rounds the short sides into semicircles while keeping straight edges on longer sides.

Can I set different values for each corner?

Yes, CSS border-radius supports individual corner values. The shorthand format is: border-radius: top-left top-right bottom-right bottom-left. Unlink corners in the tool to control each independently.

How do I create organic blob shapes?

Use the advanced eight-value syntax where each corner has separate horizontal and vertical radii (e.g., border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%). This creates asymmetric curves for organic shapes.

Privacy First

All processing happens directly in your browser. Your files never leave your device and are never uploaded to any server.