← All tools

SVG Pattern Generator

Create repeating dots, stripes, grid or crosshatch tiles. Copy CSS with an embedded SVG or download the tile.

svg-pattern-generatorLOCAL WORKSPACE

Enabling local controls…

20
6

Preview and export

Download SVG
Download CSS
CSS source
background-color: #eef3f8;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22%23eef3f8%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%223%22%20fill%3D%22%237388a8%22%2F%3E%0A%3C%2Fsvg%3E%0A");
background-size: 20px 20px;
background-repeat: repeat;
SVG source
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
<rect width="20" height="20" fill="#eef3f8"/>
<circle cx="10" cy="10" r="3" fill="#7388a8"/>
</svg>

How to use this tool

Choose two colors, set the tile size and thickness, then copy the CSS background properties.

When not to use it

A stroke can cover up to half the tile size. Output uses a percent-encoded local SVG.