Skip to main content

css-border-radius-generator

CSS border-radius rounds element corners. The full syntax accepts up to 8 values β€” four corners with separate horizontal and vertical radii β€” letting you build asymmetric "squircle" or organic blob shapes. Most uses stick to the simple 8px symmetric form, but the full syntax lets you produce shapes that go far beyond rounded rectangles. The ZTools CSS Border Radius Generator gives a visual UI for all 8 values, supports per-corner customisation, organic blob mode (8-handle drag), and outputs ready-to-paste CSS.

Use cases​

Standard rounded buttons / cards​

border-radius: 8px. Tool gives you the value and visual preview.

Pill-shaped buttons​

border-radius: 9999px (or 50% on a square). Extreme rounding produces pill shape.

Organic blob backgrounds​

Set 8 different values per corner with horizontal/vertical separation. Creates trendy "squiggle" backgrounds.

Asymmetric speech bubbles / tooltips​

Round 3 corners; leave 1 sharp. Common for chat-bubble UI.

How it works​

  1. Pick mode β€” Symmetric (1-4 values) or asymmetric (8 values, horizontal/vertical separated by /).
  2. Adjust corners β€” Sliders or numeric input per corner. Live preview updates.
  3. Pick units β€” px, %, em, rem, vw. Each gives different responsive behavior.
  4. Copy CSS β€” Single line ready to paste into stylesheet.

Examples​

Input: All corners 8px

Output: border-radius: 8px;


Input: Asymmetric: top corners 16px, bottom 4px

Output: border-radius: 16px 16px 4px 4px;


Input: Blob shape

Output: border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; β€” 8 values for organic curves.


Input: Pill shape on a button

Output: border-radius: 9999px; (or 50% if square).

Frequently asked questions​

Why 8 values?

Each corner has a horizontal and vertical radius. They're usually equal (forming a circular arc) but can differ (forming an elliptical arc). 4 corners Γ— 2 = 8.

Percent vs pixel?

Pixel is fixed. Percent scales with element size. For consistent visual roundness across sizes, percent works better; for fixed UI, pixels.

Will old browsers support 8 values?

Modern browsers all support full syntax. IE11 supports 4 values only.

Privacy?

All in browser.

Tips​

  • For most cards/buttons, 4-12px symmetric is the sweet spot.
  • For pill buttons on dynamic content (where width varies), use 9999px not 50%.
  • For organic blobs, randomize the 8 values then tweak β€” random seeds produce most interesting shapes.
  • Keep border-radius consistent across your design system β€” different radii on different components feels chaotic.

Try it now​

The full css-border-radius-generator runs in your browser at https://ztools.zaions.com/css-border-radius-generator β€” no signup, no upload, no data leaves your device.

Open the tool β†—


Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub