SVG pattern generator
Twelve seamless background patterns. Set the tile size and colours, then copy one line of CSS or download the repeating SVG tile.
How to use it
- Pick a pattern. The preview shows it repeated, so you can check the seams.
- Set the Tile size in pixels, the motif Size, the line width and the two colours.
- Press Copy CSS for a
background-imageyou can paste into any stylesheet. The SVG is inside the line, so there is no file to host. - Or download the single Tile SVG for Figma, Illustrator or Canva, or the full sheet as SVG, PNG or PDF.
How the tile repeats without seams
Each pattern is drawn on a lattice: a small rectangle repeated in rows and columns. Any shape that crosses the edge of the rectangle is drawn again on the opposite edge, so when the tile repeats, the halves meet. The tile you download is exactly one repeat, which is what background-repeat in CSS and pattern fills in design tools expect.
Seigaiha, the Japanese pattern of overlapping waves, needs one more step: the rows overlap, so they are drawn top to bottom and each row covers part of the one above, in the tile and in the preview alike.
Using the CSS
The copied line looks like background-image: url("data:image/svg+xml,…") followed by a background-size. The SVG is URL-encoded, which works in every current browser. Put it on body or any element; add background-color if you want the colour to show before the image paints.
Related tools
Questions people ask
What is an SVG pattern?
A small vector tile that repeats to fill an area. In CSS it is used as a background image; in design tools as a pattern fill. Because it is vector, it stays sharp at any zoom.
How do I use the pattern as a website background?
Press Copy CSS and paste the two lines into the rule for the element you want to fill. No image file to upload.
Are the patterns seamless?
Yes. Every shape that crosses a tile edge is drawn on the opposite edge as well, so the tile repeats without visible seams.
Can I use the patterns commercially?
Yes. They are simple geometry generated from your settings; use them anywhere.
How big is the CSS?
At the default settings most patterns come to 1 to 4 KB. Seigaiha is larger, about 15 KB, because every fan is a stack of rings.