Free online tools

CSS Border Image Generator

Generate the rules for a decorative nine-slice border and copy them into your stylesheet.

Enter your values

This tool processes your input in your browser.

Result

Slice the source before drawing the border

Four slice lines divide the source into corners, edges and a center. This tool sets a uniform slice on every side. Corners stay at the ends while the edge pattern follows the selected repeat mode.

Give the element a visible border width

The generated code sets a border width and style. CSS needs that border geometry to know how much space to paint.

Frequently asked questions

Does the tool fetch an external image?

No. It formats the input path as CSS. The final website can load that path when you apply the generated rule.