Generate repeating SVG patterns for backgrounds
Pattern Type
Pattern Settings
Colors
Preview
SVG Pattern Code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20">
<rect width="100%" height="100%" fill="#ffffff" />
<pattern id="pattern" width="20" height="20" patternUnits="userSpaceOnUse">
<circle cx="10" cy="10" r="4" fill="#000000" fill-opacity="0.2" />
</pattern>
<rect width="100%" height="100%" fill="url(#pattern)" />
</svg>CSS Background
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22%23ffffff%22%20%2F%3E%0A%20%20%3Cpattern%20id%3D%22pattern%22%20width%3D%2220%22%20height%3D%2220%22%20patternUnits%3D%22userSpaceOnUse%22%3E%0A%20%20%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.2%22%20%2F%3E%0A%20%20%3C%2Fpattern%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%23pattern)%22%20%2F%3E%0A%3C%2Fsvg%3E");
background-repeat: repeat;