CSS Border Radius Generator
Design rounded corners, pill buttons, circles and organic blob shapes. Advanced elliptical mode with live preview — copy-ready CSS, SCSS and Tailwind output.
How to use
Choose a preset or start from scratch
Click any preset to apply a named shape instantly: Rounded Rect, Pill, Circle, Leaf, Squircle, Blob 1–3. Or hit Random Blob for a new organic shape every click. All presets set the unit and mode automatically.
Adjust corners with sliders or inputs
Use the sliders or number inputs to fine-tune each corner. Toggle 'Link all corners' to move all four simultaneously — useful for uniform rounding. Switch units (px, %, rem, em) to match your project's convention.
Switch to Advanced for blob shapes
Advanced mode unlocks separate Horizontal (X) and Vertical (Y) radius controls per corner — this is how organic blob shapes are made. Each corner can have an asymmetric elliptical arc.
Copy the output format you need
Copy the CSS declaration, CSS variable (with usage comment), SCSS variable, or Tailwind arbitrary value with a single click. All four formats update live as you adjust the controls.
Common use cases
Cards & panels
8–16px rounded corners give cards a modern, approachable look. Match the corner radius across cards, modals, and inputs for a consistent design system.
Pill buttons & badges
border-radius: 999px (or 50rem) creates a pill shape that works at any button width. Use the same value for tags, chips, and status badges for visual consistency.
Avatars & profile images
border-radius: 50% on a square element produces a perfect circle — the standard shape for profile pictures, user avatars, and circular icon buttons.
Blob shapes & backgrounds
Organic blobs created with Advanced mode work as decorative background elements, section dividers, and hero artwork. The Random Blob button generates new variations instantly.
Form inputs & textareas
6–8px rounding on inputs and textareas softens the form UI. Matching the radius across all interactive elements (buttons, inputs, selects) creates a cohesive feel.
Image galleries & media
Adding border-radius to images and video thumbnails integrates them into rounded UI layouts. A value matching the surrounding card radius makes media feel native to the design.
How it works
Two rendering modes
Simple mode produces uniform per-corner radii using the standard border-radius shorthand (1–4 values). Advanced mode unlocks the elliptical syntax (H / V) where each corner's X and Y arcs are controlled independently — the CSS spec's most powerful corner-rounding feature.
Organic blob generation
Random Blob generates complementary % pairs: TL-H + TR-H ≈ 100%, BL-H + BR-H ≈ 100%, and same for vertical. This constraint keeps the shape closed and organic without sharp discontinuities — each click produces a mathematically valid, visually smooth shape.
Smart CSS shorthand
The output engine applies CSS shorthand rules: if all four corners are equal, it outputs a single value; if TL=BR and TR=BL, it outputs two values; if TR=BL, three values. This minimises output length while maintaining identical rendering.
Live element previews
The preview panel renders the border-radius on five element archetypes (Button, Card, Avatar, Image, Blob) simultaneously — so you see how the shape works in real UI context, not just an abstract square. All five update in real time with every slider change.
Related tools
Frequently asked questions
Quick answers about this free online tool.
