Back to home

SVG Pattern Generator

Build a repeating background in seconds. Choose a pattern, two colors, the tile size and stroke, and use the SVG file or the ready CSS rule on your website.

  1. Choose a pattern and two colors
  2. Adjust the tile size and stroke
  3. Download the SVG or copy the CSS
Loading the tool...

Your files never leave your device

What this tool does

It creates seamless repeating backgrounds from simple shapes: dots, stripes, grid, waves, zigzag, plus signs and circles. Choose a pattern, set the pattern color and the background color, then adjust the tile size and the line or dot size. A live preview updates as you move the controls.

A worked example

For a quiet website background, pick Dots, a light grey pattern color on a white background, a tile size of 20 and a small dot size. Click Copy CSS and paste the rule into the element you want to decorate. Because only one 20 pixel tile is stored and repeated, a 1000 pixel wide section needs just 50 repetitions across, so the page stays light.

For a poster or slide, choose Download SVG instead. The file scales to any size without becoming blurry.

Limits and good practice

Keep the contrast between the two colors low when text will sit on top of the pattern, otherwise reading becomes tiring. Large tiles with thick strokes draw attention to the background, so test the result with real content.

The background color is part of the tile, so the pattern is not transparent. If you need a transparent pattern, edit the SVG text and remove the background rectangle. Copy SVG gives you the plain code to paste into any editor.

Frequently asked questions

What is the CSS rule?

It is a background-image that holds the pattern as a tiny SVG data URI and repeats it across the element.

Are the patterns seamless?

Yes. Each tile repeats without visible seams.

Can I edit the SVG?

Yes. The SVG code is plain text that you can paste into any editor or code file.

Does it support transparency?

The background color is part of the tile, so pick any color you like. For a transparent result, edit the SVG and remove the background.

Is it free for commercial use?

The generated SVG and CSS contain no watermark or attribution, so you can use them in your own projects, personal or commercial.

Is anything uploaded?

No. Everything is generated on your device.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D