Border Generator
Tune border width, style and color. Link the edges for one rule or select separate edges, round the corners and measure the effect of box sizing.
Test Linked and Per-Side CSS Borders
Border preview
Declared size 144 × 76 px.
Generated stylesheet
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
Border Generator: how to use it
- Keep Link all edges selected for a uniform stroke, or turn it off and select Top, Right, Bottom or Left.
- Choose a width, line pattern and color. Set Corner radius and compare the measured size for Content box and Border box.
- Copy or download the generated stylesheet. Use its border class on the box you want to style.
Limits and notes
Border widths range from 0 to 18 px. The one-value corner radius ranges from 0 to 80 px. Colors accept CSS names and numeric sRGB HEX, RGB and HSL. The preview has a declared size of 144 × 76 px.
How your privacy works →Border Generator: common questions
What changes when I link the four sides again?
The editor copies the Top settings to the other edges and switches to a single border shorthand.
Why is the rendered card wider than its declared width?
Content box puts the left and right borders outside the declared content width. Border box includes them in the declared width when there is room.
How can I remove only the right edge?
Unlink the edges, choose Right, and set Right border style to None. Its computed width is zero.