CSS BORDER GENERATOR
Build a border visually and copy the CSS. Nothing leaves your browser.
In short
Build a CSS border visually — width, style, color, and per-corner radius — with a live preview, then copy the border and border-radius CSS. It runs entirely in your browser — nothing is uploaded.
4px
12px
12px
12px
12px
border: 4px solid #ff6a35; border-radius: 12px;
How to build a CSS border
- 1
Set the border width, style, and color.
- 2
Adjust the corner radius, linked or per corner.
- 3
Copy the generated border and border-radius CSS from the code box.
Questions
- Can I set a different radius for each corner?
- Yes — untick "Link corners" and each of the four radius sliders (top-left, top-right, bottom-left, bottom-right) becomes independent, generating a border-radius shorthand with four values.
- What border styles are supported?
- Solid, dashed, dotted, double, groove, and ridge — the standard CSS border-style keywords with visible browser support.
- Does this generate one property or separate ones?
- It outputs a border shorthand (width, style, color) and a separate border-radius line, so you can copy either or both straight into your stylesheet.
- Is anything sent to a server?
- No — the preview and CSS are generated locally in your browser as you adjust the controls.
Related tools
- Box Shadow GeneratorBuild single or layered box-shadows and copy the CSS.
- CSS Gradient GeneratorBuild linear, radial, and conic gradients and copy the CSS.
- CSS Clamp GeneratorBuild a fluid clamp() value that scales between a min and max size.
- CSS Transform GeneratorBuild a translate/rotate/scale/skew transform with a live preview and generated CSS.
- CSS Variables GeneratorBuild a set of named CSS custom properties and get the generated :root block.
- CSS Flexbox GeneratorDial in direction, justify-content, align-items, wrap, and gap with a live preview.
- CSS Grid GeneratorDial in grid-template-columns/rows and gap with a live preview grid.
- CSS Text Shadow GeneratorLayer up to five text-shadows with a live preview and generated CSS.
Updated