← All Tools

CSS Border-Image Generator

Build the border-image shorthand with a live preview. border-image-slice defines the four corner cuts; border-image-width sets how wide the painted border is; border-image-outset pushes the image past the box; border-image-repeat decides whether the middle stretches, tiles (repeat), tiles whole copies (round), or distributes with gaps (space). Nine slices land at the corners, edges, and center.

🖼 Preview

box content

🎨 Pattern presets

Built-in SVG nine-slice images — all embedded as data URIs, nothing fetched from the network.

⚙ Source

Paste a url(...), linear-gradient(...), or a data URI. Local files never upload — pick from the presets or paste your own data URI.

✂ Slice

top right bottom left

📐 Width & Outset

toprightbottomleft
toprightbottomleft

🔁 Repeat

📦 Box

📋 CSS output

💡 Tips