Border Radius Generator
Design rounded corners with per-corner control, elliptical radii, and presets. 100% client-side.
border-radius: 20%;
⚡ Presets
📖 border-radius syntax
About Border Radius Generator
The CSS border-radius property rounds the corners of an element. It is one of the most-used properties in modern web design — for buttons, cards, avatars, badges, and decorative shapes. Border-radius supports up to 8 values: 4 for the horizontal radii of each corner (top-left, top-right, bottom-right, bottom-left) and 4 for the vertical radii, allowing elliptical (asymmetric) rounding. Beyond simple "rounded corners", designers use border-radius for pills (9999px), circles (50%), squircle-like shapes (30%–40%), blobs (with different values per corner), and organic leaf shapes. This generator gives you sliders for all 8 values, presets, and live preview.
How It Works
- Choose to link corners (uniform) or unlink them (per-corner control).
- Adjust the horizontal and vertical radii with sliders or numeric input.
- Choose from presets (pill, circle, squircle, blob, leaf).
- Adjust the preview shape and size.
- Copy the generated CSS and paste it into your stylesheet.
✨ Key Features
- ✓Per-corner control (4 corners × 2 radii = 8 values)
- ✓Linked corners mode (uniform radius)
- ✓Elliptical rounding (independent horizontal/vertical)
- ✓30+ curated presets (pill, blob, circle, leaf, squircle)
- ✓Live preview with shape switcher
- ✓Adjustable preview size and background
- ✓Shorthand and longhand CSS output
- ✓Copy CSS with one click
- ✓Random blob generator
- ✓100% client-side — no data sent to any server
🎯 Common Use Cases
- →Designing button corner radius
- →Creating avatar circles (50%)
- →Making pill-shaped tags and badges
- →Adding organic blob shapes to hero sections
- →Designing card corners for a design system
- →Creating squircle-like icons
- →Making leaf or petal shapes
- →Learning CSS border-radius syntax by experimenting
💡 Advanced Tips & Pro Insights
- ▸The shorthand "border-radius: A B C D" sets four corners clockwise starting from top-left. Adding "/" splits horizontal and vertical: "border-radius: A B C D / E F G H".
- ▸For a perfect circle: width and height equal + "border-radius: 50%".
- ▸For a pill: "border-radius: 9999px" (any huge value works).
- ▸Squircle (Apple-style): use "border-radius: 30%–40%" with equal width/height — but real squircles require SVG or "corner-shape: squircle" (not yet widely supported).
- ▸Blob shapes: use 4 different values like "border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%". Randomize the values to get organic blobs.
- ▸Percentage radii scale with element size. Fixed pixel radii stay constant. Percentages are great for responsive shapes.