Interactive tool to slice images and generate complex decorative borders using CSS. Our tool is 100% free, private, and runs entirely in your browser.
CSS Border Image Generator
Interactive tool to slice images and generate complex decorative borders using CSS.
Image Source
Upload or link your border image
Try using a seamless tileable image for best results.
Slice Config
Define how the image is divided
Border Properties
Adjust width and repetition
Visual Slice Editor
Visual representation of how the image is sliced

Live Preview
See your custom border image in action
Border Preview
This element uses your custom border-image settings. The corners stay fixed while edges repeat across the width: 20px.
CSS Generated Code
Copy the border-image properties
.custom-border {
border-image-source: url("https://developer.mozilla.org/en-US/docs/Web/CSS/border-image/border-diamonds.png");
border-image-slice: 30 30 30 30 fill;
border-image-width: 20px;
border-image-outset: 0px;
border-image-repeat: round;
border-style: solid;
}How border-image-slice works
The 'border-image-source' property specifies the path to the image to be used as a border. It can be a URL, a gradient, or 'none'. The corners stay at the corners of your element, while edge slices are repeated or stretched to fill the borders. Using 'fill' preserves the middle slice as the element's background.
About CSS Border Image Generator
Select Tool
Open the CSS Border Image Generator page.
Input Data
Enter your information or upload your file.
Get Results
Download or copy the output instantly.
Key Features
Fast & Free
No registration required, instant results.
100% Private
All processing happens locally on your device.
Browser Based
No installation needed, works on any device.
Frequently Asked Questions
Yes, all FusioFiles tools are completely free to use.
Yes, we process everything in your browser. No data is ever uploaded.
Related Tools
View allLast updated on