CSS Border & Radius Generator
Customize solid, dashed, and gradient borders with individual edge widths, 4-corner radii, and organic 8-value blob shapes with instant CSS code generation.
/* Border CSS */
Curated Border Presets
Click any preset to load popular edge and radius configurations into the editor.
How to Use the CSS Border Generator
Select Stroke Properties
Pick stroke style (solid, dashed, dotted, double), stroke thickness, and color. Optionally configure individual edge widths.
Shape Your Corners
Adjust the 4 corner radii individually or toggle the "Organic Blob Shape" mode to create playful non-symmetrical 8-value radii.
Copy Clean CSS
Click "Copy CSS" to obtain the exact border and border-radius rules ready for your CSS files.
CSS Border & Radius Specifications
8-Value Organic Border Radius
By specifying horizontal and vertical radii separated by a slash (e.g. 30% 70% 70% 30% / 30% 30% 70% 70%), you can create organic fluid blobs without SVG.
CSS Gradient Borders
Harness border-image: linear-gradient(...) 1 to wrap buttons, cards, and avatars in stunning modern gradient outlines.
Asymmetric Card Edges
Modern SaaS designs frequently use asymmetric corners (e.g. rounded top-left and bottom-right, sharp opposite corners) for visual brand flair.
Frequently Asked Questions
Under CSS specification rules, border-image overrides standard border-radius curves. To create a rounded gradient border, modern developers use a pseudo-element with background: linear-gradient(...) and padding: 2px with mask or nested border-radius clipping.
Yes. Setting border-radius: 50% on an element with equal width and height produces a perfect circle. On rectangular elements, it forms an ellipse or pill shape.